日期:2015-06-28 00:00:00 来源: IT猫扑网
OSPF配置错误导致网络无法ping通的故障的解决步骤如下:
网络环境
如下图的网络配置中,PC1-RouterA-RouterB-PC2之间通过2M线路相连,运行OSPF协议,并引入直连、静态路由。PC3-RouterA-RouterB-PC4之间模拟新增加的一条100M链路,运行OSPF协议,也引入直连和静态路由。RouterA和RouterB都在area0。
OSPF组网图
配置完成之后发现PC1与PC2之间能够Ping通,但是PC3与PC4之间却无法Ping通。
故障分析
步骤 1 在路由器RouterA上执行ping 30.1.1.1命令,能够Ping通,说明路由器A和B之间的物理链路没有问题。
具体RouterA为例:
- [RouterA] ping 30.1.1.1
- PING 30.1.1.1: 56 data bytes, press CTRL_C to break
- Reply from 30.1.1.1: bytes=56 Sequence=1 ttl=255 time=60 ms
- Reply from 30.1.1.1: bytes=56 Sequence=2 ttl=255 time=80 ms
- Reply from 30.1.1.1: bytes=56 Sequence=3 ttl=255 time=40 ms
- Reply from 30.1.1.1: bytes=56 Sequence=4 ttl=255 time=80 ms
- Reply from 30.1.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms
- --- 30.1.1.1 ping statistics ---
- 5 packet(s) transmitted
- 5 packet(s) received
- 0.00% packet loss
- round-trip min/avg/max = 20/56/80 ms
步骤 2 在RouterA、RouterB上执行display ospf routing,发现没有RouterB上没有PC3所在网段的路由信息。
以RouterB的具体显示为例。
- [RouterB] display ospf routing
- OSPF Process 1 with Router ID 100.1.1.2
- Routing Tables
- Routing for Network
- Destination Cost Type NextHop AdvRouter Area
- 30.1.1.0/24 3124 Stub 20.1.1.2 200.1.1.2 0.0.0.0
- 200.1.1.0/24 3124 Stub 20.1.1.2 200.1.1.2 0.0.0.0
- 20.1.1.0/24 1562 Stub 20.1.1.1 100.1.1.2 0.0.0.0
- 10.1.1.0/24 1562 Stub 10.1.1.2 100.1.1.2 0.0.0.0
- Routing for ASEs
- Destination CostType Tag NextHop AdvRouter
- 20.1.1.1/32 1 Type21 20.1.1.2 200.1.1.2
- 30.1.1.2/32
相关文章
相关下载
网友评论