Command Reference Protocol-independent Configuration Commands
You can redistribute the routes from one routing process to another routing process. For example,
you can redistribute the route in the OSPF routing domain and then advertise it to the RIP routing
domain, and vice versa. The mutual route redistribution can be implemented between all the IP
routing protocols.
For route redistribution, route maps are usually used to control the mutual route redistribution
between two routing domains.
One or more match or set commands can be executed to configure a route map. If the match
command is not used, all the routes will be matched. If the set command is not used, no operation will
be performed.
The route map can be configured very flexibly for route redistribution and policy-based routing. No
matter how the route map is used, the configuration principle is the same, except that different
command sets are used. Even if it is used on the route redistribution, different routing protocols can
use different commands with the route map.
The following example enables the OSPF routing protocol to redistribute RIP routes that match
access list 10, with the route type being type-1 external type and the default metric being 40.
router ospf
redistribute rip subnets route-map redrip
network 192.168.12.0 0.0.0.255 area 0
access-list 10 permit 200.168.23.0
route-map redrip permit 10
match ip address 10
set metric 40
set metric-type type-1!
Match the next-hop interface of the route.
Match the next-hop address in the access list.
Match the route source address in the access list.
Use match ip next-hop command to redistribute the routes whose next-hop IP address matches the
access list or the prefix list. Use the no form of this command to remove the setting.