Skip to content

Instantly share code, notes, and snippets.

@mmalchuk
Last active March 21, 2018 11:48
Show Gist options
  • Save mmalchuk/5ddf1f0865ae08ef8ed70f0864968ac4 to your computer and use it in GitHub Desktop.
Save mmalchuk/5ddf1f0865ae08ef8ed70f0864968ac4 to your computer and use it in GitHub Desktop.
OSA configs
#loopback
auto lo
iface lo inet loopback
# Physical interface
auto ens3
iface ens3 inet manual
# Container/Host management VLAN interface
auto ens3.10
iface ens3.10 inet manual
vlan-raw-device ens3
# OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
auto ens3.30
iface ens3.30 inet manual
vlan-raw-device ens3
# Storage network VLAN interface (optional)
auto ens3.20
iface ens3.20 inet manual
vlan-raw-device ens3
# Host network
auto br-host
iface br-host inet static
bridge_ports ens3
address 192.168.122.28
netmask 255.255.255.0
gateway 192.168.122.1
dns-nameservers 192.168.122.2
dns-search example.org
bridge_stp off
# Container/Host management bridge
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.10
address 172.29.236.12
netmask 255.255.252.0
# Bind the External VIP
#auto br-mgmt:0
#iface br-mgmt:0 inet static
# address 172.29.236.10
# netmask 255.255.252.0
# OpenStack Networking VXLAN (tunnel/overlay) bridge
auto br-vxlan
iface br-vxlan inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports eth0.30
address 172.29.240.12
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
#pre-up ip link add br-vlan-veth type veth peer name eth12 || true
#pre-up ip link set br-vlan-veth up
#pre-up ip link set eth12 up
#post-down ip link del br-vlan-veth || true
#bridge_ports eth0 br-vlan-veth
bridge_ports ens3
# Storage bridge (optional)
auto br-storage
iface br-storage inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports eth0.20
address 172.29.244.12
netmask 255.255.252.0
#loopback
auto lo
iface lo inet loopback
# Physical interface
auto ens3
iface ens3 inet manual
# Container/Host management VLAN interface
auto ens3.10
iface ens3.10 inet manual
vlan-raw-device ens3
# OpenStack Networking VXLAN (tunnel/overlay) VLAN interface
auto ens3.30
iface ens3.30 inet manual
vlan-raw-device ens3
# Storage network VLAN interface (optional)
auto ens3.20
iface ens3.20 inet manual
vlan-raw-device ens3
# Host network
auto br-host
iface br-host inet static
bridge_ports ens3
address 192.168.122.25
netmask 255.255.255.0
gateway 192.168.122.1
dns-nameservers 192.168.122.2
dns-search example.org
bridge_stp off
# Container/Host management bridge
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.10
address 172.29.236.11
netmask 255.255.252.0
# Bind the External VIP
auto br-mgmt:0
iface br-mgmt:0 inet static
address 172.29.236.10
netmask 255.255.252.0
# OpenStack Networking VXLAN (tunnel/overlay) bridge
auto br-vxlan
iface br-vxlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.30
# OpenStack Networking VLAN bridge
auto br-vlan
iface br-vlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3
# Storage bridge (optional)
auto br-storage
iface br-storage inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports ens3.20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment