商讯信箱
用户名: @
密  码:   注册|忘记密码
登录
个人用户经销商
您的位置:首页 > 网络专区 > 正文

路由安装解析:H3C 网络排错——RIP路由协议(1)

作者:http://www.chinaunix.net ssffzz1  2008-05-06

  概述:

  RIP 协议,是一个距离矢量路由协议,采用跳数作为到达目的网络的度量标识,最大跳数为16 跳,即大于等于16 跳网络即为不可达。目前有RIP V1 和RIP V2 两个版本。由于最大跳数的限制,以及协议的其他原因,RIP 协议不适合用于大型网络。

  路由安装疑难:

  缺失的路由条目-子网掩码不一致:

  如图2,在路由器上R1 R2 R3 配置运行RIP 协议,却发现R2 和R3 缺失路由条目。

  R1:
  interface Serial0/0
  link-protocol ppp
  ip address 10.0.0.1 255.255.255.0
  #
  interface Serial2/0
  link-protocol ppp
  ip address 10.1.0.1 255.255.255.252
  #
  interface LoopBack0
  ip address 10.1.1.1 255.255.255.252
  #
  interface LoopBack1
  ip address 10.0.1.1 255.255.255.0
  #
  rip
  network 0.0.0.0

  R2:
  interface Serial0/0
  clock DTECLK1
  link-protocol ppp
  ip address 10.0.0.2 255.255.255.0
  #
  interface Serial3/0
  link-protocol ppp
  #
  rip
  network 0.0.0.0

  R3:
  interface Serial0/0
  clock DTECLK1
  link-protocol ppp
  ip address 10.1.0.2 255.255.255.252
  #
  rip
  network 0.0.0.0

  故障排除:查看R2 R3 的路由表,缺少部分路由条目:

  [R2]dis rip routing
  RIP routing table: public net
  A = Active I = Inactive G = Garbage collection
  C = Change T = Trigger RIP
  Destination/Mask Cost NextHop Age SourceGateway Att
  10.0.1.0/24 1 10.0.0.1 25s 10.0.0.1 A

  [R3]dis rip routing
  RIP routing table: public net
  A = Active I = Inactive G = Garbage collection
  C = Change T = Trigger RIP
  Destination/Mask Cost NextHop Age SourceGateway Att
  10.1.1.0/30 1 10.1.0.1 13s 10.1.0.1 A

  经检查发现,网络规划时使用不一致的子网掩码,这对于RIPV1 来说是错误的配置。要么
  修正网络掩码,要么采用RIPV2 协议,此处是采用RIPV2 协议的配置:

  R1:
  interface Serial0/0
  link-protocol ppp
  ip address 10.0.0.1 255.255.255.0
  rip version 2 multicast
  #
  interface Serial2/0
  link-protocol ppp
  ip address 10.1.0.1 255.255.255.252
  rip version 2 multicast

  R2:
  interface Serial0/0
  clock DTECLK1
  link-protocol ppp
  ip address 10.0.0.2 255.255.255.0
  rip version 2 multicast

  R3:
  interface Serial0/0
  clock DTECLK1
  link-protocol ppp
  ip address 10.1.0.2 255.255.255.252
  rip version 2 multicast

原文链接:http://bbs.chinaunix.net/viewthread.php?tid=1083378
转载请注明作者名及原文出处

1
【内容导航】
第1页: 第1页
©版权所有。未经许可,不得转载。
[责任编辑:单静]