路由图
拓扑图:在这里,先配置1和3[1.在R1配置重发布直连路由,标记10并且路数为10;3.在R3配置重发布直连路由,跳数设置为4;],以供后面好测试:配置参数:R1:routerospf1redistributeconnectedmetric10subnetstag10 network192.168.12.00.0.0.255area0 network192.168.100.00.0.0.255area0R3:routerrip version2 redistributeconnectedmetric4 network192.168.200.0 network200.168.23.0 noauto-summary查看配置效果:R2:r2#SHIPROUC 192.168.12.0/24isdirectlyconnected,Ethernet0/0C 200.168.23.0/24isdirectlyconnected,Ethernet0/1OE2192.168.110.0/24[110/10]via192.168.12.1,00:12:30,Ethernet0/0R 192.168.200.0/24[120/1]via200.168.23.2,00:00:01,Ethernet0/1 10.0.0.0/24issubnetted,1subnetsR 10.1.1.0[120/4]via200.168.23.2,00:00:01,Ethernet0/1 192.168.100.0/32issubnetted,1subnetsO 192.168.100.1[110/11]via192.168.12.1,00:12:30,Ethernet0/0r2#可以看出R2学习到R1重发布的直连路由192.168.110.0/24的跳数为10;学习到R3重发布的直连路由10.1.1.0/24的跳数为4. 接下来配置2[2.RIP路由协议重发布OSPF路由,要求只重分标记为10的OSPF路由,初始量度值为10;]:www.it165.net配置参数:R1:route-mapospfpermit10 matchtag10 setmetric10routerrip version2 redistributeospf1route-mapospf network200.168.23.0 noauto-summary查看配置效果:R3:r3#shiprouC 200.168.23.0/24isdirectlyconnected,Ethernet0/1R 192.168.110.0/24[120/10]via200.168.23.1,00:00:15,Ethernet0/1C 192.168.200.0/24isdirectlyconnected,Loopback1 10.0.0.0/24issubnetted,1subnetsC 10.1.1.0isdirectlyconnected,Loopback2r3#可以看到R3学习到了OSPF网络中标记为10的路由192.168.110.0/24,R2将它重发布到RIP跳数为10. 接下来配置4[4.OSPF路由协议重发布RIP路由,要求只重分布路数为4的路由并且路由网络地址在10.0.0.0/8范围内的RIP路由,在OSPF路由域中,设该路由类型为外部路由type-1,初始量度值为40,路由标记值为40.]配置参数:R2:access-list10permit10.0.0.00.255.255.255route-maprippermit10 matchipaddress10 matchmetric4 setmetric40 setmetric-typetype-1 settag40routerospf1redistributeripsubnetsroute-maprip network192.168.12.00.0.0.255area0查看配置:www.it165.netR1:C 192.168.12.0/24isdirectlyconnected,Ethernet0/0C 192.168.110.0/24isdirectlyconnected,Loopback2 10.0.0.0/24issubnetted,1subnetsOE1 10.1.1.0[110/50]via192.168.12.2,00:01:45,Ethernet0/0C 192.168.100.0/24isdirectlyconnected,Loopback1r1#可以看到R1学习到了R3重发布的标记为4的10.1.1.0/24的路由,是R2将它重发布进OSPF,配置为type-1类型,度量值为40,标记为40的路由!!! 配置成功!!!上一篇:cisco banner基本配置