When I tried to create VLANs and bridges on Ubuntu 14.04 (as in the following configuration), the network connection is always lost.
What is the problem?
Note that the if I only set the interface em1(no em1.100, cloudbr0 and cloudbr1) with the same IP, gateway etc. settings, the network works fine.
Is the following way of setting up for VLANs and bridges wrong or have I missed something? I have also checked that 802.1q module has been loaded already.
#cat /etc/network/interfaces auto lo iface lo inet loopback #The primary network interface auto em1.100 iface em1.100 inet static address 192.168.42.11 netmask 255.255.255.240 gateway 192.168.42.1 dns-nameservers 22.214.171.124 126.96.36.199 #Public network auto cloudbr0 iface cloudbr0 inet manual bridge_ports em1.200 bridge_fd 5 bridge_stp off bridge_maxwait 1 #Private network auto cloudbr1 iface cloudbr1 inet manual bridge_ports em1.300 bridge_fd 5 bridge_stp off bridge_maxwait 1 #reboot ==> then lost network connection.