Skip to content

Instantly share code, notes, and snippets.

@mpurzynski
Last active August 26, 2016 13:46
Show Gist options
  • Select an option

  • Save mpurzynski/ea51b9c52aac1b525f0f4547e9d1143b to your computer and use it in GitHub Desktop.

Select an option

Save mpurzynski/ea51b9c52aac1b525f0f4547e9d1143b to your computer and use it in GitHub Desktop.
auto lo
iface lo inet loopback
auto em1
iface em1 inet manual
bond-master bond0
bond-primary em1
auto em2
iface em2 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
address {{ mgm_addr }}
netmask {{ mgm_netmask }}
network {{ mgm_network }}
gateway {{ mgm_gw }}
bond-mode 4
bond-miimon 100
bond-lacp-rate 1
bond-slaves em1 em2
bond-xmit_hash_policy layer3+4
auto em3
iface em3 inet manual
bond-master bond1
bond-primary em3
auto em4
iface em4 inet manual
bond-master bond1
auto bond1
iface bond1 inet static
address {{ cluster_addr }}
netmask {{ cluster_netmask }}
network {{ cluster_network }}
bond-mode 4
bond-miimon 100
bond-lacp-rate 1
bond-slaves em3 em4
bond-xmit_hash_policy layer3+4
auto {{ cap_name }}
iface {{ cap_name }} inet manual
up ip link set $IFACE promisc on arp off up
down ip link set $IFACE promisc off down
post-up ethtool -G $IFACE rx 32768; for i in rx tx autoneg tso ufo gso gro lro tx­nocache­copy rxhash; do ethtool -K $IFACE $i off; done
post-up echo 1 > /proc/sys/net/ipv6/conf/$IFACE/disable_ipv6
post-up ifconfig $IFACE mtu 9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment