User Tools

Site Tools


network:vlansubuntu

Tagged Vlans on Ubuntu

Install the Required Packages and load kernel module

apt-get install vlan
echo "8021q" >> /etc/modules
modprobe 8021q

Configure by vconfig and ifconfig

The following example is for configuring a tagged vlan on eth0 ID 240

vconfig add eth0 240
ifconfig eth0.240 192.168.115.3 255.255.255.0

Configure by Ifup

The following example is for configuring a tagged vlan on eth0 ID 240

/etc/network/interfaces
auto eth0.240
iface eth0.240 inet static
    address 192.168.115.3
    netmask 255.255.255.0
    vlan-raw-device eth0
network/vlansubuntu.txt · Last modified: 2015/01/09 11:11 by tschulz