因为S53接口下没有配置bpdu enable导致LLDP邻居不正常

发布时间:  2014-09-12 浏览次数:  515 下载次数:  6
问题描述
SWA(0/0/21)------(0/0/21)SWB直连(中间无传输),直连ping没有问题,但是LLDP异常:在SWA上能看到LLDP邻居为SWB,在SWB上看不到SWA的信息。
SWA为S5300 V100R005C01;Switch为S5300 V100R005C01SPC100

Switch#A_V100R005C01
[Quidway]dis lldp neighbor inter gi0/0/21
GigabitEthernet0/0/21 has 1 neighbors:


Neighbor index : 1
Chassis type   :macAddress
Chassis ID     :e024-7f36-c402
Port ID type   :interfaceName
Port ID        :GigabitEthernet0/0/21
Port description    :1
System name         :Quidway
System description  :S5328C-EI-24S
Huawei Versatile Routing Platform Software
VRP (R) software,Version 5.70 (S5300 V100R005C01SPC100)
Copyright (C) 2000-2006 Huawei Technologies Co., Ltd.
System capabilities supported   :bridge
System capabilities enabled     :bridge
Management address type  :all802
Management address       : e024-7f36-c402 
Expired time   :31s


Port VLAN ID(PVID)  :1
VLAN name of VLAN  1: VLAN1
Protocol identity   :STP RSTP/MSTP LACP EthOAM CFM

Auto-negotiation supported    :Yes
Auto-negotiation enabled      :Yes
OperMau   :speed(1000)/duplex(Full)     

Power port class         :PD
PSE power supported      :No
PSE power enabled        :No
PSE pairs control ability:No
Power pairs              :Unknown
Port power classification:Unknown

Link aggregation supported:Yes
Link aggregation enabled :No
Aggregation port ID      :0
Maximum frame Size       :1600

MED Device information           
Device class   :Network Connectivity

HardwareRev       :VER B

FirmwareRev       :NA
SoftwareRev       :Version 5.70 V100R005C01SPC100
SerialNum         :NA
Manufacturer name :HUAWEI TECH CO., LTD
Model name        :NA                   
Asset tracking identifier :NA

Media policy type   :Voice
Unknown Policy      :Defined
VLAN tagged         :Yes
Media policy VlanID      :0
Media policy L2 priority :6
Media policy Dscp        :46

Power Type               :Unknown
PoE PSE power source     :Unknown
Port PSE Priority        :Unknown
Port Available power value:2

Switch#B_V100R005C01SPC100

[Quidway]dis lldp neighbor interface gi0/0/21
GigabitEthernet0/0/21 has 0 neighbors 
告警信息
处理过程
1.采集SWA和SWB的LLDP报文计数:
SWA:收/发LLDP报文计数正常,而且在增长;
[Quidway]dis lldp statistics inter gi0/0/21
Statistics for GigabitEthernet0/0/21:
Transmitted Frames Total: 236     
Received Frames Total:    229       Frames Discarded Total:  0       
Frames Error Total:       0         TLVs Discarded Total:    0       
TLVs Unrecognized Total:  0         Neighbors Expired Total: 0

SWB:发出LLDP报文计数正常,而且在增长;收LLDP报文计数为0.
[Quidway] dis lldp statistics interface gi0/0/21
Statistics for GigabitEthernet0/0/21:
Transmitted Frames Total: 184     
Received Frames Total:    0         Frames Discarded Total:  0       
Frames Error Total:       0         TLVs Discarded Total:    0       
TLVs Unrecognized Total:  0         Neighbors Expired Total: 0 
2. 从抓包上来看,SWB接口收到了来自SWA的LLDP报文;
3.查看SWB配置,发现接口没有配置bpdu enable。因为LLDP是bpdu报文,需要配置bpdu enable,设备上默认应该是使能bpdu enable的,应该是设备上后去去使能了。重新添加bpdu enble之后,问题解决。
#SWA:
interface GigabitEthernet0/0/21
ntdp enable
ndp enable
bpdu enable
port-mirroring to observe-port 1 both
#SWB:
interface GigabitEthernet0/0/21
description 1
ndp enable
port-mirroring to observe-port 1 both
根因
1. SWA不能正常发出LLDP报文;
2. SWB收到LLDP后不能正常上送CPU处理;
3.SWB学习LLDP异常。
建议与总结
1. SWB看不到SWA的信息,说明才SWA到SWB方向的LLDP报文未能成功上送到SWB的CPU,需要排查各个环节;
2.通过抓包和LLDP协议报文计数,确认SWB异常;
3. 因为LLDP属于BPDU报文,所以接口必须是能BPDU功能,否则报文不能上送。

END