S12700 VRRP主备异常切换

发布时间:  2016-08-25 浏览次数:  169 下载次数:  0
问题描述
和H3C设备做VRRP,设备上反复报主备倒换
处理过程

1.客户是做的VRRP负载均衡,对端是H3C

2.查看配置:截取部分,

interface Vlanif109
ip address 172.16.109.252 255.255.255.0
vrrp vrid 109 virtual-ip 172.16.109.254
vrrp vrid 109 priority 110
vrrp vrid 109 track interface GigabitEthernet2/1/23 reduced 20
dhcp select global
#
interface Vlanif111
ip address 172.16.111.252 255.255.255.0
vrrp vrid 111 virtual-ip 172.16.111.254
ospf cost 100
dhcp select global
#
interface Vlanif112
ip address 172.16.112.252 255.255.255.0
vrrp vrid 112 virtual-ip 172.16.112.254
vrrp vrid 112 priority 110
vrrp vrid 112 track interface GigabitEthernet2/1/23 reduced 20
dhcp select global
#

2.查看日志:截取部分

Aug 24 2016 16:25:23 HNSW-CORE-SW-02 %%01VRRP/4/STATEWARNINGEXTEND(l)[4]:Virtual Router state MASTER changed to BACKUP, because of priority calculation. (Interface=Vlanif116, VrId=116, InetType=IPv4)
Aug 24 2016 16:25:23 HNSW-CORE-SW-02 %%01VRRP/4/STATEWARNINGEXTEND(l)[5]:Virtual Router state BACKUP changed to MASTER, because of protocol timer expired. (Interface=Vlanif116, VrId=116, InetType=IPv4)
Aug 24 2016 16:25:23 HNSW-CORE-SW-02 %%01VRRP/4/STATEWARNINGEXTEND(l)[8]:Virtual Router state MASTER changed to BACKUP, because of priority calculation. (Interface=Vlanif111, VrId=111, InetType=IPv4)
Aug 24 2016 16:25:20 HNSW-CORE-SW-02 %%01VRRP/4/STATEWARNINGEXTEND(l)[9]:Virtual Router state BACKUP changed to MASTER, because of protocol timer expired. (Interface=Vlanif111, VrId=111, InetType=IPv4)

报的是vlan 111、113、115、116在主备倒换,且原因是心跳超时,对比查看,非常规律,都是优先级为100的vlan在倒换,优先级为110的都没有问题,怀疑是H3C的异常导致收发包有问题,引起主备倒换,查看H3C信息,

3,一线查看H3C的日志信息,反馈也有主备倒换的情况,且报倒换的vlan都是在H3C上为备的vlan,如vlan 119、110等,vlan 111、113、115、116未报主备倒换的问题,且查看S12700日志中有提示MAC地址漂移,且包含了心跳口(Eth-Trunk1)

#Aug 24 2016 12:55:20 HNSW-CORE-SW-02 L2IFPPI/4/MFLPVLANALARM:OID 1.3.6.1.4.1.2011.5.25.160.3.7 MAC move detected, VlanId = 112, MacAddress = bc46-99ca-4ff6, Original-Port = Eth-Trunk1, Flapping port = GE2/1/8. Please check the network accessed to flapping port,据此建议排查环路问题

4,一线断开GE2/1/8,反馈问题还是存在,主备还是一直倒换,且查看了STP,心跳口都是转发状态,由此怀疑是由中间链路通讯异常引起心跳报文交互异常

5.心跳口做的链路聚合,捆绑了两个口:

interface GigabitEthernet2/1/16
port media type copper
  undo negotiation auto
description TO_H3C_7506
eth-trunk 1
#
interface GigabitEthernet2/1/17
port media type copper
  undo negotiation auto
eth-trunk 1

做设备互ping测试,断开其中一条线,发现ping丢包,且一直报主备倒换,然后测试断开另外一条(都只断开一条,保持一条线缆通讯状态),ping正常,且观察发现未出现倒换情况


根因
由分析得知是因为其中一条线缆异常,导致心跳报文交互异常引起心跳超时,出现双主,引起备设备上导致提示主备倒换
解决方案

更换线缆解决

END