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

豆豆网   技术应用频道   2008年02月19日  【字号: 收藏本文

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

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

  1、现象描述

  在下图中,两台路由器通过串口连接,在互连接口上运行OSPF协议。RouterA的以太网接口地址为111.111.111.1,且运行了OSPF协议,Router的以太网接口地址为222.222.222.1,也启用了OSPF协议。

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

  RouterA的主要配置如下:

  interface Loopback0

  ip address 197.7.1.1 255.255.255.255

  !

  interface FastEthernet0/0

  ip address 111.111.111.1 255.255.255.0

  ip ospf cost 200

  duplex auto

  speed auto

  !

  interface Serial1/0

  ip address 100.1.0.1 255.255.0.0

  ip ospf network point-to-multipoint

  ip ospf cost 200

  serial restart-delay 0

  !

  router ospf 22

  router-id 197.7.1.1

  log-adjacency-changes

  network 100.1.0.1 0.0.0.0 area 0

  network 111.111.111.1 0.0.0.0 area 0

  neighbor 100.1.0.2 cost 200

  Router的主要配置如下:

  interface FastEthernet0/0

  ip address 222.222.222.1 255.255.255.0

  ip ospf cost 200

  duplex auto

  speed auto

  !

  interface Serial1/0

  ip address 100.1.0.2 255.255.0.0

  ip ospf network non-broadcast

  ip ospf cost 200

  serial restart-delay 0

  router ospf 22

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

正在加载评论...