To enable RIP to participate in route redistribution, use the command redistribute in RIP Router Configuration Mode. When enabled, RIP starts advertising the routes learned by other protocols. The no form of the command disables RIP to participate in route redistribution. When disabled, RIP will stop redistribution of routes but will continue to send updates to the RTM.
Parameter | Type | Description |
---|---|---|
all
|
Enter to specify that all routes have to be imported from the RIP. It redistributes all routes that are learnt into RIP process. | |
connected
|
Enter to configure redistribution of directly connected networks routes into OSPF routing process. | |
ospf
|
Enter to import routes learnt in the OSPF routing process. | |
static
|
Enter to import static routes. | |
route-map
|
Enter to identify the specified route-map in the list
of route-maps.
Note:
Redistribution can be configured for only one route map. Another route map can be assigned, only if the already assigned route map is disabled. |
|
<string(1-20)>
|
Enter a name for a route map. This is a string with maximum size of 20. |
RIP Router Configuration Mode
iS5Comm(config)# router rip
iS5Comm(config-router)# redistribute all
Example 2iS5Comm(config)# router rip
iS5Comm(config-router)# redistribute ospf
iS5Comm(config-router)# redistribute connected
the redistribute connected command is required when we want to redistribute OSPF to RIP.
To redistribute OSPF to RIP, we need to redistribute the connected networks. To filter the connected networks to allow only the required ones, perform the following commands:
iS5Comm(config)# router rip
iS5Comm(config-router)# redistribute ospf
iS5Comm(config-router)# redistribute connected route-map FILTER
Example 3: redistribute default routeSW1:
iS5Comm(config)# ip route 0.0.0.0 0.0.0.0 192.168.10.100
iS5Comm(config)# router rip
iS5Comm(config-router)# redistribute static
iS5Comm(config)# interface gigabitethernet 0/1
iS5Comm(config-if)# ip rip default route install
iS5Comm(config-if)# ip rip default route originate 1
SW2:
iS5Comm(config)# interface gigabitethernet 0/1
iS5Comm(config-if)# ip rip default route install
iS5Comm(config-if)# ip rip default route originate 1
iS5Comm# show ip route
Vrf Name: default
---------
R 0.0.0.0/0 [121/2] via 192.168.10.100