- 26
- 0
- 约3.34千字
- 约 7页
- 2018-01-02 发布于河南
- 举报
ospf与rip双点双向重分布
Ospf与rip 双点双向充分部拓扑图如下:在如上拓扑图中做双点双向重分布,会存在一下问题:在路由器R1、R2的路由表中,R3环回口的可能通过左边rip学到,也可能通过右边ospf学到。原因分析:R2通过rip学到后,通过重分布,进入右边ospf区域中,R1上会通过两个方向学到(1从左边rip,2从右边ospf),此时R1会根据管理距离(即AD)比较,rip默认管理距离120,ospf默认管理距离110.因此,R1会把从右边ospf学到的加入路由表中,因此,R1的路由表中 的路由前面是O而不是R。在R3上,ospf区域中的所有路由都会负载均衡。这些路由包括: ,,,,.而实际上我们只需要对4..4.4.0做负载均衡。其它的都会浪费资源。比如R1上的环回口,R3可以走R3-R2-R4-R1,也可以走R3-R1,很明显前面的路径是次优路径。原因分析:因为R1,R2上都有ospf整个区域内的完整路由,而重分布进rip时,对于R3来说,ospf区域的路由的metric都是1,因此在R3上会对ospf区域中的所有路由负载均衡。3 同R3上的情况一样,R4也会对rip中的所有路由负载均衡,原因同上。解决方法:问题1:在R1、R2上修改ospf的AD120或修改rip的AD110。问题2、3:在R1、R2上修改相应路由的metric。如下为R1、R2、R3、R4上的完整配置:hostname R1interface Loopback0ip address ipospf network point-to-point!interface Serial0/0ip address serial restart-delay 0!interface Serial0/1ip address serial restart-delay 0!interface Serial0/2noip addressshutdownserial restart-delay 0!interface Serial0/3noip addressshutdownserial restart-delay 0!interface FastEthernet1/0noip addressshutdownduplex autospeed auto!routerospf 1router-id log-adjacency-changesredistribute rip metric 1000 metric-type 1 subnets route-map intoospfnetwork 55 area 0network 55 area 0distance 125 1!router ripversion 2redistributeospf 1 metric 5 route-map intoripnetwork no auto-summary!noip http serverip classless!!!ip access-list standard r1permit permit !access-list 1 permit access-list 1 permit access-list 23 permit route-mapintoospf permit 10matchip address 23set metric 1100!route-mapintoospf permit 20!route-mapintorip permit 10matchip address r1set metric 8!route-mapintorip permit 20hostname R2!interface Loopback0ip address ipospf network point-to-point!interface Serial0/0ip address serial restart-delay 0!interface Serial0/1ip address serial restart-delay 0!interface Serial0/2noip addressshutdownserial restart-delay 0!interface Serial0/3noip addressshutdownserial restart-delay 0!interface FastEthernet1/0noip addressshutdownduplex autospeed auto!routerospf 1router-id log-adjacency-changesredistribute rip metric 1000 metric-type 1 subnets route-map i
原创力文档

文档评论(0)