I need help to configure a bond0 with 2 devices eth0 and eth1 (active-backup mode). The Bond is comming up, but it runs only over eth1. For Primary Slave i've configured eth0. When i pull the networkcable from eth1 and plug it in eth0 it dosen't work.
Here's my configuration:
modprobe.conf:
alias bond0 bonding
options bond0 mode=active-backup primary=eth0 miimon=100
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: down
Link Failure Count: 0
Permanent HW addr: 00:1e:4f:40:03:e9
Slave Interface: eth1
MII Status: up
Link Failure Count: 1
Permanent HW addr: 00:1e:4f:40:03:e7
Hi all!
I need help to configure a bond0 with 2 devices eth0 and eth1 (active-backup mode). The Bond is comming up, but it runs only over eth1. For Primary Slave i've configured eth0. When i pull the networkcable from eth1 and plug it in eth0 it dosen't work.
Here's my configuration:
modprobe.conf:
alias bond0 bonding
options bond0 mode=active-backup primary=eth0 miimon=100
ifcfg-bond0:
DEVICE=bond0
IPADDR=10.236.213.60
NETWORK=10.236.213.0
NETMASK=255.255.255.128
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
PEERDNS=yes
GATEWAY=10.236.213.1
ifcfg-eth0:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
#USERCTL=no
MASTER=bond0
SLAVE=yes
HWADDR=00:1E:4F:40:03:E9
#TYPE=Ethernet
ifcfg-eth1:
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
#USERCTL=no
MASTER=bond0
SLAVE=yes
HWADDR=00:1E:4F:40:03:E7
#TYPE=Ethernet
output of "less /proc/net/bonding/bond0":
Ethernet Channel Bonding Driver: v2.6.3 (June 8, 2005)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: down
Link Failure Count: 0
Permanent HW addr: 00:1e:4f:40:03:e9
Slave Interface: eth1
MII Status: up
Link Failure Count: 1
Permanent HW addr: 00:1e:4f:40:03:e7
output of ifconfig -a:
bond0 Link encap:Ethernet HWaddr 00:1E:4F:40:03:E9
inet addr:10.236.213.60 Bcast:10.236.213.127 Mask:255.255.255.128
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:2071 errors:0 dropped:0 overruns:0 frame:0
TX packets:284 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:273737 (267.3 KiB) TX bytes:35282 (34.4 KiB)
eth0 Link encap:Ethernet HWaddr 00:1E:4F:40:03:E9
BROADCAST SLAVE MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:169 Memory:f4000000-f4011100
eth1 Link encap:Ethernet HWaddr 00:1E:4F:40:03:E9
inet6 addr: fe80::21e:4fff:fe40:3e9/64 Scope:Link
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:2071 errors:0 dropped:0 overruns:0 frame:0
TX packets:284 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:273737 (267.3 KiB) TX bytes:35282 (34.4 KiB)
Interrupt:169 Memory:f8000000-f8011100
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3321 errors:0 dropped:0 overruns:0 frame:0
TX packets:3321 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1810081 (1.7 MiB) TX bytes:1810081 (1.7 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Greetings
i've fixed the problem!
There was a ifcg-eth0.bak in the directory /etc/sysconfig/network-scripts/
after i removed the file the bonding works correctly now!
good to know! ;)