I have a RHEL6 machine with two interfaces in an active-bakup bond. I've used this setup before and never had an issue. Both interfaces on different switches but the same vlan. The interface configs look like:
ifcfg-bond0: DEVICE=bond0 ONBOOT=yes BONDING_OPTS="mode=active-backup arp_interval=60 arp_ip_target=XXX.XX.XX.1" BOOTPROTO=static IPADDR=XXX.XX.XX.110 NETMASK=255.255.255.224 ifcfg-em1: DEVICE=em1 ONBOOT=yes HWADDR=XX:XX:XX:XX:XX:XX BOOTPROTO=none SLAVE=yes MASTER=bond0 ifcfg-p3p2: DEVICE=p3p2 ONBOOT=yes HWADDR=XX:XX:XX:XX:XX:XX BOOTPROTO=none SLAVE=yes MASTER=bond0 /proc/net/bonding/bond0: Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: em1 MII Status: up MII Polling Interval (ms): 0 Up Delay (ms): 0 Down Delay (ms): 0 ARP Polling Interval (ms): 60 ARP IP target/s (n.n.n.n form): XX.XX.XX.1 Slave Interface: em1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 7 Permanent HW addr: XX:XX:XX:XX:XX:XX Slave queue ID: 0 Slave Interface: p3p2 MII Status: down Speed: 1000 Mbps Duplex: full Link Failure Count: 1890 Permanent HW addr: XX:XX:XX:XX:XX:XX Slave queue ID: 0
It appears that p3p2 is down, but the link is definitely up. It appears to be flapping in syslog:
Sep 1 10:51:33 kernel: [7203652.741385] bonding: bond0: link status definitely up for interface p3p2. Sep 1 10:51:33 kernel: [7203652.921259] bonding: bond0: link status definitely down for interface p3p2, disabling it Sep 1 10:52:03 kernel: [7203682.717402] bonding: bond0: link status definitely up for interface p3p2. Sep 1 10:52:03 kernel: [7203682.897205] bonding: bond0: link status definitely down for interface p3p2, disabling it Sep 1 10:52:33 kernel: [7203712.687629] bonding: bond0: link status definitely up for interface p3p2. Sep 1 10:52:33n kernel: [7203712.867198] bonding: bond0: link status definitely down for interface p3p2, disabling it Sep 1 10:52:55 kernel: [7203734.269772] bonding: bond0: link status definitely up for interface p3p2. Sep 1 10:52:55 kernel: [7203734.449802] bonding: bond0: link status definitely down for interface p3p2, disabling it Sep 1 10:53:03 kernel: [7203742.666573] bonding: bond0: link status definitely up for interface p3p2. Sep 1 10:53:03 kernel: [7203742.847399] bonding: bond0: link status definitely down for interface p3p2, disabling it
The weird thing is if I bring em1 down, p3p2 suddenly shows as up, but I cannot ping the gateway. If I remove p3p2 from the bond and bring it up with the same configuration as the bond it works fine. Any suggestions?
[link][18 comments]