- Redistribution
- Configuration
- First Example
- Second Example
- Summary
First Example
For the first example, the basic configuration without redistribution would require RIP to be set up on R1 and R2 and OSPF to be set up on R1 and R3. The configuration for these three routers is included:
R1 F0/0 ip address 172.16.1.1 255.255.255.0 F0/1 ip address 10.0.0.1 255.255.255.0 router rip version 2 network 172.16.1.0 router ospf 10 network 10.0.0.0 0.0.0.255 area 0 R2 F0/0 ip address 172.16.1.2 255.255.255.0 router rip version 2 network 172.16.1.0 R3 F0/0 ip address 10.0.0.2 255.255.255.0 router ospf 10 network 10.0.0.0 0.0.0.255 area 0
Now if we wanted to redistribute all RIP routes into OSPF (one-way), then the following configuration would be added to R1 (because it is configured with both RIP and OSPF).
R1 router ospf 10 redistribute rip subnets
(Remember by default OSPF uses a metric of 20 and a metric type of E2.)
Now if you viewed the routing table on R3, you would see this:
O E2 172.16.1.0 [110/20] via 10.0.0.1, 00:00:06, FastEthernet0/0