What is the correct way of configuring virtual LAN interfaces (hopefully without messing up Network Manager) on Ubuntu 12.04 Desktop?
Simply adding the interface to
/etc/network/interfaces seems to cause Network Manager some confusion:
auto vlan500 iface vlan500 inet static ... ... vlan_raw_device eth1
Is there a better way of doing it?
/etc/NetworkManager/NetworkManager.conf with a
no-auto-default clause, and set
managed=false in the
[main] plugins=ifupdown,keyfile dns=dnsmasq no-auto-default=6C:FD:12:34:56:78, [ifupdown] managed=false
This keeps NetworkManager from firing up eth0, and makes it stay away from eth1 and it's VLAN interfaces. Previously it would only let a single VLAN interface be up, and it would put the static IP of that VLAN interface directly on the eth1 physical interface.
Still, there is a 2 minute delay during boot as (I presume) NetworkManager is trying to work out the network configuration.
Solved by creating keyfiles as described in my answer below. My desktop now boots with all VLAN interfaces up and running, and without any delays during boot.