VLan's instellen
Nota: configuratie uitgevoerd in Ubuntu
De nodige software installeren - sudo apt-get install vlan
Er voor zorgen dat dot1q encapsulatie aan staat
- sudo modprobe 8021q
Controle: ' lsmod | grep 8021q ' --> 8021q
Er voor zorgen dat de dot1q module altijd na een reboot terug geladen wordt - sudo sh -c 'grep -q 8021q /etc/modules || echo 8021q >> /etc/modules'
VLAN's toevoegen (Vlan99 op interface eth0)
- sudo vconfig add eth0 99
Adres toekennen
- sudo ifconfig eth0.99 192.168.99.1 netmask 255.255.255.0
VLAN permanent opslaan
- sudo nano /etc/network/interfaces
auto eth0.99
iface eth0.99 inet static
address 192.168.99.1
netmask 255.255.255.0
vlan-raw-device eth0
