网络安全 当前位置:首页 > 计算机学习 > 网络知识 > 网络安全>正文

Lab6:RIPV1的有类路由推荐

【网络安全】 2018-01-26本文已影响
Epn68学习网-学习教育资源分享平台
注:R2DCEEpn68学习网-学习教育资源分享平台
RIPv1为有类路由,(默认为RIPV1)故他会自动汇总,并且只认有类IP网络,1.1.1.0/24,他依然只把他做为A类地址来看待,所以你发布网络:
Epn68学习网-学习教育资源分享平台
net 1.1.1.0
net 1.0.0.0 效果是一样的。也就是说这个实验的结果是R1ping 不通R3的回环口,R2只可以ping R1F3其中的一个回环口。Router>Router>enRouter#con tEnter configuration commands, one per line.? Endwith CNTL/Z.Router(config)#host R1R1(config)#int loopback 1R1(config-if)#ip add 1.1.1.1255.255.255.0R1(config-if)#no shR1(config-if)#int s0/0R1(config-if)#ip add 192.168.1.1 255.255.255.0R1(config-if)#no shR1(config-if)#exitR1(config)#router ripR1(config-router)#net 1.0.0.0R1(config-router)#net 192.168.1.0R1(config-router)#exitR1(config)#exitR1#Epn68学习网-学习教育资源分享平台
Epn68学习网-学习教育资源分享平台
router>enEpn68学习网-学习教育资源分享平台
router#con tEpn68学习网-学习教育资源分享平台
router(config)#host R2
R2(config)#int s0/0R2(config-if)#ip add 192.168.1.2 255.255.255.0R2(config-if)#clock rate 64000R2(config-if)#no shR2(config-if)#exitR2(config)#int s0/1R2(config-if)#ip add 192.168.2.1 255.255.255.0R2(config-if)#clock rate 64000R2(config-if)#no shR2(config-if)#exitR2(config)#router ripR2(config-router)#net 192.168.1.0R2(config-router)#net 192.168.2.0R2(config-router)#exitR2(config)#exitEpn68学习网-学习教育资源分享平台
Epn68学习网-学习教育资源分享平台
?Router>Router>enRouter#con tRouter(config)#host? R3R3(config)#int s0/0R3(config-if)#ip add 192.168.2.2 255.255.255.0R3(config-if)#no shR3(config-if)#exitR3(config)#int loopback 1R3(config-if)#ip add 1.1.2.1255.255.255.0R3(config-if)#no shR3(config-if)#exitR3(config)#router rip R3(config-router)#net 192.168.2.0R3(config-router)#net 1.0.0.0R3(config-router)#endEpn68学习网-学习教育资源分享平台
R3#Epn68学习网-学习教育资源分享平台
现在路由都配过了,看下各自的路由表:R1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M -mobile, B - BGP?????? D - EIGRP, EX -EIGRP external, O - OSPF, IA - OSPF inter area?????? E1 - OSPF externaltype 1, E2 - OSPF external type 2, E - EGP?????? i - IS-IS, L1 -IS-IS level-1, L2 - IS-IS level-2, * - candidate default?????? U - per-user staticroute?Gateway of last resort is not set????? 1.0.0.0/24is subnetted, 1 subnetsC?????? 1.1.1.0is directly connected, Loopback1C??? 192.168.1.0 is directly connected,Serial0/0R??? 192.168.2.0 [120/1] via 192.168.1.2, 00:02:33,Serial0/0Epn68学习网-学习教育资源分享平台
R2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M -mobile, B - BGP?????? D - EIGRP, EX -EIGRP external, O - OSPF, IA - OSPF inter area?????? E1 - OSPF externaltype 1, E2 - OSPF external type 2, E - EGP?????? i - IS-IS, L1 -IS-IS level-1, L2 - IS-IS level-2, * - candidate default?????? U - per-user staticroute?Gateway of last resort is not set?C??? 192.168.1.0 is directly connected,Serial0/0C??? 192.168.2.0 is directly connected,Serial0/1R??? 1.0.0.0[120/1] via 192.168.2.2, 00:09:28, Serial0/1?R2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M -mobile, B - BGP?????? D - EIGRP, EX -EIGRP external, O - OSPF, IA - OSPF inter area?????? E1 - OSPF externaltype 1, E2 - OSPF external type 2, E - EGP?????? i - IS-IS, L1 -IS-IS level-1, L2 - IS-IS level-2, * - candidate default?????? U - per-user staticroute?Gateway of last resort is not set?C??? 192.168.1.0 is directly connected,Serial0/0C??? 192.168.2.0 is directly connected,Serial0/1R??? 1.0.0.0[120/1] via 192.168.2.2, 00:05:35, Serial0/1同样是R2不同时间竟然不一样。R3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M -mobile, B - BGP?????? D - EIGRP, EX -EIGRP external, O - OSPF, IA - OSPF inter area?????? E1 - OSPF externaltype 1, E2 - OSPF external type 2, E - EGP?????? i - IS-IS, L1 -IS-IS level-1, L2 - IS-IS level-2, * - candidate default?????? U - per-user staticroute?Gateway of last resort is not set?C??? 192.168.2.0 is directly connected,Serial0/0???? 1.0.0.0/24is subnetted, 1 subnetsC?????? 1.1.2.0is directly connected, Loopback1R??? 192.168.1.0 [120/1] via 192.168.2.1,00:05:41, Serial0/0?R3#ping 1.1.1.1?Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1,timeout is 2 seconds:.....Success rate is 0 percent (0/5), round-trip min/avg/max =1/2/4 ms结果就是这个样子。Epn68学习网-学习教育资源分享平台
Epn68学习网-学习教育资源分享平台
版权声明:原创作品,如需转载,请注明出处。否则将追究法律责任

本站所有资源均来自于68学习网蜘蛛爬取结果,如您发现侵权、违法、存在不和谐内容,告知本站一律删除

本站不以盈利为目的,全站资源仅供学习爱好使用。本站站长邮箱:luo689up@foxmail.com

备案号:闽ICP备15018334号-2

©68学习网  2016-2017版权所有     站点地图

回到顶部