Skip to content

Instantly share code, notes, and snippets.

@shane-c
Created January 10, 2015 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shane-c/11aa8da9e54e5685038c to your computer and use it in GitHub Desktop.
Save shane-c/11aa8da9e54e5685038c to your computer and use it in GitHub Desktop.
infrastructure openstack-interfaces.cfg
# VXLAN - Management
auto vxlan-mgmt
iface vxlan-mgmt inet manual
pre-up ip link add vxlan-mgmt type vxlan id 10 group 239.0.0.10 dev em1 || true
up ip link set \$IFACE up
down ip link set \$IFACE down
post-down ip link del vxlan-mgmt || true
# VXLAN - VXLAN
auto vxlan-vxlan
iface vxlan-vxlan inet manual
pre-up ip link add vxlan-vxlan type vxlan id 20 group 239.0.0.20 dev em1 || true
up ip link set \$IFACE up
down ip link set \$IFACE down
post-down ip link del vxlan-vxlan || true
# VXLAN - VLAN
auto vxlan-vlan
iface vxlan-vlan inet manual
pre-up ip link add vxlan-vlan type vxlan id 21 group 239.0.0.21 dev em1 || true
up ip link set \$IFACE up
down ip link set \$IFACE down
post-down ip link del vxlan-vlan || true
# VXLAN - Storage
auto vxlan-storage
iface vxlan-storage inet manual
pre-up ip link add vxlan-storage type vxlan id 30 group 239.0.0.30 dev em1 || true
up ip link set \$IFACE up
down ip link set \$IFACE down
post-down ip link del vxlan-storage || true
# Bridge - Management
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports vxlan-mgmt
address 172.29.236.10
netmask 255.255.252.0
dns-nameservers 8.8.8.8
# Bridge VXLAN
auto br-vxlan
iface br-vxlan inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports vxlan-vxlan
address 172.29.240.10
netmask 255.255.252.0
# Bridge VLAN
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports vxlan-vlan
# Bridge Storage
auto br-storage
iface br-storage inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports vxlan-storage
address 172.29.244.10
netmask 255.255.252.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment