It’s just that I can’t remember how to make vlan’s witch Debian. I always have to re-invent the wheel or look at old configs which are never where I think they are… So… Here it is so I don’t have to remember it and maybe some other people will find it useful.

In /etc/network/interfaces you add the following:

# Vlan 10
iface vlan10 inet static
    adress 10.0.0.2
    netmask 255.255.255.0
    gateway 10.0.0.1
    vlan_raw_device eth0

This will add vlan10 to interface eth0. It’s so easy but I just cannot remember it when I need it.

Tagged
Posted in Debian, Linux
roedie