Skip to content

Instantly share code, notes, and snippets.

@mcallaway
Created January 21, 2016 00:26
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 mcallaway/7d1044c19d287e1cfbbc to your computer and use it in GitHub Desktop.
Save mcallaway/7d1044c19d287e1cfbbc to your computer and use it in GitHub Desktop.
auto lo
iface lo inet loopback
#iface em1 inet manual
#iface em2 inet manual
auto br-ex
allow-ovs br-ex
iface br-ex inet static
address 10.200.0.41
netmask 255.255.252.0
gateway 10.200.0.1
dns-nameservers 10.0.5.220
dns-nameservers 10.0.28.153
dns-nameservers 10.100.1.53
ovs_type OVSBridge
ovs_ports bond0
ovs_extra set bridge br-ex other-config:hwaddr=d0:43:1e:60:f3:43
allow-br-ex bond0
iface bond0 inet manual
ovs_bridge br-ex
ovs_type OVSBond
ovs_bonds em1 em2
pre-up ( ifconfig em1 mtu 8996 && ifconfig em2 mtu 8996 && ip link set addr d0:43:1e:60:f3:43 dev em2 )
ovs_options lacp=passive
mtu 8996
pre-up modprobe bonding mode=4 miimon=200 xmit_hash_policy=1
post-down modprobe -r bonding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment