路由环路&次优路径

上传人:今*** 文档编号:108164232 上传时间:2019-10-22 格式:DOCX 页数:18 大小:192.89KB
返回 下载 相关 举报
路由环路&次优路径_第1页
第1页 / 共18页
路由环路&次优路径_第2页
第2页 / 共18页
路由环路&次优路径_第3页
第3页 / 共18页
路由环路&次优路径_第4页
第4页 / 共18页
路由环路&次优路径_第5页
第5页 / 共18页
点击查看更多>>
资源描述

《路由环路&次优路径》由会员分享,可在线阅读,更多相关《路由环路&次优路径(18页珍藏版)》请在金锄头文库上搜索。

1、1实验目的:解决路由环路路由环路存在的环境为,路由重分发且AD不一致的时候 。路由AD值高的路由 会出现路由环路。以下作出演示,并提出解决方案。实验需求:R1 R2 R3启用RIP V2路由协议,R1 R2 R4启用ospf。R1的回环口宣告进RIP,R2的回环口宣告进OSPF。R1Config tNo ip domain-lookupLine con 0Exec-timeout 0 0Logg synExitInt loop 0Ip add 1.1.1.1 255.255.255.0No shutInt s0/0Ip add 13.1.1.1 255.255.255.0No shutInt

2、s0/1Ip add 14.1.1.1 255.255.255.0No shutExitRouter ospf 110Router-id 1.1.1.1Network 14.1.1.0 0.0.0.255 a 0ExitRouter rip Ver 2No auto-summaryNetwork 1.1.1.0Network 13.1.1.0ExitR2Config tNo ip domain-lookupLine con 0Exec-timeout 0 0Logg synExitInt loop 0Ip add 2.2.2.2 255.255.255.0No shutInt s0/0Ip a

3、dd 24.1.1.2 255.255.255.0No shutInt s0/1Ip add 23.1.1.2 255.255.255.0No shutExitRouter ospf 110Router-id 2.2.2.2Network 24.1.1.0 0.0.0.255 a 0Network 2.2.2.0 0.0.0.255 a 0ExitRouter ripVer 2Network 23.1.1.0ExitR3Config tNo ip domain-lookupLine con 0Logg synExec-timeout 0 0ExitInt loop 0Ip add 3.3.3.

4、3 255.255.255.0No shutInt s0/1Ip add 23.1.1.3 255.255.255.0No shutInt s0/0Ip add 13.1.1.3 255.255.255.0No shutExitRouter ripVer 2Network 3.3.3.0Network 13.1.1.0Network 23.1.1.0ExitR4Config tNo ip domain-lookupLine con 0Logg synExec-timeout 0 0ExitInt loop 0Ip add 4.4.4.4 255.255.255.0No shutInt s0/0

5、Ip add 24.1.1.4 255.255.255.0No shutInt s0/1Ip add 14.1.1.4 255.255.255.0No shutExitRouter ospf 110Router-id 4.4.4.4Network 14.1.1.0 0.0.0.255 a 0Network 24.1.1.0 0.0.0.255 a 0Network 4.4.4.0 0.0.0.255 a 0Exit在R1上 show ip route 查看 rip已经正常使用。接下来进行双点双向重分发。EIGRP 与IGP其他路由进行双向重分发的时候 不会出现路由环路,故我们所使用的路由协议为

6、rip &ospfR1Configt tRouter ospf 110Redistribute rip subnets (将rip重分布进入ospf 加上参数subnets)ExitRouter rip Ver 2Redistribute ospf 110 metric 2 (其他路由充分不进入rip时需注意要修改度量值,否则否认的度量值为15 不可达)ExitR2Config tRouter ospf 110Redistribute rip subnetsExitRouter rip Ver 2Redistribute ospf 110 metric 2Exit在R3上查看是否收到了 重分发

7、的路由。Show ip route rip出现很多次优路径,接下来在R2上面查看 有关3.3.3.3 这个路由。Rip里面含有3.3.3.3的这条路由,AD值为120OSPF里面也含有3.3.3.3 的这条路由,AD值为110综合以上,参照选路原则,则放进路由表的将会是AD值低的,即通往3.3.3.3 需经过R4 R1 R3 这样,行程路由回路,通往3.3.3.3的最佳路径本应是R2-R32解决次优路径的方案 :R1:Config tRouter ospf 110Distance 121 2.2.2.2 0.0.0.255 (将从router-id为2.2.2.2 发出来的ospf路由AD值修

8、改为121)ExitR2Config tRouter ospf 110Distance 121 1.1.1.1 0.0.0.255(同理 从1.1.1.1发出来的ospf路由AD值改为121)接下来,在R2上使用show 查看到达3.3.3.3的下一条 是否已经变成23.1.1.3 OK,实验结束。3双点双向重发布控制2011-08-16 09:07:08 我来说两句 收藏 我要投稿 实验需求及应用环境:1在R5上执行双向重发布,再在R3上执行双向重发布2分析次佳路由产生的原因,及解决方案3.要求R4去往1.1.1.1能够负载均衡,如何实现?4.要求R4去往11.11.11.11的下一跳首先R

9、3,R5做备份,如何解决?实验调试过程:R1配置:router rip/配置RIPversion 2passive-interface defaultno passive-interface Ethernet0/0network 1.0.0.0network 11.0.0.0network 192.168.12.0no auto-summaryR2配置:router rip/配置RIPversion 2passive-interface defaultno passive-interface Ethernet0/0no passive-interface Serial1/0no passive

10、-interface Serial1/1network 2.0.0.0network 192.168.12.0network 192.168.23.0network 192.168.25.0no auto-summaryR3配置:router ospf 1/配置OSPFrouter-id 3.3.3.3redistribute rip metric 1000 metric-type 1 subnets tag 3 route-map 11/重发布配置ROUTE-MPA的RIP到OSPF中,并打上标记3passive-interface defaultno passive-interface S

11、erial1/1network 3.3.3.3 0.0.0.0 area 0network 192.168.34.0 0.0.0.255 area 0distance ospf external 170/配置OSPF外部区域的管理距离为170router rip/配置RIPversion 2redistribute ospf 1 metric 5/重发布OSPF到RIP中passive-interface defaultno passive-interface Serial1/0network 192.168.23.0no auto-summaryaccess-list 10 permit 1

12、1.11.11.11/定义感兴趣流route-map 11 permit 10/创建ROUTE-MAPmatch ip address 10/匹配流量set metric 500/设定开销为500route-map 3 deny 10/过滤匹配流量match tag 5/匹配打标记的流量route-map 3 permit 20/允许其它所有流量通过R4配置:router ospf 1/配置OSPFrouter-id 4.4.4.4passive-interface defaultno passive-interface Serial1/0no passive-interface Serial

13、1/1network 4.4.4.4 0.0.0.0 area 0network 192.168.34.0 0.0.0.255 area 0network 192.168.45.0 0.0.0.255 area 0R5配置:router ospf 1/配置OSPFrouter-id 5.5.5.5redistribute rip metric 1000 metric-type 1 subnets tag 5/重发布RIP到OSPF中,并打上标记3 passive-interface defaultno passive-interface Serial1/0network 5.5.5.5 0.0

14、.0.0 area 0network 192.168.45.0 0.0.0.255 area 0distance ospf external 170/配置OSPF外部区域的管理距离为170router rip/配置RIPversion 2redistribute ospf 1 metric 5/重分布OSPF到RIPpassive-interface defaultno passive-interface Serial1/1network 192.168.25.0no auto-summaryroute-map 5 deny 10/过滤匹配流量match tag 3/匹配打标记的流量route-map 5 permit 20/允许其它所有流量通过实

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 大学课件

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