두 Cisco 스위치 간의 Linux 본딩 장애 조치 문제

두 Cisco 스위치 간의 Linux 본딩 장애 조치 문제

여기에 이미지 설명을 입력하세요.

서버의 bond0인터페이스가 서버의 SW1 및 SW2 관련 인터페이스에 연결되어 있고 어젯밤 SW1재부팅 후 서버 eth0연결이 끊어졌지만 스위치가 성공적으로 재부팅될 때마다 eth1 네트워크로 장애 조치되지 않는 위 의 시나리오가 있습니다. , 이는 싱글톤이 아닌 여러 서버에서 발생합니다. 그래서 마침내 모든 서버에서 네트워크를 다시 시작하여 작동하게 했습니다. 우리는 primary=eth0이것을 bond0 구성에서 이미 설정했습니다 .

ifcfg-bond0

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
BONDING_OPTS=mode=1 arp_interval=1000 arp_ip_target=192.168.10.1 miimon=500 downdelay=1000 primary=eth0 primary_reselect=always
NETMASK=255.255.255.0
IPADDR=192.168.10.20
GATEWAY=192.168.10.1

ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

ifcfg-eth1

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes

이런 일이 발생했을 때 로그에 표시되는 내용은 다음과 같습니다.

[root@server1 ~]# cat /var/log/messages | grep eth
Jun 8 05:03:05 [email protected] kernel: : bnx2 0000:02:00.0: eth0: NIC Copper Link is Down
Jun 8 05:03:05 [email protected] kernel: : bonding: bond0: link status definitely down for interface eth0, disabling it
Jun 8 05:03:05 [email protected] kernel: : bonding: bond0: making interface eth1 the new active one.
Jun 8 05:07:03 [email protected] kernel: : bnx2 0000:02:00.0: eth0: NIC Copper Link is Up, 1000 Mbps full duplex
Jun 8 05:07:03 [email protected] kernel: : bonding: bond0: link status definitely up for interface eth0.
Jun 8 05:20:45 [email protected] kernel: : bonding: bond0: Removing slave eth0
Jun 8 05:20:45 [email protected] kernel: : bonding: bond0: Warning: the permanent HWaddr of eth0 - 18:A9:05:3A:39:1D - is still in use by bond0. Set the HWaddr of eth0 to a different address to avoid conflicts.
Jun 8 05:20:45 [email protected] kernel: : bonding: bond0: releasing backup interface eth0
Jun 8 05:20:46 [email protected] kernel: : bonding: bond0: Removing slave eth1
Jun 8 05:20:46 [email protected] kernel: : bonding: bond0: releasing active interface eth1
Jun 8 05:20:46 [email protected] kernel: : bonding: bond0: Adding slave eth0.
Jun 8 05:20:46 [email protected] kernel: : bnx2 0000:02:00.0: eth0: using MSIX
Jun 8 05:20:46 [email protected] kernel: : bonding: bond0: enslaving eth0 as a backup interface with a down link.
Jun 8 05:20:46 [email protected] kernel: : bonding: bond0: Adding slave eth1.
Jun 8 05:20:46 [email protected] kernel: : bnx2 0000:02:00.1: eth1: using MSIX
Jun 8 05:20:46 [email protected] kernel: : bonding: bond0: enslaving eth1 as a backup interface with a down link.
Jun 8 05:20:49 [email protected] kernel: : bnx2 0000:02:00.0: eth0: NIC Copper Link is Up, 1000 Mbps full duplex
Jun 8 05:20:49 [email protected] kernel: : bonding: bond0: link status definitely up for interface eth0.
Jun 8 05:20:49 [email protected] kernel: : bonding: bond0: making interface eth0 the new active one.
Jun 8 05:20:49 [email protected] kernel: : bnx2 0000:02:00.1: eth1: NIC Copper Link is Up, 1000 Mbps full duplex
Jun 8 05:20:50 [email protected] kernel: : bonding: bond0: link status definitely up for interface eth1.

관련 정보