Linux.com

Ethernet Bonding

Link to this post 07 Apr 11

I am trying to bond two interfaces (eth1 and eth2) with mode bonding mode 1 (active-backup). I have successfully set it up but when I try to test it by pulling the cable on eth1, it switched to eth2 but bond0 IP is no loger reacheable.

# bond0 #
DEVICE=bond0
USERCTL=no
BOOTPROTO=dhcp
ONBOOT=yes

# eth1 #
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

# eth2 #
DEVICE=eth2
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

# modprobe.conf #
alias bond0 bonding
options bond0 mode=1 miimon=100 primary=eth1

Done issuing modprobe -r bonding and below is the /proc result for bond0 after I pulled the cable on eth1. It switched to eth2 but bond0 IP is no longer reacheable.

# /proc/net/bonding/bond0 #
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth1 (primary_reselect always)
Currently Active Slave: eth2
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth1
MII Status: down
Link Failure Count: 1
Permanent HW addr: xx:xx:xx:xx:xx:43

Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: xx:xx:xx:xx:xx:27

Link to this post 07 Apr 11

owh,, uts aumful... wait i'll check it.. for now maybe people down me can help you sir

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board