apt-get update
apt-get install vlan
auto ethX.Y
auto eth0.49
iface eth0.49 inet static
address 129.97.49.9
netmask 255.255.255.0
broadcast 129.97.49.255
ifup eth0.49
eth0.49 | 49 | eth0
vlan_raw_device eth0
ifdown [interface]
does not remove the vlan from the vlan tables, to remove it do vconfig rem [interface]
where interface is the VLAN interface (e.g. eth0.49 or vlan49), not the actual eth device