Skip to content

Instantly share code, notes, and snippets.

@v1k0d3n
Last active May 27, 2016 00:21
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 v1k0d3n/06245da552d2655c70d9d15ed131d7ff to your computer and use it in GitHub Desktop.
Save v1k0d3n/06245da552d2655c70d9d15ed131d7ff to your computer and use it in GitHub Desktop.
auto br-vlan
iface br-vlan inet static
pre-up ip link add br-vlan-veth type veth peer name eth12 || true # Create veth pair
pre-up ip link set br-vlan-veth up # Set the veth UP
pre-up ip link set eth12 up # Set the veth UP
post-down ip link del br-vlan-veth || true # Delete veth pair on DOWN
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports bond0 br-vlan-veth # Notice this bridge port is an Untagged host interface
offload-sg off
address 172.29.236.101
netmask 255.255.252.0
gateway 172.29.236.1
dns-nameservers 8.8.8.8 8.8.4.4
dns-search domain.com
# Tagged vlan network interfaces
# ------------------------------
# Used in various bridges
auto br-vlan.101
iface br-vlan.101 inet manual
vlan-raw-device br-vlan
vlan_id 101
auto br-vlan.102
iface br-vlan.102 inet manual
vlan-raw-device br-vlan
vlan_id 102
auto br-vlan.103
iface br-vlan.103 inet manual
vlan-raw-device br-vlan
vlan_id 103
# Bridge for vxlan network
# ------------------------
# Used by all compute and network nodes
auto br-vxlan
iface br-vxlan inet manual
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports br-vlan.101 # Notice the bridge port is the vlan tagged interface
offload-sg off
address 172.29.240.101
netmask 255.255.252.0
dns-nameservers 8.8.8.8 8.8.4.4
dns-search domain.com
# Bridge for management network
# -----------------------------
# Used by all nodes
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports eth2 # Notice the bridge port is the vlan tagged interface
offload-sg off
address 172.29.236.101
netmask 255.255.252.0
gateway 172.29.236.1
dns-nameservers 8.8.8.8 8.8.4.4
dns-search domain.com
# Bridge for vWorks PXE Management Network
auto br-vworks-pxe
iface br-vworks-pxe inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports eth2
offload-sg off
address 10.2.1.55
netmask 255.255.255.0
network 10.2.1.0
broadcast 10.2.1.255
gateway 10.2.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 8.8.4.4
dns-search domain.com
# Bridge for storage network
# --------------------------
# Used by all compute and storage nodes
auto br-storage
iface br-storage inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports eth2 # Notice the bridge port is the vlan tagged interface
offload-sg off
address 172.29.244.101
netmask 255.255.252.0
gateway 172.29.244.1
dns-nameservers 8.8.8.8 8.8.4.4
dns-search domain.com
----
user@server:~$ brctl show
bridge name bridge id STP enabled interfaces
br-mgmt 8000.40f2e9848e52 no eth2
br-storage 8000.000000000000 no
br-vlan 8000.8ad9d1453536 no br-vlan-veth
br-vworks-pxe 8000.000000000000 no
br-vxlan 8000.8ad9d1453536 no br-vlan.101
user@server:~$
@v1k0d3n
Copy link
Author

v1k0d3n commented May 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment