Created
June 10, 2016 17:56
-
-
Save evrardjp/f2ef647a6f349d2b88d4ffcdb78b596b to your computer and use it in GitHub Desktop.
veth example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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