rip传递默认路由方法

上传人:第*** 文档编号:32695777 上传时间:2018-02-12 格式:DOC 页数:8 大小:51.50KB
返回 下载 相关 举报
rip传递默认路由方法_第1页
第1页 / 共8页
rip传递默认路由方法_第2页
第2页 / 共8页
rip传递默认路由方法_第3页
第3页 / 共8页
rip传递默认路由方法_第4页
第4页 / 共8页
rip传递默认路由方法_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《rip传递默认路由方法》由会员分享,可在线阅读,更多相关《rip传递默认路由方法(8页珍藏版)》请在金锄头文库上搜索。

1、RIP 传递默认路由方法(共种)图:关于传递默认路由的实验都是以下这个图RIP 传递默认理由方法 1:default-information originateR1:interface Loopback0ip address 1.1.1.1 255.255.255.0interface Loopback1ip address 11.11.11.11 255.255.255.0interface Serial2/1ip address 12.0.0.1 255.255.255.0router ripversion 2network 11.0.0.0network 12.0.0.0no auto-

2、summaryR2:interface Serial2/1ip address 12.0.0.2 255.255.255.0interface Serial2/2ip address 23.0.0.2 255.255.255.0router ripversion 2network 12.0.0.0network 23.0.0.0no auto-summaryR3:interface Serial2/1ip address 23.0.0.3 255.255.255.0router ripversion 2network 23.0.0.0no auto-summarR1 路由表 1.0.0.0/2

3、4 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback023.0.0.0/24 is subnetted, 1 subnetsR 23.0.0.0 120/1 via 12.0.0.2, 00:00:02, Serial2/111.0.0.0/24 is subnetted, 1 subnetsC 11.11.11.0 is directly connected, Loopback112.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected,

4、 Serial2/1R2 路由表:23.0.0.0/24 is subnetted, 1 subnetsC 23.0.0.0 is directly connected, Serial2/211.0.0.0/24 is subnetted, 1 subnetsR 11.11.11.0 120/1 via 12.0.0.1, 00:00:20, Serial2/112.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/1R3 的路由表:23.0.0.0/24 is subnetted, 1 subn

5、etsC 23.0.0.0 is directly connected, Serial2/111.0.0.0/24 is subnetted, 1 subnetsR 11.11.11.0 120/2 via 23.0.0.2, 00:00:20, Serial2/112.0.0.0/24 is subnetted, 1 subnetsR 12.0.0.0 120/1 via 23.0.0.2, 00:00:20, Serial2/1R2#ping 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1

6、.1.1, timeout is 2 seconds:.Success rate is 0 percent (0/5)没路由不通在 R1 上做:R1(config)#router ripR1(config-router)#default-information originate /可以加个 route-map,也可以直接回车咱们直接回车看效果R1 路由表1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback023.0.0.0/24 is subnetted, 1 subnetsR 23.0.0.0

7、 120/1 via 12.0.0.2, 00:00:01, Serial2/111.0.0.0/24 is subnetted, 1 subnetsC 11.11.11.0 is directly connected, Loopback112.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/1R2 路由表:23.0.0.0/24 is subnetted, 1 subnetsC 23.0.0.0 is directly connected, Serial2/211.0.0.0/24 is su

8、bnetted, 1 subnetsR 11.11.11.0 120/1 via 12.0.0.1, 00:00:19, Serial2/1 /说明明细路由可以发出12.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/1R* 0.0.0.0/0 120/1 via 12.0.0.1, 00:00:19, Serial2/1 /默认路由出来了R3 路由表:23.0.0.0/24 is subnetted, 1 subnetsC 23.0.0.0 is directly connected, Ser

9、ial2/111.0.0.0/24 is subnetted, 1 subnetsR 11.11.11.0 120/2 via 23.0.0.2, 00:00:25, Serial2/112.0.0.0/24 is subnetted, 1 subnetsR 12.0.0.0 120/1 via 23.0.0.2, 00:00:25, Serial2/1R* 0.0.0.0/0 120/2 via 23.0.0.2, 00:00:25, Serial2/1R2#ping 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP

10、Echos to 1.1.1.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 172/249/360 ms可以说明默认路由起了效果在 R1 上做:R1(config)#router ripR1(config-router)#default-information originate route-map QQ /名字随便起在看 R2 路由表:23.0.0.0/24 is subnetted, 1 subnetsC 23.0.0.0 is directly connected,

11、 Serial2/211.0.0.0/24 is subnetted, 1 subnetsR 11.11.11.0 120/1 via 12.0.0.1, 00:00:14, Serial2/112.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/1发现默认路由没有了。可是当我用 route-map QQ 匹配 1.1.1.0/24 的路由后R1(config)#ip prefix-list 1 per 1.1.1.0/24R1(config)#route-map QQ R1(config-ro

12、ute-map)#match ip add prefix-list 1在看 R2 的路由表:23.0.0.0/24 is subnetted, 1 subnetsC 23.0.0.0 is directly connected, Serial2/211.0.0.0/24 is subnetted, 1 subnetsR 11.11.11.0 120/1 via 12.0.0.1, 00:00:03, Serial2/112.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/1R* 0.0.0.0/

13、0 120/1 via 12.0.0.1, 00:00:03, Serial2/1 /又出来了 总结:default-information originate 可以向网络传递默认路由,自己路由表中没有默认路由存在,如果后面加了 route-map,只有自己路由表中有自己匹配的路由才会向其他路由器发送默认路由, 路由条目可以是直连也可以是从 lab 学来路由, 也可以是静态路由.方法 2:创建手工建立一条默认路由到 NULL0 口,在进行重分布在 R1 上:R1(config)#ip route 0.0.0.0 0.0.0.0 null 0R1(config)#router ripR1(con

14、fig-router)#redistribute static metric 2 /在 RIP 中重分布静态路由度量默认是 1(在向 RIP 区域重分布路由的时候,必须指定度量值,或者通过 default-metric 命令设置默认种子度量值,因为 RIP 默认种子度量值为无穷大,只有重分布静态特殊,可以不指定度量值)现在观察 R1 路由表:1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback023.0.0.0/24 is subnetted, 1 subnetsR 23.0.0.0 120/1

15、via 12.0.0.2, 00:00:08, Serial2/111.0.0.0/24 is subnetted, 1 subnetsC 11.11.11.0 is directly connected, Loopback112.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/1S* 0.0.0.0/0 is directly connected, Null0 /自己手工创建的R2 的路由表:23.0.0.0/24 is subnetted, 1 subnetsC 23.0.0.0 is directly connected, Serial2/211.0.0.0/24 is subnetted, 1 subnetsR 11.11.11.0 120/1 via 12.0.0.1, 00:00:11, Serial2/112.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial2/1R* 0.0.0.0/0 120/2 via 12.0

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 职业教育

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号