dit document beschrijft hoe je VLANs activeert op linux.
apt install vlan modprobe 8021q
ip link add link <nic> name <nic>.<vlanid> type vlan id <vlanid>
ip addr add <IP>/<mask> dev <nic>.<vlanid>
ip link set dev <nic>.<vlanid> up
ip link add link eth0 name eth0.10 type vlan id 10 ip addr add 192.168.10.2/24 dev eth0.10 ip link set dev eth0.10 up
tcpdump -i <nic>.<vlanid>
/etc/network/interfaces auto <nic>.<vlanid>
iface <nic>.<vlanid> inet static
address <IP>
netmask 255.255.255.0
vlan-raw-device <nic>
auto eth0.10
iface eth0.10 inet static
address 192.168.10.2
netmask 255.255.255.0
vlan-raw-device eth0