955 B
955 B
Cette page a été importée automatiquement de notre ancien wiki mais n'a pas encore été révisée.
Howto VLAN sous OpenBSD
http://www.openbsd.org/cgi-bin/man.cgi?query=vlan&sektion=4
IEEE 802.1Q/1AD encapsulation/decapsulation pseudo-device
Création manuelle
Création de 2 VLANs, 1 et 7, rattachés à l'interface bnx0
# ifconfig vlan1 create
# ifconfig vlan7 create
# ifconfig vlan1 vlan 1 vlandev bnx0
# ifconfig vlan7 vlan 7 vlandev bnx0
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 vlan7 inet 10.20.30.1 netmask 255.255.255.0
Création définitive
# cat /etc/hostname.bnx0
up
# cat /etc/hostname.vlan1
inet 10.10.10.1 255.255.255.0 10.10.10.255 vlandev xl0 description "VLAN1-Net1"
# cat /etc/hostname.vlan7
inet 10.20.30.1 255.255.255.0 10.20.30.255 vlandev xl0 description "VLAN7-Net2"