Ethernet Channel Bonding aka NIC Teaming on Linux Systems

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Narad Shrestha

He has over 10 years of rich IT experience which includes various Linux Distros, FOSS and Networking. Narad always believes sharing IT knowledge with others and adopts new technology with ease.

Your name can also be listed here. Work as a Paid freelancer/writer at TecMint.

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

13 Responses

  1. Jack says:

    We have bonding setup as active/standby and our nics are going to 2 separate switches with a vlan going between the 2. We keep seeing the switches switch back and forth on who learn the mac-address for the linux server. When it learns the backup nic the linux server no longer pings.

    Is there an option we have set that is causing this behavior or a setting we need to set to stop this behavior?

    r-osasumn2-2#sh mac-address-table address 0202.9905.0301
    Legend: * – primary entry
    age – seconds since last seen
    n/a – not available

    vlan mac address type learn age ports
    ——+—————-+——–+—–+———-+————————–
    Module 1:
    * 503 0202.9905.0301 dynamic Yes 10 Po10
    Module 3:
    * 503 0202.9905.0301 dynamic Yes 250 Po10

    r-osasumn2-1#sh mac-address-table address 0202.9905.0301
    Legend: * – primary entry
    age – seconds since last seen
    n/a – not available

    vlan mac address type learn age ports
    ——+—————-+——–+—–+———-+————————–
    Module 1:
    * 503 0202.9905.0301 dynamic Yes 45 Te1/2

    I wouldn’t think the backup nic would try sending an arp annouce since it the backup and shouldn’t be in use.

    • mike says:

      you could try using mode2

      mode=2 (balance-xor)
      XOR policy: Transmit based on [(source MAC address XOR’d with destination MAC address) modulo slave count]. This selects the same slave for each destination MAC address. This mode provides load balancing and fault tolerance.

  2. Rahim Kanji says:

    Hello Abhishek,

    To remove bonding:

    ifconfig bond0 down

    rmmod bonding

    rmmod tg3

    ifconfig ethX up or ifconfig ethX “IP.ADD.RE.S” or

    then reconfigure your /etc/sysconfig/network-scripts/ifcfg-ethX

    NB. X corresponds to 0,1,2 like eth0, eth1.. etc…

  3. Jindrich says:

    Hi,

    nice article. Please add also information that this standard is called 802.3ad and you need to have a switch that supports this standard.

    thanks,
    Jindrich

  4. Abhishek says:

    This is good stuff, can I know how to remove bond.

  5. Reda says:

    Hi, is it possible to make a dhcp server with bondind?

  6. newone says:

    really really good stuff

  7. David Armstrong says:

    “/etc/sysconfig/network-scripts/ifcfg-eth1″
    “/etc/sysconfig/network-scripts/ifcfg-eth1″ E212: Can’t open file for writing
    Press ENTER or type command to continue

    This is the error I am getting. I am logged in as “root” user. Using Ubuntu 13.10.

    • Nath says:

      Try and see if permissions are proper to write for that file
      “ls -l “under folder “/etc/sysconfig/network-scripts/”

  8. phani says:

    Will ethernet channel bonding work if both NIC’s (eth1 and eth2) are of different speeds

    i.e eth1 full duplex and eth2 half duplex

    Does it depend upon the make and model of the NIC’s to work on with channel bonding.

  9. phani says:

    Hi Sir,

    Will ethernet channel bonding work if both NIC’s (eth1 and eth2) are of different speeds

    i.e eth1 full duplex and eth2 half duplex

    Does it depend upon the make and model of the NIC’s to work on with channel bonding.

    Regards,
    Phani

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 62000+ Linux Users
  1. 46679
  2. 2055
  3. 10101

Enter your email to get latest Linux Howto's