- 1、本文档共7页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
有类和无类实例有类和无类实例
有类路由和无类路由的区别(以RIPv1和v2为例)
有类路由在路由通告时不带子网掩码,无类路由在通告时携带子网掩码,以下图为例:
我们下面分三种情况介绍:
第一:我们在R1、R2和R3分别配置RIPv1。
R1
R1(config)#router rip
R1(config-router)#net
R1(config-router)#network 192.168.10.0
R1(config-router)#network 192.168.20.0
R2
R2(config)#router rip
R2(config-router)#network 192.168.20.0
R3
R3(config)#router rip
R3(config-router)#network 192.168.20.0
R1、R2、R3的路由表分别输出如下:
R1
R1#show 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 not set
192.168.10.0/25 is subnetted, 1 subnets
C 192.168.10.128 is directly connected, Loopback0
192.168.20.0/26 is subnetted, 1 subnets
C 192.168.20.0 is directly connected, Ethernet0/0
R1#ping 192.168.20.66
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.66, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2
R2#show 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 not set
R 192.168.10.0/24 [120/1] via 192.168.20.25, 00:00:11, Ethernet0/0
192.168.20.0/24 is variably subnetted, 3 subnets, 2 masks
R 192.168.20.96/27 [120/1] via 192.168.20.67, 00:00:07, E
文档评论(0)