S5700-V200R003C00SPC300和迈普OSPF建立邻居失败

发布时间:  2016-12-20 浏览次数:  272 下载次数:  0
问题描述
拓扑为本地5700直连对端迈普,区域1建立邻居,5700ip地址为22.140.22.2/30,迈普为22.140.22.2/30
由于对端设备无法提供配置,只能从本端排查

diplay ospf peer 显示为空。

debug ospf packet helllo的显示如下:

 FileID: 0x70178024 Line: 2240 Level: 0x20
OSPF 100: RECV Packet. Interface: Vlanif2000
Dec  4 2014 15:40:40.500.2-05:13 JCJ-S5700 RM/6/RMDEBUG:  Source Address: 22.140.22.1
Dec  4 2014 15:40:40.500.3-05:13 JCJ-S5700 RM/6/RMDEBUG:  Destination Address: 224.0.0.5
Dec  4 2014 15:40:40.500.4-05:13 JCJ-S5700 RM/6/RMDEBUG:  Ver# 2, Type: 1 (Hello)
Dec  4 2014 15:40:40.500.5-05:13 JCJ-S5700 RM/6/RMDEBUG:  Length: 44, Router: 22.140.20.25
Dec  4 2014 15:40:40.500.6-05:13 JCJ-S5700 RM/6/RMDEBUG:  Area: 0.0.0.1, Chksum: 9e6f
Dec  4 2014 15:40:40.500.7-05:13 JCJ-S5700 RM/6/RMDEBUG:  AuType: 00
Dec  4 2014 15:40:40.500.8-05:13 JCJ-S5700 RM/6/RMDEBUG:  Key(ascii): * * * * * * * *
Dec  4 2014 15:40:40.500.9-05:13 JCJ-S5700 RM/6/RMDEBUG:  Net Mask: 255.255.255.252
Dec  4 2014 15:40:40.500.10-05:13 JCJ-S5700 RM/6/RMDEBUG:  Hello Int: 10, Option: _N_
Dec  4 2014 15:40:40.500.11-05:13 JCJ-S5700 RM/6/RMDEBUG:  Rtr Priority: 1, Dead Int: 40
Dec  4 2014 15:40:40.500.12-05:13 JCJ-S5700 RM/6/RMDEBUG:  DR: 22.140.22.1
Dec  4 2014 15:40:40.500.13-05:13 JCJ-S5700 RM/6/RMDEBUG:  BDR: 0.0.0.0
Dec  4 2014 15:40:40.500.14-05:13 JCJ-S5700 RM/6/RMDEBUG:  # Attached Neighbors: 0
Dec  4 2014 15:40:40.500.15-05:13 JCJ-S5700 RM/6/RMDEBUG: 
Dec  4 2014 15:40:42.310.1-05:13 JCJ-S5700 RM/6/RMDEBUG:
FileID: 0x70178025 Line: 566 Level: 0x20
OSPF 100: SEND Packet. Interface: Vlanif2000
Dec  4 2014 15:40:42.310.2-05:13 JCJ-S5700 RM/6/RMDEBUG:  Source Address: 22.140.22.2
Dec  4 2014 15:40:42.310.3-05:13 JCJ-S5700 RM/6/RMDEBUG:  Destination Address: 224.0.0.5
Dec  4 2014 15:40:42.310.4-05:13 JCJ-S5700 RM/6/RMDEBUG:  Ver# 2, Type: 1 (Hello)
Dec  4 2014 15:40:42.310.5-05:13 JCJ-S5700 RM/6/RMDEBUG:  Length: 44, Router: 160.20.180.1
Dec  4 2014 15:40:42.310.6-05:13 JCJ-S5700 RM/6/RMDEBUG:  Area: 0.0.0.1, Chksum: a78b
Dec  4 2014 15:40:42.310.7-05:13 JCJ-S5700 RM/6/RMDEBUG:  AuType: 00
Dec  4 2014 15:40:42.310.8-05:13 JCJ-S5700 RM/6/RMDEBUG:  Key(ascii): * * * * * * * *
Dec  4 2014 15:40:42.310.9-05:13 JCJ-S5700 RM/6/RMDEBUG:  Net Mask: 255.255.255.252
Dec  4 2014 15:40:42.310.10-05:13 JCJ-S5700 RM/6/RMDEBUG:  Hello Int: 10, Option: _E_
Dec  4 2014 15:40:42.310.11-05:13 JCJ-S5700 RM/6/RMDEBUG:  Rtr Priority: 1, Dead Int: 40
Dec  4 2014 15:40:42.310.12-05:13 JCJ-S5700 RM/6/RMDEBUG:  DR: 0.0.0.0
Dec  4 2014 15:40:42.310.13-05:13 JCJ-S5700 RM/6/RMDEBUG:  BDR: 0.0.0.0
Dec  4 2014 15:40:42.310.14-05:13 JCJ-S5700 RM/6/RMDEBUG:  # Attached Neighbors:
处理过程
经过分析 option字段的含义:

ption 这个字段是是ospf 的可选功能。描述路由器所支持所选的功能。
一共有五位。格式分别如下:
E 位:
该位描述是否洪泛AS-external-LSA,
MC 位:
该位描述是否多播扩展OSPF 转发IP 多播包。
N/P 位:
该位描述了处理类型7 LSA。
EA 位:
该位描述了是否按OSPF 外部属性inprogress 的说明忽略还是接收并转发
External-Attributes-LSA。
DC 位:
该位描述了按扩展OSPF 和支持需求电路的说明处理按需链路。

所以option为N为处理7类LSA,为NSSA区域。定位为两端区域类型不一致。
解决方案
将5700的区域类型修改为NSSA,邻居正常建立。

END