Skip to content

Instantly share code, notes, and snippets.

@jdutton
Last active December 25, 2015 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdutton/7025737 to your computer and use it in GitHub Desktop.
Save jdutton/7025737 to your computer and use it in GitHub Desktop.
Network config file for full service single controller running Quantum/Neutron over vlans
# This is the network configuration for a single OpenStack Controller
# with all services (including quantum).
# The loopback network interface
auto lo
iface lo inet loopback
dns-nameservers 192.168.81.17 134.111.201.54
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.81.80
netmask 255.255.255.0
network 192.168.81.0
gateway 192.168.81.1
auto eth1.15
iface eth1.15 inet static
vlan-raw-device eth1
address 192.168.82.80
netmask 255.255.255.0
post-up ip rule add from 192.168.82.80 lookup api
post-up ip rule add to 192.168.82.80 lookup api
post-up ip route add default via 192.168.82.1 dev eth1.15 table api
auto eth1.16
iface eth1.16 inet static
vlan-raw-device eth1
address 192.168.83.80
netmask 255.255.255.0
post-up ip rule add from 192.168.83.80 lookup floating
post-up ip rule add to 192.168.83.80 lookup floating
post-up ip route add default via 192.168.83.1 dev eth1.16 table floating
auto eth1.17
iface eth1.17 inet static
vlan-raw-device eth1
address 10.200.10.80
netmask 255.255.255.0
auto eth1.18
iface eth1.18 inet static
vlan-raw-device eth1
address 10.10.1.80
netmask 255.255.255.0
auto eth1.19
iface eth1.19 inet static
vlan-raw-device eth1
address 10.200.11.80
netmask 255.255.255.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment