文章目录
1. OSPF的邻居/邻接关系排错(troubleshooing)
1. hello间隔和dead 间隔不同
2. 接口下OSPF网络类型不匹配。
3. 区域号码不一致;
4. 特殊区域(如stub,nssa等)区域类型不匹配;
5. 认证类型或密码不一致;
6. 路由器 router-id 相同;
7. 链路上的 MTU 不匹配;(前提:开启MTU)
8. 在broadcast链路上的子网掩码不匹配
9. 在MA 网络中,没有DR
10. 接口设置为silent-interface
dis ospf error //多次使用该命令来判断问题
1.1 相邻设备的RID相同
-
相邻设备的RID不能相同,否则不会有邻居状态
-
同一区域,不相邻设备的RID冲突,缺少路由
-
解决方案:保证整个AS内部的RID唯一
-
LSA 1,2,3,4,7类 6类 mospf 8类 ipv6 ospfv3 9,10,11MPLS TE
<R3>
Jun 5 2018 19:32:52-08:00 R3 %%01OSPF/4/CONFLICT_ROUTERID_INTF(l)[2]:OSPF Router id conflict is detected on interface. (ProcessId=256, RouterId=4.4.0.0,AreaId=34.0.0.0, InterfaceName=Serial2/0/0, IpAddr=3.34.1.10, PacketSrcIp=4.34.1.10)
//在s2/0/0接口上检测到了RID冲突
<R3>dis ospf error
OSPF Process 1 with Router ID 0.0.4.4
OSPF error statistics
General packet errors:
0 : IP: received my own packet 0 : Bad packet
0 : Bad version 0 : Bad checksum
0 : Bad area id 0 : Drop on unnumbered interface
0 : Bad virtual link 0 : Bad authentication type
0 : Bad authentication key 0 : Packet too small
0 : Packet size > ip length 0 : Transmit error
0 : Interface down 0 : Unknown neighbor
0 : Bad net segment 0 : Extern option mismatch
33 : Router id confusion //表明RID冲突
//补充一点:如果同一区域的不相邻设备RID冲突,则缺少路由
<SW1>dis cu conf ospf
#
ospf 1 router-id 0.0.4.4
area 0.0.0.34
#
interface Vlanif30
ip address 10.1.30.10 255.255.255.0
ospf enable 1 area 0.0.0.34
//解决方案:整个AS内部RID保持唯一
[SW1]ospf router-id 10.10.10.10
Info: The configuration succeeded. You need to restart the OSPF process to validate the new router ID.
<SW1>reset ospf process
Warning: The OSPF process will be reset. Continue? [Y/N]:y
1.2 链路上区域ID不匹配
[R3]dis ospf error
OSPF Process 1 with Router ID 33.1.1.1
OSPF error statistics
General packet errors:
0 : IP: received my own packet 0 : Bad packet
0 : Bad version 0 : Bad checksum
4 : Bad area id 0 : Drop on unnumbered interface
0 : Bad virtu