您的位置:首页 > 其它

rip与ospf间的路由从发布实验

2013-12-02 23:06 363 查看
rip与ospf间的路由从发布实验一、实验目的掌握rip与ospf之间以及ospf与rip间的路由发布,以及rip与ospf的路由条目汇总! 二、拓扑结构图

三、实验步骤1.基本接口配置配置步骤略测试:routera#ping 10.0.0.2routerc#ping 10.0.0.9 测试成功!!12.配置路由协议a:router ripversion 2network 10.0.0.0no auto-summaryb:router ospf 1log-adjacency-changesnetwork 10.0.0.8 0.0.0.3 area 0router ripversion 2passive-interface Serial0/1network 10.0.0.0c:router ospf 1log-adjacency-changesnetwork 10.0.0.8 0.0.0.3 area 0network 10.8.0.0 0.3.255.255 area 13.查看路由表routera#show ip routeC10.3.0.1/32 is directly connected, Loopback2C10.2.0.1/32 is directly connected, Loopback1C10.1.0.1/32 is directly connected, Loopback0C10.0.0.0/30 is directly connected, Serial0/0routerb#show ip route10.0.0.0/8 is variably subnetted, 9 subnets, 2 masksO IA10.11.0.1/32 [110/65] via 10.0.0.10, 00:42:54, Serial0/1O IA10.10.0.1/32 [110/65] via 10.0.0.10, 00:42:54, Serial0/1O IA10.9.0.1/32 [110/65] via 10.0.0.10, 00:42:54, Serial0/1C10.0.0.8/30 is directly connected, Serial0/1O IA10.8.0.1/32 [110/65] via 10.0.0.10, 00:42:54, Serial0/1R10.3.0.1/32 [120/1] via 10.0.0.1, 00:00:10, Serial0/0R10.2.0.1/32 [120/1] via 10.0.0.1, 00:00:10, Serial0/0R10.1.0.1/32 [120/1] via 10.0.0.1, 00:00:10, Serial0/0C10.0.0.0/30 is directly connected, Serial0/0B路由可以看到A和C的路由条目routerc#show ip route10.0.0.0/8 is variably subnetted, 5 subnets, 2 masksC10.11.0.1/32 is directly connected, Loopback3C10.10.0.1/32 is directly connected, Loopback2C10.9.0.1/32 is directly connected, Loopback1C10.0.0.8/30 is directly connected, Serial0/0C10.8.0.1/32 is directly connected, Loopback04.进行路由从发布把rip的路由条目发布到ospf中routerb(config)#router ospf 1routerb(config-router)#redistribute rip subnet metri 300 metric-type 1 (开销类型)把ospf路由条目发不到rip中routerb(config-router)#router riprouterb(config-router)#redistribute ospf 1 metri 5 (跳数)5.查看路由表的变化routerc#show ip route10.0.0.0/8 is variably subnetted, 9 subnets, 2 masksC10.11.0.1/32 is directly connected, Loopback3C10.10.0.1/32 is directly connected, Loopback2C10.9.0.1/32 is directly connected, Loopback1C10.0.0.8/30 is directly connected, Serial0/0C10.8.0.1/32 is directly connected, Loopback0O E110.3.0.1/32 [110/364] via 10.0.0.9, 00:02:43, Serial0/0O E110.2.0.1/32 [110/364] via 10.0.0.9, 00:02:43, Serial0/0O E110.1.0.1/32 [110/364] via 10.0.0.9, 00:02:43, Serial0/0O E110.0.0.0/30 [110/364] via 10.0.0.9, 00:02:43, Serial0/0routerb#sh ip route10.0.0.0/8 is variably subnetted, 9 subnets, 2 masksO IA10.11.0.1/32 [110/65] via 10.0.0.10, 00:05:10, Serial0/1O IA10.10.0.1/32 [110/65] via 10.0.0.10, 00:05:10, Serial0/1O IA10.9.0.1/32 [110/65] via 10.0.0.10, 00:05:10, Serial0/1C10.0.0.8/30 is directly connected, Serial0/1O IA10.8.0.1/32 [110/65] via 10.0.0.10, 00:05:10, Serial0/1R10.3.0.1/32 [120/1] via 10.0.0.1, 00:00:12, Serial0/0R10.2.0.1/32 [120/1] via 10.0.0.1, 00:00:12, Serial0/0R10.1.0.1/32 [120/1] via 10.0.0.1, 00:00:12, Serial0/0C10.0.0.0/30 is directly connected, Serial0/0routera#show ip route10.0.0.0/8 is variably subnetted, 9 subnets, 2 masksR10.11.0.1/32 [120/5] via 10.0.0.2, 00:00:11, Serial0/0R10.10.0.1/32 [120/5] via 10.0.0.2, 00:00:11, Serial0/0R10.9.0.1/32 [120/5] via 10.0.0.2, 00:00:11, Serial0/0R10.0.0.8/30 [120/1] via 10.0.0.2, 00:00:11, Serial0/0R10.8.0.1/32 [120/5] via 10.0.0.2, 00:00:11, Serial0/0C10.3.0.1/32 is directly connected, Loopback2C10.2.0.1/32 is directly connected, Loopback1C10.1.0.1/32 is directly connected, Loopback0C10.0.0.0/30 is directly connected, Serial0/0路由a和c都学到了路由条目6.为了节省路由开销,进行路由条目的汇总ospf的汇总routerc(config)#router ospf 1 routerc(config-router)#area 1 range 10.8.0.0 255.252.0.0 rip的汇总routera(config)#int s0/0routera(config-if)#ip summary-address rip 10.0.0.0 255.252.0.0 7.查看汇总结构routera#sh ip route10.0.0.0/8 is variably subnetted, 6 subnets, 3 masksR10.8.0.0/14 [120/5] via 10.0.0.2, 00:00:21, Serial0/0R10.0.0.8/30 [120/1] via 10.0.0.2, 00:00:21, Serial0/0C10.3.0.1/32 is directly connected, Loopback2C10.2.0.1/32 is directly connected, Loopback1C10.1.0.1/32 is directly connected, Loopback0C10.0.0.0/30 is directly connected, Serial0/0 routerb#show ip route10.0.0.0/8 is variably subnetted, 4 subnets, 2 masksO IA10.8.0.0/14 [110/65] via 10.0.0.10, 00:00:02, Serial0/1C10.0.0.8/30 is directly connected, Serial0/1C10.0.0.0/30 is directly connected, Serial0/0R10.0.0.0/14 [120/1] via 10.0.0.1, 00:00:02, Serial0/0routerc#show ip route10.0.0.0/8 is variably subnetted, 8 subnets, 3 masksC10.11.0.1/32 is directly connected, Loopback3C10.10.0.1/32 is directly connected, Loopback2C10.9.0.1/32 is directly connected, Loopback1O10.8.0.0/14 is a summary, 00:03:43, Null0C10.0.0.8/30 is directly connected, Serial0/0C10.8.0.1/32 is directly connected, Loopback0O E110.0.0.0/30 [110/364] via 10.0.0.9, 00:03:43, Serial0/0O E110.0.0.0/14 [110/364] via 10.0.0.9, 00:03:43, Serial0/0路由条目确实进行汇总,节约了路由开销四、实验总结通过实验学习掌握在运行不同路由协议的路由间进行路由的从发布,汇总!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: