Feed on
Posts
Comments

I’m using a CentOS 6 box for HA NFS storage behind a cluster of VMware ESXi boxes. I want to make sure those ESXi hosts aren’t fighting over a single 1Gbps Ethernet interface. ¬†Bonding 6 interfaces (3 x Intel Pro Dual-NICs) should do the trick…

On 3750x:

  • Configure switch ports (for me, that’s gi1/0/25 – 30
    interface range gi1/0/25-30
    switchport mode access
    spanning-tree portfast
    channel-group 1 mode active
    channel-protocol lacp
    no shut
    end
    copy run start

On CentOS:

  • Configure alias for kernel module
    Create /etc/modprobe.d/bonding.conf with the following contents:
    alias bond0 bonding
  • Create bond0 interface config
    Create /etc/sysconfig/network-scripts/ifcfg-bond0 with the following contents:
    DEVICE=bond0
    BONDING_OPTS="mode=4 miimon=500"
    BOOTPROTO=none
    ONBOOT=yes
    NETWORK=192.168.0.0
    NETMASK=255.255.255.0
    IPADDR=192.168.0.15
    USERCTL=no
  • Modify the configuration for the interfaces you want to bond. ¬†Keep the top 3 lines in each configuration file, which should be:
    DEVICE=XXXX
    HWADDR=XX:XX:XX:XX:XX:XX
    TYPE=EthernetReplace everything below those 3 lines with:
    ONBOOT=yes
    NM_CONTROLLED=no
    BOOTPROTO=none
    MASTER=bond0
    SLAVE=yes
    USERCTL=no
  • Reboot

Done and done…

Leave a Reply