--- interfaces.py.orig 2011-07-06 16:13:00.000000000 +0200 +++ interfaces.py 2011-07-06 16:22:30.000000000 +0200 @@ -41,6 +41,11 @@ def start_iface(iface): if iface: + # configure VLAN + vlan = iface.split('.') + if len(vlan) == 2 and vlan[0].strip() and vlan[1].strip(): + os.system('modprobe 8021q') + os.system('vconfig add %s %s >/dev/null 2>&1' % (vlan[0].strip(), vlan[1].strip())) os.system('ifup %s' % iface) def restore_gateway(gateway):