VLAN Setup on Ubuntu 12.04

Ran into a situation recently where I needed to set up provider_vlan within OpenStack as well as configure the VLANs on the underlying hosts. This being the first time I’ve done this in Ubuntu it needs to be written down: apt-get update && apt-get install -y vlan modprobe 8021q vconfig add bond0 100 vconfig add[…]