MàJ config VLAN et quelques corrections
This commit is contained in:
parent
a263d72a4b
commit
b74ae4d48e
|
@ -14,15 +14,15 @@ Création de 2 VLANs, 1 et 7, rattachés à l'interface bnx0
|
||||||
~~~
|
~~~
|
||||||
# ifconfig vlan1 create
|
# ifconfig vlan1 create
|
||||||
# ifconfig vlan7 create
|
# ifconfig vlan7 create
|
||||||
# ifconfig vlan1 parent bnx0 vnetid 1
|
# ifconfig vlan1 vnetid 1 parent bnx0
|
||||||
# ifconfig vlan7 parent bnx0 vnetid 7
|
# ifconfig vlan7 vnetid 7 parent bnx0
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
On configure ensuite l'interface de la même manière qu'une interface classique :
|
On configure ensuite l'interface de la même manière qu'une interface classique :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
# ifconfig vlan1 inet 10.10.10.1 netmask 255.255.255.0
|
# ifconfig vlan1 10.10.10.1/24
|
||||||
# ifconfig vlan7 inet 10.20.30.1 netmask 255.255.255.0
|
# ifconfig vlan7 10.20.30.1/24
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## Création définitive
|
## Création définitive
|
||||||
|
@ -32,10 +32,14 @@ On configure ensuite l'interface de la même manière qu'une interface classique
|
||||||
up
|
up
|
||||||
|
|
||||||
# cat /etc/hostname.vlan1
|
# cat /etc/hostname.vlan1
|
||||||
vlandev bnx0 description "VLAN1-Net1"
|
vnetid 1 parent bnx0
|
||||||
inet 10.10.10.1 255.255.255.0 10.10.10.255
|
up
|
||||||
|
description "VLAN1-Net1"
|
||||||
|
inet 10.10.10.1/24
|
||||||
|
|
||||||
# cat /etc/hostname.vlan7
|
# cat /etc/hostname.vlan7
|
||||||
vlandev bnx0 description "VLAN1-Net2"
|
vnetid 7 parent bnx0
|
||||||
inet 10.20.30.1 255.255.255.0 10.20.30.255
|
up
|
||||||
|
description "VLAN7-Net1"
|
||||||
|
inet 10.20.30.1/24
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Reference in a new issue