Skip to content

Instantly share code, notes, and snippets.

@renandincer
Last active June 18, 2016 19:17
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 renandincer/9d84b271f43a10bd2dbd94401f22e643 to your computer and use it in GitHub Desktop.
Save renandincer/9d84b271f43a10bd2dbd94401f22e643 to your computer and use it in GitHub Desktop.

###FIRST INTERFACE:

HWADDR=00:25:90:5C:8B:36
TYPE=Ethernet
BOOTPROTO=none
NAME=enp193s0f0
UUID=ed00d8ba-12b5-4a48-a8a2-30a9d384b777
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes

###SECOND INTERFACE:

HWADDR=00:25:90:5C:8B:37
TYPE=Ethernet
BOOTPROTO=none
NAME=enp193s0f1
UUID=3e4100e2-5b95-4264-9fe1-cf4852c940db
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes

these two are bonded together:

###BOND0:

DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS="mode=6 miimon=100"
BRIDGE=br0

note that the bonding option is mode 6. Here are descriptions of all the modes: http://www.linuxhorizon.ro/bonding.html

We ideally want a round robin system (aka mode 0) but we lack switch support for that. So we used fixed interfaces between pairs of peers. This does not increase the throughput between two peers talking (for example when transferring files) but it does increase the thoughput when there are multiple machines talking to each other.

bridge0

DEVICE=br0
BOOTPROTO=none
ONBOOT=yes
TYPE=Bridge
USERCTL=no
NM_CONTROLLED=no
IPADDR=139.147.9.165
PREFIX=25
GATEWAY=139.147.9.129
DNS1=139.147.9.1
DNS2=139.147.4.1
DEFROUTE=yes
NAME=br0

this is the bridge between vms on the machine.

@renandincer
Copy link
Author

initial commit

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