(the same question was asked on http://unix.stackexchange.com)
We are facing some problem with configuration of servers: There are 2 servers, each one contain 2 NICs which are in bond. Each server is connected to 2 Cisco switches (one connection from each NIC to separate switch). The port on the switch is configured to have VLAN 1111. There is also interconnection between switches (this VLAN is part of the interconnection).
There is following error on the switch2 (Gi0/25 is where server is connected, Gi0/30 is the interconnection)
*Jun 1 16:18:23.182: %SW_MATM-4-MACFLAP_NOTIF: Host 1cc1.de7a.04b6 in vlan 1111 is flapping between port Gi0/25 and port Gi0/30
*Jun 1 16:18:45.093: %SW_MATM-4-MACFLAP_NOTIF: Host 1cc1.de7a.04b6 in vlan 1111 is flapping between port Gi0/30 and port Gi0/25
*Jun 1 16:18:56.031: %SW_MATM-4-MACFLAP_NOTIF: Host 1cc1.de7a.04b6 in vlan 1111 is flapping between port Gi0/25 and port Gi0/30
*Jun 1 16:19:15.141: %SW_MATM-4-MACFLAP_NOTIF: Host 1cc1.de7a.04b6 in vlan 1111 is flapping between port Gi0/25 and port Gi0/30
*Jun 1 16:19:23.479: %SW_MATM-4-MACFLAP_NOTIF: Host 1cc1.de7a.04b6 in vlan 1111 is flapping between port Gi0/30 and port Gi0/25
*Jun 1 16:19:45.616: %SW_MATM-4-MACFLAP_NOTIF: Host 1cc1.de7a.04b6 in vlan 1111 is flapping between port Gi0/30 and port Gi0/25
when checking configuration you can see that both switches has learned 1cc1.de7a.04b6 MAC address
NLS-PDC-SW2>show mac address-table vlan 1111
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1111 1cc1.de7a.046a DYNAMIC Gi0/26
1111 1cc1.de7a.04b6 DYNAMIC Gi0/25
Total Mac Addresses for this criterion: 23
NLS-PDC-SW1>show mac address-table vlan 1111
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1111 1cc1.de7a.04b6 DYNAMIC Gi0/25
Total Mac Addresses for this criterion: 24
NLS-PDC-SW1>
checking the modprobe file from both servers I've found that on server2 (which contain 1cc1.de7a.04b6)
alias bond0 bonding
options bond0 miimon=100
and on server1 (which contain 1cc1.de7a.046a)
alias bond0 bonding
options bond0 miimon=100 mode=1
I'm really confused with the needed configuration. Can you please suggest?
EDIT
[admin@servera ~]$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 1c:c1:de:7a:04:6a
Slave Interface: eth3
MII Status: up
Link Failure Count: 1
Permanent HW addr: 98:4b:e1:0a:cb:20
[admin@serverb ~]$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 1c:c1:de:7a:04:b6
Slave Interface: eth3
MII Status: up
Link Failure Count: 1
Permanent HW addr: 98:4b:e1:01:49:ba