工大瑞普的ccnp实验手册内容摘要:

rved. 9 CCNP Lab Manual Lab 2. Configuring Defaultwork for EIGRP 实验目的: 掌握 通过 ip defaultwork 命令配置 EIGRP 默认网络。 实验拓扑图: 自注:由于 R3 PING R1 时, R3有指向 R1 的默认路由,而 R1 无返 回路由,所以不能 PING 通。 工大瑞普 CCNP 实验手册 169。 2020 , Inc. All rights reserved. 10 实验步骤及要求: 配置各台路由器的 IP 地址,并且使用 Ping 命令确认各路由器的直连口的互通性。 配置 R3 路由器用于模拟外部网络,也可以把其假想为 Inter 网络,并且在 R3 上配置一条默认用于,以便路由来自于 EIGRP 内部网络的数据包。 R3(config) R3(config)ip route R3(config) 配置 R R2和 R5路由器的 EIGRP 路由协议,配置如下所示: R1(config)router eigrp 50 R1(configrouter)work R1(configrouter)exit R5(config)router eigrp 50 R5(configrouter)work R5(configrouter)exit R2(config)router eigrp 50 R2(configrouter)work R2(configrouter)exit 在 R2 上查看 EIGRP 的邻居,确认 EIGRP 正常运行: R2show ip eigrp neighbors IPEIGRP neighbors for process 50 H Address Interface Hold Uptime SRTT RTO Q Seq Type (sec) (ms) Cnt Num 1 Et1/2 11 00:00:54 1 3000 0 2 0 Et1/0 12 00:00:54 1 3000 0 2 在 R2 上配置静态默认路由,用于到达外部网络,配置如下: R2(config)ip route R2(config) R2ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), roundtrip min/avg/max = 4/43/92 ms 工大瑞普 CCNP 实验手册 169。 2020 , Inc. All rights reserved. 11 R2 路由器 R2 作为企业的出口路由器,由于其配置了静态路由,因此其可以直接访问外部,但是内部的 R1和 R5 路由器由于缺少路由,因此无法访问外网。 下面显示了 R1 路由器的 路由表和其向外部发起 ping 的访问结果: R1show ip route Gateway of last resort is not set , 2 subs D [90/284160] via , 00:06:40, FastEther0/1 C is directly connected, FastEther0/1 R1 R1ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: ..... Success rate is 0 percent (0/5) R1 R5show ip route Gateway of last resort is not set , 2 subs C is directly connected, Ether1/1 D [90/307200] via , 00:12:15, Ether1/1 R5 R5ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: ..... Success rate is 0 percent (0/5) R5 为了解决问题,只需要在 R1和 R5 路由器上配置一条指向 R2路由器的静态默认路由即可,如下所示: R1(config)ip route 工大瑞普 CCNP 实验手册 169。 2020 , Inc. All rights reserved. 12 R1(config)exit R1show ip route Gateway of last resort is to work , 2 subs D [90/284160] via , 00:09:19, FastEther0/1 C is directly connected, FastEther0/1 S* [1/0] via R1 R1ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 48/71/92 ms R1 R5(config)ip route R5(config)exit R5 R5show ip route Gateway of last resort is to work , 2 subs C is directly connected, Ether1/1 D [90/307200] via , 00:13:57, Ether1/1 S* [1/0] via R5 R5ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 32/53/64 ms R5 根据上面配置,其实只需要给内部路由器配置默认路由指向出口路由器 R2即可解决外部网络无法访问的问题。 但是 如果内部网络路由器数量较多时,采用手工大瑞普 CCNP 实验手册 169。 2020 , Inc. All rights reserved. 13 工配置 静态默认路由 ,则会显得非常繁锁。 因此,建议采用默认网络命令,让R2路由器自动的向内部通告默认路由。 将 R1 和 R5 的静态默认路由删除后,查看 R1和 R5的路由表。 如下所示: R1(config)no ip route R1(config)exit R1 R1show ip route Gateway of last resort is not set , 2 subs D [90/284160] via , 00:19:02, FastEther0/1 C is directly connected, FastEther0/1 R1 R1ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: ..... Success rate is 0 percent (0/5) R1 R5(config)no ip route R5(config)exit R5 R5show ip route Gateway of last resort is not set , 2 subs C is directly connected, Ether1/1 D [90/307200] via , 00:19:42, Ether1/1 R5 R5ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: ..... Success rate is 0 percent (0/5) 工大瑞普 CCNP 实验手册 169。 2020 , Inc. All rights reserved. 14 R5 在 R2 上配置默认网络,配置如下所示: R2(config)router eigrp 50 R2(configrouter)work R2(configrouter)exit R2(config)ip defaultwork R2(config)exit R2show ip route Gateway of last resort is to work * , 2 subs, 2 masks D* , 00:00:53, Null0 C , Ether1/1 , 3 subs, 2 masks C , Ether1/2 D , 00:22:22, Null0 C , Ether1/0 S* [1/0] via R2 1查看 R1和 R5 路由器的路由表,并且尝试访问外部网络: R1show ip route Gateway of last resort is to work D* [90/284160] via , 00:02:03, FastEther0/1 , 2 subs D [90/284160] via , 00:02:04, FastEther0/1 C is directly connected, FastEther0/1 R1 R1ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 48/105/188 ms R1 R5show ip route 工大瑞普 CCNP 实验手册 169。 2020 , Inc. All rights reserved. 15 Gateway of last resort is to work D* [90/307200] via , 00:04:15, Ether1/1 , 2 subs C is directly connected, Ether1/1 D [90/307200] via , 00:04:19, Ether1/1 R5 R5ping Type escape sequence to abort. Sending 5, 100byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), roundtrip min/avg/max = 76/87/96 ms R5 1使用 ip defaultwork 命令可以有效减少内部网络配置任务。 不过需要注意的是 ip defaultwork 其指出默认网络,建议采用 主类网络。 如果使用无类网络,则可能会出现无法解释的问题。 3实验完成。 工大瑞普 Cisco课程开发小组 工大瑞普 CCNP 实验手册 169。 2020 , Inc. All rights reserved. 16 CCNP Lab Man。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。