您的位置:首页 > 其它

PingingLab传世经典系列《CCNA完全配置宝典》-2.4 RIPv1基本配置

2013-08-09 16:22 537 查看
2.4 RIPv1基本配置
实验目的:
1、掌握RIPv1的基本配置。
2、掌握RIPv1的有类特性。

实验拓扑:



实验步骤:1、依据图中拓扑配置各设备的IP地址,并保证直连连通性;
在R1上做如下配置:
R1(config)#int f0/0R1(config-if)#no shutdownR1(config-if)#ip address 12.1.1.1 255.255.255.0R1(config-if)#exitR1(config)#int f1/0R1(config-if)#no shutdownR1(config-if)#ip address 13.1.1.1 255.255.255.0R1(config-if)#exitR1(config)#int loopback 1R1(config-if)#ip address 1.1.1.1 255.255.255.255R1(config-if)#exit在R2上做如下配置:
R2(config)#int f0/0R2(config-if)#no shutdownR2(config-if)#ip address 12.1.1.2 255.255.255.0R2(config-if)#exitR2(config)#int f1/0R2(config-if)#no shutdownR2(config-if)#ip address 23.1.1.2 255.255.255.0R2(config-if)#exitR2(config)#int loopback 1R2(config-if)#ip address 2.2.2.2 255.255.255.255R2(config-if)#exit在R3上做如下配置
R3(config)#int f0/0R3(config-if)#no shutdownR3(config-if)#ip address 13.1.1.3 255.255.255.0R3(config-if)#exitR3(config-if)#int f1/0R3(config-if)#no shutdownR3(config-if)#ip address 23.1.1.3 255.255.255.0R3(config-if)#exitR3(config)#int loopback 1R3(config-if)#ip address 3.3.3.3 255.255.255.255R3(config-if)#exit在其中一台路由器上进行连通性测试:
R1#ping 12.1.1.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 20/34/48 msR1#ping 13.1.1.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 13.1.1.3, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 16/31/48 ms此时说明直连连接没有问题。
2.在每台路由器开始进行RIPv1的配置,R1的配置如下:
R1(config)#router rip[j1]R1(config-router)#network 12.0.0.0[j2]R1(config-router)#network 13.0.0.0R1(config-router)#network 1.0.0.0R1(config-router)#exitR2的配置如下:
R2(config)#router ripR2(config-router)#network 12.0.0.0R2(config-router)#network 23.0.0.0R2(config-router)#network 2.0.0.0R2(config-router)#exitR3的配置如下:
R3(config)#router ripR3(config-router)#network 13.0.0.0R3(config-router)#network 23.0.0.0R3(config-router)#network 3.0.0.0R3(config-router)#exit3.在任意一台路由器上查看路由表并进行测试:
在R1上查看路由表:
R1#show ip routeCodes: C - connected, S - static, 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 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 routeGateway of last resort is not set 1.0.0.0/32 is subnetted, 1 subnetsC 1.1.1.1 is directly connected, Loopback1R 2.0.0.0/8 [120/1] via 12.1.1.2, 00:00:01, FastEthernet0/0R 3.0.0.0/8 [120/1] via 13.1.1.3, 00:00:07, FastEthernet1/0R 23.0.0.0/8 [120/1] via 13.1.1.3, 00:00:07, FastEthernet1/0 [120/1] via 12.1.1.2, 00:00:01, FastEthernet0/0[j3] 12.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, FastEthernet0/0 13.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet1/0此时看到路由表中出现“R”开头的路由条目,则为R1从R2和R3学习到的RIPv1路由,并且进行连通性测试,如下:
R1#ping 2.2.2.2 source 1.1.1.1[j4]Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:Packet sent with a source address of 1.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/24/44 msR1#ping 3.3.3.3 source 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:Packet sent with a source address of 1.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/24/40 msR1上测试成功,同样可以在R2和R3上进行测试,此实验完成。
[j1]进入RIP进程,默认为RIPv1
[j2]注意,此处network是用于宣告主类网络号,不需要具体的路由条目如12.1.1.0,也不需要路由掩码。
[j3]RIPv1是20世纪70年代所开发的,是一种古老的路由协议,所以呈现有类特性-路由更新不夹带掩码并且自动汇总。此处2.2.2.2/32自动汇总为2.0.0.0/8,3.3.3.3/32则自动汇总为3.0.0.0/8。
[j4]带源PING通,表示对方路由器也能PING通本地环回接口。
==========================================
PingingLab·高品质IT教育提供商
CCIE 实验室·IT项目实战·高端人才定制
深圳拼客信息科技有限公司·广州大学城外环西路站
新浪微博:@拼客科技PingingLab @PingingLab-陈鑫杰
PingingLab微信公众号:pinginglab
PingingLab技术交流群:240920680

本文出自 “陈鑫杰讲网络” 博客,请务必保留此出处http://chenxinjie.blog.51cto.com/7749507/1274515
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐