CCNP实验2-1:升级到无类路由协议
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://hexianguo.blog.51cto.com/337884/69059 | ||||||||||||||||||||
实验2-1:升级到无类路由协议
【实验目的】: 在本次实验中,你将安装路由信息协议第二版(RIPV2)。 在完成本次实验之后,你需要完成下列任务:
【实验拓扑】:
![]() 注意:图中x为所在机架编号,y为路由器编号。
【实验帮助】:
如果出现任何问题,可以向在值的辅导老师提出并请求提供帮助。 【命令列表】:
【任务一】:探索有类路由选择。
使用TELNET或者其他终端程序建立与路由器建立联接。记住在本实验中x是你的机架编号,y是你的路由器编号。 实验之前,请确保你的路由器配置与下列类似: P1R1 或P1R2:
hostname P1R1 ! boot-start-marker boot-end-marker ! no aaa new-model ip subnet-zero no ip domain lookup ! interface Ethernet0 ip address ! interface Serial0 ip address 172.31.1.1 255.255.255.0 encapsulation frame-relay frame-relay map ip 172.31.1.3 111 broadcast no frame-relay inverse-arp ! interface Serial1 ip address 10.1.0.1 255.255.255.0 clockrate 64000 ! ip route 0.0.0.0 0.0.0.0 172.31.1.3 no ip http server no ip classless P1R3或P1R4:
hostname P1R3 ! boot-start-marker boot-end-marker ! no aaa new-model ip subnet-zero no ip domain lookup ! interface Ethernet0 ip address ! interface Serial0 ip address 10.1.3.3 255.255.255.0 shutdown clockrate 64000 ! interface Serial1 no ip address shutdown ! no ip http server ip classless ! line con 0 exec-timeout 30 0 logging synchronous line aux 0 line vty 0 4 login 实验过程:
第一步:在所有的路由器上配置使用RIP 版本1,并发布网络( 第二步:使用命令version 1明确的指定使用RIPv1。缺省情况下,路由器发送和接收版本1和版本2的路由,设置路由器使用版本1以防止骨干路由器同时运行两种版本。 第三步:使用show ip protocols命令,验证路由器是仅仅运行版本1。你的路由器输入应该与下表类似: P1R1#sh ip pro Routing Protocol is "rip" Sending updates every 30 seconds, next due in 24 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip Default version control: send version 1, receive version 1 Interface Send Recv Triggered RIP Key-chain Ethernet0 1 1 Serial0 1 1 Serial1 1 1 Automatic network summarization is in effect Maximum path: 4 Routing for Networks: 10.0.0.0 172.31.0.0 Routing Information Sources: Gateway Distance Last Update 10.1.0.2 120 00:00:19 172.31.1.3 120 00:00:25 Distance: (default is 120) 第四步:在内部路由器PxR4上,使用ping命令测试内部路由器与TFTP服务器之间连接的正确性。为什么PING TFTP服务器是不成功的,你的显示应该是下列类似 P2R4#ping 10.254.0.254 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.254.0.254, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) P2R4# 第五步:有类路由选择的行为是寻找未知的路由在直连的有类网络(在这个例子中是 第六步:为了使内部路由器能够到达核心网络,边界路由器上将通过RIP散布缺省路由到内部路由器。首先,在边界路由器上添加一条缺省静态路由,并在RIP配置模式下使用default-information orginate命令。 第七步:检查内部路由器的路由表。现在这里有路径了吗?记住,RIP的收敛是很慢的。即使这是一个很小的网络,在缺省路由出现在你的内部路由器之前,你也需要等待一些时间。为了强制RIP协议收敛,,你可以使用clear ip route *命令。收敛收后的路由表应该与下图类似: P1R4#sh ip route Codes: 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 route Gateway of last resort is
R 172.31.0.0/16 [120/1] vi
10.0.0.0/24 is subnetted, 2 subnets C 10.1.2.0 is directly connected, Ethernet0 R 10.1.0.0 [120/1] vi R* 0.0.0.0/0 [120/8] vi 第八步:现在我们再使用PING命令来测试TFTP服务器与内部路由器之间的连接。这个PING到TFTP服务器还是不成功的,为什么? 你的显示应该与下列类似: P2R4#ping 10.254.0.254 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.254.0.254, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) P2R4# 【任务二】:探索无类的转发 现在内部路由器仍然PING不通TFTP服务器的原因是有类路由的特性,就像刚才我们所讨论的,寻找一个直连的有类网络(在这个例子中是 实验过程: 第一步:内部路由器不能到达TFTP服务器,是因为边界路由器使用了no ip classless命令。有类路由的行为只是在直连的有类网络(在这个例子中是10.0.0.0)以内查找未知的路由并且他不会考虑更为详细的路由条目。 第二步:激活IP classless在每一个路由器上,使路由器执行无类中行为 第三步:测试内部路由器和TFTP服务器之间连接的正确性。 第四步:尽管更改了路由器的行为,但是RIP v1还是一个有类路由协议并且还是在跨越帧中继网络时进行自动汇总。这个路由器BBR1将没有路由返回10.x.1.0/24或10.x.2.0/24子网。为了弥补这点,使用RIP无类版本,RIP v2。另外,在边界路由器上关启自动汇总。 第五步:等待一会,然后测试内部路由器与TFTP服务器的连通性。你的测试结果应该和下列类似: P2R4#ping 10.254.0.254 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.254.0.254, timeout is 2 seconds: !!!!! Success rate is 0 percent (0/5) P2R4# 【任务三】:优化无类路由,增加无类路由的扩展性
实验过程: 第一步:从内部路由器,使用TELNET连接到BBR1(172.31.x.3)。所有的你的路由器所有的网络都应该列表在BBR1的路由表中,你的显示应该和下列类似: BBR1#sh 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, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR Gateway of last resort is not set
172.31.0.0/24 is subnetted, 1 subnets
C 172.31.1.0 is directly connected, Serial0 S 192.168.11.0/24 [1/0] via 172.31.1.2 R 10.1.2.0 [120/1] via 172.31.1.2, 00:00:08, Serial0 R 10.1.1.0 [120/1] via 172.31.1.1, 00:00:08, Serial0 R 10.1.0.0 [120/1] via 172.31.1.1, 00:00:07, Serial0 [120/1] via 172.31.1.2, 00:00:07, Serial S 192.168.1.0/24 [1/0] via 172.31.1.1 BBR1# 第二步:随着网络的变大,一个大的路由表并不有效的,因为他需要更多内部来存储他们。如果第一条路由都在路由表里,那么任何路由事件(如:抖动)必须是散布到整个网络中。路由汇总限制更新数据包和最小化路由器的路由表。使用ip summary-address rip命令配置边界路由器去声明一个汇总路由10.x.0.0 255.255.0.0到BBR1。你需要在哪里输入适当的命令呢? 第三步:再一次查看BBR1的路由表。记住,RIP是慢的收敛的。你可能需要等待一些时间。即使这里是一个小网络。在汇总路由出现在BBR1之前,你可能看到许多路由,但是最终的显示应该与下列类似: BBR1#sh 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, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR Gateway of last resort is not set
172.31.0.0/24 is subnetted, 1 subnets
C 172.31.1.0 is directly connected, Serial0 S 192.168.11.0/24 [1/0] via 172.31.1.2 R 10.1.0.0/16 [120/1] via 172.31.1.2, 00:00:02, Serial0 [120/1] via 172.31.1.1, 00:00:02, Serial S 192.168.1.0/24 [1/0] via 172.31.1.1 BBR1# 第四步:使用show ip protocols命令检查RIP的详细操作。你的显示结果应该与下列类似: P1R2#sh ip pro Routing Protocol is "rip" Sending updates every 30 seconds, next due in 26 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip Default version control: send version 2, receive version 2 Interface Send Recv Triggered RIP Key-chain Ethernet0 2 2 Serial0 2 2 Serial1 2 2 Automatic network summarization is not in effect Address Summarization: 10.1.0.0/16 for Serial0 Maximum path: 4 Routing for Networks: 10.0.0.0 172.31.0.0 Routing Information Sources: Gateway Distance Last Update 10.1.0.1 120 00:06:35 10.1.2.4 120 00:05:16 172.31.1.3 *Mar 1 01:15:07.475: %SYS-5-CONFIG_I: Configured from console by console 120 00:00:22 Distance: (default is 120) P1R2# 【实验验证】:
成功完成整个实验,你需要完成下列任务:
本文出自 “Tracy McGrady” 博客,请务必保留此出处http://hexianguo.blog.51cto.com/337884/69059 本文出自 51CTO.COM技术博客 |



hexianguo
博客统计信息
热门文章
最新评论
友情链接
