Skip to content

Instantly share code, notes, and snippets.

@clly
Created January 10, 2013 17:53
Show Gist options
  • Select an option

  • Save clly/4504235 to your computer and use it in GitHub Desktop.

Select an option

Save clly/4504235 to your computer and use it in GitHub Desktop.
Creating bonding interfaces in Linux

#Creating Bonding interfaces on Linux

##Configuration Files

###/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=yes #settings for bond MASTER=bond0 SLAVE=yes

###/etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=none ONBOOT=yes #settings for bond MASTER=bond0 SLAVE=yes

###/etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 IPADDR=192.168.1.1 NETMASK=255.255.255.0 GATEWAY=192.168.1.254 USERCTL=no BOOTPROTO=none ONBOOT=yes

###/etc/modprobe.conf alias bond0 bonding options bond0 mode=balance-xor

##Steps

  1. Set configuration files
  2. run
modprobe bonding
  1. run
service network restart
  1. check bond information using ``` cat /proc/net/bonding/bond0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment