Skip to content

Instantly share code, notes, and snippets.

@antonym
Last active November 20, 2017 01:55
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 antonym/a7f8ffb5105d0cdcd6020a1deae2a675 to your computer and use it in GitHub Desktop.
Save antonym/a7f8ffb5105d0cdcd6020a1deae2a675 to your computer and use it in GitHub Desktop.
/etc/network/interfaces for openstack-ansible blog
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Physical interface 1
auto em1
iface em1 inet manual
bond-master bond0
bond-primary em1
# Physical interface 2
auto em2
iface em2 inet manual
bond-master bond0
# Physical interface 3
auto p4p1
iface p4p1 inet manual
bond-master bond1
bond-primary p4p1
# Physical interface 4
auto p4p2
iface p4p2 inet manual
bond-master bond1
# Bond interface 0 (physical interfaces 1 and 2)
auto bond0
iface bond0 inet static
bond-slaves em1 em2
bond-mode active-backup
bond-miimon 100
bond-downdelay 200
bond-updelay 200
address 10.127.5.110
netmask 255.255.252.0
gateway 10.127.4.1
dns-nameservers 8.8.8.8 8.8.4.4
# Bond interface 1 (physical interfaces 3 and 4)
auto bond1
iface bond1 inet manual
bond-slaves p4p1 p4p2
bond-mode active-backup
bond-miimon 100
bond-downdelay 250
bond-updelay 250
# Container management VLAN interface
iface bond0.853 inet manual
vlan-raw-device bond0
# OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
iface bond1.855 inet manual
vlan-raw-device bond1
# Container management bridge
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
# Bridge port references tagged interface
bridge_ports bond0.853
address 172.29.236.10
netmask 255.255.252.0
dns-nameservers 8.8.8.8 8.8.4.4
# OpenStack Networking VXLAN (tunnel/overlay) bridge
auto br-vxlan
iface br-vxlan inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
# Bridge port references tagged interface
bridge_ports bond1.855
address 172.29.240.10
netmask 255.255.252.0
# OpenStack Networking VLAN bridge
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
# Bridge port references untagged interface
bridge_ports bond1
source /etc/network/interfaces.d/*.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment