ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

配置路由器串行接口:ripv1和v2的针对性实验

2014-3-28 07:47| 发布者: admin| 查看: 679| 评论: 0

摘要: 1、在做rip的实验应该是轻车熟路了,配置三个路由器,配置串行接口,互联这些设备,做IP地址和掩码的配置。做no classless设置。 2、启动rip路由协议,因为ripv1是有类的路由协议,而且它会自动做路由汇总,汇总成AB ...

1、在做rip的实验应该是轻车熟路了,配置三个路由器,配置串行接口,互联这些设备,做IP地址和掩码的配置。做no classless设置。
2、启动rip路由协议,因为ripv1是有类的路由协议,而且它会自动做路由汇总,汇总成ABC类的网段,所以它会认为拓扑图中的lo口的两个IP是一个类的,自然会出现问题,所以当配置好rip后,在R2上看路由表会是这样的情况:
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Serial0/0
C       172.16.2.0 is directly connected, Serial0/1
R    10.0.0.0/8 [120/1] via 172.16.1.1, 00:00:12, Serial0/0
                [120/1] via 172.16.2.2, 00:00:09, Serial0/1
3、这个时候在R2上pingR1的lo口,或者是pingR3的lo口,都会是一半通一半不通。
R2#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
U!.!U
Success rate is 40 percent (2/5), round-trip min/avg/max = 8/8/8 ms
R2#ping 10.1.1.1
4、要解决这个办法,我打上no auto-summary是不能解决问题的,因为ripv1对这个命令是没有意义的。我们需要先升级到ripv2版本。这是在看路由表是这样的
R2#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of http://www.luyouqiwang.com/13829/  last resort is not set
     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Serial0/0
C       172.16.2.0 is directly connected, Serial0/1
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R       10.1.2.0/24 [120/1] via 172.16.2.2, 00:00:07, Serial0/1
R       10.1.1.0/24 [120/1] via 172.16.1.1, 00:00:04, Serial0/0
R       10.0.0.0/8 [120/1] via 172.16.1.1, 00:02:20, Serial0/0
                   [120/1] via 172.16.2.2, 00:01:59, Serial0/15、这是再ping就能ping通了。
R2#ping 10.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/12/20 ms
R2#ping 10.1.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/28 ms

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2024-5-14 14:16 , Processed in 0.078927 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部