某局点S7506X-G的g2/1/0/6接口与g1/1/0/5接口在短时间内反复UP/DOWN,导致客户摄像头业务受到影响:
行 5861: %@225215%Sep 6 02:00:50:959 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet2/1/0/6 changed to down.
行 5863: %@225217%Sep 6 02:00:50:978 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet2/1/0/6 changed to down.
行 5866: %@225220%Sep 6 02:00:51:070 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/1/0/5 changed to down.
行 5868: %@225222%Sep 6 02:00:51:089 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/1/0/5 changed to down.
行 5872: %@225226%Sep 6 02:00:52:971 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/1/0/5 changed to up.
行 5873: %@225227%Sep 6 02:00:52:981 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/1/0/5 changed to up.
行 5877: %@225231%Sep 6 02:00:53:172 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet2/1/0/6 changed to up.
行 5878: %@225232%Sep 6 02:00:53:175 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet2/1/0/6 changed to up.
行 5882: %@225236%Sep 6 02:00:55:315 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet2/1/0/6 changed to down.
行 5886: %@225240%Sep 6 02:00:55:354 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet2/1/0/6 changed to down.
行 5887: %@225241%Sep 6 02:00:55:418 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/1/0/5 changed to down.
行 5889: %@225243%Sep 6 02:00:55:439 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/1/0/5 changed to down.
行 5894: %@225248%Sep 6 02:00:57:247 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet2/1/0/6 changed to up.
行 5895: %@225249%Sep 6 02:00:57:258 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet2/1/0/6 changed to up.
行 5898: %@225252%Sep 6 02:00:57:320 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/1/0/5 changed to up.
行 5899: %@225253%Sep 6 02:00:57:331 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/1/0/5 changed to up.
行 5900: %@225254%Sep 6 02:00:59:984 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet2/1/0/6 changed to down.
行 5904: %@225258%Sep 6 02:01:00:021 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet2/1/0/6 changed to down.
行 5905: %@225259%Sep 6 02:01:00:065 2026 CORE-Video IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/1/0/5 changed to down.
行 5908: %@225262%Sep 6 02:01:00:100 2026 CORE-Video IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/1/0/5 changed to down.
根据port mapping信息找到对应接口的link-diag诊断日志:
====display hardware internal port link-diag chassis 1 slot 1 4====
==============================================================================
Chassis 1 Slot 1/port/tgid:4 operation record, need be translated with code and line num
=============================================================================
[0]:PID=679 TName=LinkS Line=2842 09/06/2026 02:02:11:718
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[1]:PID=679 TName=LinkS Line=2847 09/06/2026 02:02:08:935
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[2]:PID=679 TName=LinkS Line=2842 09/06/2026 02:02:04:612
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[3]:PID=679 TName=LinkS Line=2847 09/06/2026 02:02:01:518
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[4]:PID=679 TName=LinkS Line=2842 09/06/2026 02:01:17:995
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[5]:PID=679 TName=LinkS Line=12212 09/06/2026 02:01:17:684
m0=1000 m1=0 m2=2 drv_port_SetCtcSpeed
[6]:PID=679 TName=LinkS Line=2847 09/06/2026 02:01:14:901
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[7]:PID=679 TName=LinkS Line=2842 09/06/2026 02:01:02:856
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[8]:PID=679 TName=LinkS Line=12212 09/06/2026 02:01:02:545
m0=100 m1=1 m2=2 drv_port_SetCtcSpeed
[9]:PID=679 TName=LinkS Line=2847 09/06/2026 02:01:00:068
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[10]:PID=679 TName=LinkS Line=2842 09/06/2026 02:00:57:281
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[11]:PID=679 TName=LinkS Line=2847 09/06/2026 02:00:55:419
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[12]:PID=679 TName=LinkS Line=2842 09/06/2026 02:00:52:948
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
[13]:PID=679 TName=LinkS Line=12212 09/06/2026 02:00:52:636
m0=10 m1=2 m2=2 drv_port_SetCtcSpeed
[14]:PID=679 TName=LinkS Line=2847 09/06/2026 02:00:51:075
m0=0 m1=0 m2=1 drv_port_LinkChangeToPlatform
发现接口速率在10-1000之间变化,怀疑是速率自协商的问题。查看交换机故障处理手册,发现对于电口反复UP/DOWN的情况,有可能是由于自协商情况下容易出现协商不稳定,这种情况可以尝试设置强制速率双工。
本端与对端接口都配置强制速率双工(speed 1000/duplex full),可以消除速率自协商情况下的不稳定情况。