Redistribution Practice: RIP V2 and OSPF



Here are some basic configuration of all these routers.
R1(config)#int s1/0
R1 (config-if)#ip address 20.0.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int loop 1
R1(config-if)#ip address 11.1.1.1 255.255.255.0
R1(config-if)#int loop 2
R1(config-if)#ip address 11.1.2.1 255.255.255.0
R1(config-if)#int loop 3
R1(config-if)#ip address 11.1.3.1 255.255.255.0
R1(config-if)#int loop 4
R1(config-if)#ip address 11.1.4.1 255.255.255.0
R1(config-if)#int loop 5
R1(config-if)#ip address 11.1.5.1 255.255.255.0
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 20.0.0.0
R1(config-router)#network 11.1.1.0
R1(config-router)#network 11.1.2.0
R1(config-router)#network 11.1.3.0
R1(config-router)#network 11.1.4.0
R1(config-router)#network 11.1.5.0

R2:
Router(config)#hostname R2
R2(config)#interface s1/0
R2(config-if)#ip address 20.0.0.2 255.255.255.0
R2(config-if)#interface s1/1
R2(config-if)#ip address 30.0.0.1 255.255.255.0
R2(config-if)#no sh
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 20.0.0.0
R2(config)#router ospf 1
R2(config-router)#network 30.0.0.0 0.0.0.255 area 0

R3
Router(config)#hostname R3
R3(config)#int s1/0
R3(config-if)#ip address 30.0.0.2 255.255.255.0
R3(config-if)#no sh
R3(config-if)#int s1/1
R3(config-if)#ip address 100.0.0.1 255.255.255.0
R3(config-if)#no sh
R3(config)#router ospf 1
R3(config-router)# network 30.0.0.0 0.0.0.255 area 0
R3(config-router)# network 100.0.0.0 0.0.0.255 area 0

R4
Router(config)#hostname R4
R4(config)#router ospf 1
R4(config)#int s1/0
R4(config-if)#ip address 100.0.0.2 255.255.255.0
R4(config-if)#no shu
R4(config)#router ospf 1
R4(config-router)# network 100.0.0.0 0.0.0.255 area 0

Before redistribution you can see in figure that in R4’s routing table there are no RIP routes, here we need to choose the best appropriate router for redistribution that is R2 (ASBR) in this case. When we redistribute RIP route into OSPF we need to define matric values for that route. Following are the commands for redistributing RIP into OSPF.

R2(config)#router ospf 1
R2(config-router)#redistribute rip subnets metric 22222
When you redistribute other routing protocol in OSPF, they will appear in the OSPF routing table as type E2 routes.



End to end ping i.e. from R1 to R4 is not success full at this step. Because we need to redistribute OSPF into RIP as follow.
R2(config)#router rip
R2(config-router)#redistribute ospf 1 metric 3





Comments

Popular posts from this blog

Review: War for the Planet of Apes (2017)

In Her Paradise

Vadodara- The Pride of Gujarat