Skip to content

Instantly share code, notes, and snippets.

@evrardjp
Created June 10, 2016 17:56
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 evrardjp/f2ef647a6f349d2b88d4ffcdb78b596b to your computer and use it in GitHub Desktop.
Save evrardjp/f2ef647a6f349d2b88d4ffcdb78b596b to your computer and use it in GitHub Desktop.
veth example
auto br-vlan
iface br-vlan inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
address 172.29.248.100
netmask 255.255.252.0
offload-sg off
# Create veth pair, don't bomb if already exists
pre-up ip link add br-vlan-veth type veth peer name eth12 || true
# Set both ends UP
pre-up ip link set br-vlan-veth up
pre-up ip link set eth12 up
# Delete veth pair on DOWN
post-down ip link del br-vlan-veth || true
bridge_ports br-vlan-veth
# Add an additional address to br-vlan
iface br-vlan inet static
# Flat network default gateway
# -- This needs to exist somewhere for network reachability
# -- from the router namespace for floating IP paths.
# -- Putting this here is primarily for tempest to work.
address 172.29.248.1
netmask 255.255.252.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment