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

[分享] CCNA Lab 114: Route Redistribution between OSPF and EIGRP

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


We will use the following topology to demonstrate how to perform redistribution between EIGRP 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 EIGRP routing on Router1.

Router1( config)# router eigrp 100
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 eigrp 100
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.
2.jpg
Router1# show ip route


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 EIGRP into OSPF
1.  To redistribute EIGRP into OSPF, you need to execute the following commands on Router2.

Router2( config)# router eigrp 100
Router2( config-router)# redistribute ospf 100 metric 1000 100 255 1 1500
2.  The following figure shows how to redistribute EIGRP routes into OSPF.
3.jpg



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

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

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

4.jpg


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

3.  Once you have redistributed EIGRP 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 through the External EIGRP.


5.  Next, move on to Router3 and execute the following command to view the routing table.
6.jpg
Router3# show ip route


6.  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
来源: CCNA  Lab 113: Route Redistribution between OSPF and RIP
发表于 2023-3-17 09:17:00 | 显示全部楼层
谢谢楼主分享
板凳 2023-3-17 09:17:00 回复 收起回复
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

  Powered by Discuz!

  © 2001-2025 HH010.COM

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