OSPF案例分析之如何得到正常的OSPF路由

http://tech.ddvip.com   2008年02月19日    社区交流 收藏本文

内容摘要:日前,笔者在工作中发现一个问题,即无法得到正常的OSPF路由。笔者现将OSPF协议排错的过程写下来,希望能与更多的朋友共享。

  router-id 197.7.1.2

  log-adjacency-changes

  network 100.1.0.2 0.0.0.0 area 0

  network 222.222.222.1 0.0.0.0 area 0

  neighbor 100.1.0.1 cost 200

  故障现象如下:

  在RouterA和RouterB上查看路由表,发现相互之间并没有学习到OSPF路由。

  2、显示OSPF信息

  分别在两台路由器上查看邻居状态,显示如下:

  RouterA#show ip ospf neighbor

  Neighbor ID   Pri  State      Dead Time  Address     Interface

  197.7.1.2     0  FULL/ -    00:01:38  100.1.0.2    Serial1/0

  RouterA#show ip ospf neighbor

  Neighbor ID   Pri  State      Dead Time  Address     Interface

  197.7.1.1     1  FULL/BDR    00:01:54  100.1.0.1    Serial1/0

  然后分别察看路由表,有下列显示:

  RouterA#show ip route

  100.0.0.0/16 is subnetted, 1 subnets

  C    100.1.0.0 is directly connected, Serial1/0

  197.7.1.0/32 is subnetted, 1 subnets

  C    197.7.1.1 is directly connected, Loopback0

  111.0.0.0/24 is subnetted, 1 subnets

  C    111.111.111.0 is directly connected, FastEthernet0/0

  RouterB#show ip route

  C  222.222.222.0/24 is directly connected, FastEthernet0/0

  100.0.0.0/16 is subnetted, 1 subnets

  C    100.1.0.0 is directly connected, Serial1/0

  接下来在来查看两台路由器的接口状态如下:

  RouterA#show ip ospf interface

  FastEthernet0/0 is up, line protocol is up

来源:IT168    作者:悬浮颗粒    责编:豆豆技术应用

正在加载评论...