Linux VLAN

From Teknologisk videncenter
Jump to: navigation, search

Ubuntu

apt-get install vlan
modprobe 8021q
vconfig add eth0 10
vconfig add eth0 20
ifconfig eth0.10 up
ifconfig eth0.20 up

Lav det permanent

Load moduler under boot

sudo su -c 'echo "8021q" >> /etc/modules'

Tilføj interfaces til interfaces config

auto eth1.10
iface eth1.10 inet static
    address 10.0.0.1
    netmask 255.255.255.0
    vlan-raw-device eth1

Links