设为首页收藏本站language 语言切换
查看: 956|回复: 3
收起左侧

[分享] CCNA Lab 113: Route Redistribution between OSPF and RIP

[复制链接]
 成长值: 63715
发表于 2023-3-9 13:29:36 | 显示全部楼层 |阅读模式
本帖最后由 小乔 于 2023-3-9 13:38 编辑


We will use the following topology to demonstrate how to perform redistribution between RIP and OSPF. We assume that all the devices have already configured with the appropriate IP addresses.
112.1.png



1.  Once you have configure IP addresses, execute the following commands to configure RIP routing on Router1.

Router1( config)# router rip
Router1( config-router)# network 10.0.0.0
Router1( config-router)# network 192.168.0.0
Router1( config-router)# exit
2.  Next, move on to Router2 and execute the following commands to configure RIP routing.

Router2( config)# router rip
Router2( config-router)# network 192.168.0.0
Router2( config-router)# exit
3.  Next, on Router2, execute the following commands to configure OSPF routing. We assume that our OSPF routers (Router1 and Router2) belong to area 0.


Router2( config)# router ospf 100
Router2( config-router)# network 192.168.1.0 0.0.0.255 area 0
Router2( config-router)# exit
4.  The following figure shows the routing configuration of Router2.
1.png



5.  Next, move on to Router3 and execute the following commands to configure OSPF routing.

Router3( config)# router ospf 100
Router3( config-router)# network 192.168.1.0 0.0.0.255 area 0
Router3( config-router)# network 20.0.0.0 0.255.255.255 area 0
Router3( config-router)# exit
6.  Next, move on to Router1 and execute the following command to show the routing table.

Router1# show ip route

2.png

7.  In the preceding figure, you can see that only Router1 has only the network routes of RIP routing protocol. It cannot learn OSPF routes until we perform the route redistribution.

Redistribute RIP into OSPF
1.  To redistribute RIP into OSPF, you need to execute the following commands on Router2.

Router2( config)# router rip
Router2( config-router)# redistribute ospf 100 metric 1
2.  The following figure shows how to redistribute RIP routes into OSPF.

3.jpg


Note: We recommend to have a close look up at the preceding figure to understand the syntax used to inject RIP routes into OSPF.

Redistribute OSPF into RIP
1.  To do so, execute the following commands on Router2.

Router2( config)# router ospf 100
Router2( config-router)# redistribute rip metric 1
2.  The following figure shows how to redistribute OSPF routes into RIP.

4.jpg


Note: We recommend to have a close look up at the preceding figure to understand the syntax used to inject OSPF routes into RIP. One of the most important factors that you should consider is OSPF Cost Metric.

3.  Once you have redistributed RIP into OSPF and vice-versa, now, move on to Router1 and execute the following command to view the routing table.

Router1# show ip route
5.jpg

4.  Have you noticed any changes? Yes. In the preceding figure, you can see that 20.0.0.0/ 8 and 192.168.1.0/ 24 networks are added.


5.  Next, move on to Router3 and execute the following command to view the routing table.

Router3# show ip route

6.jpg
In the preceding figure, you can see that 10.0.0.0/ 8 and 192.168.0.0/ 24 networks are added through the external OSPF protocol.



来源: CCNA  Lab 110: Configuring OSPF Cost Metric
来源: CCNA  Lab 111: Configuring IPX Routing
来源: CCNA  Lab 112: Route Redistribution between RIP and EIGRP
发表于 2023-3-17 09:19:46 | 显示全部楼层
谢谢楼主分享
沙发 2023-3-17 09:19:46 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-23 19:25 , Processed in 0.065651 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表