Command Reference Protocol-independent Configuration Commands
6.18 match ip route-source
Use match ip route-source command to redistribute the routes whose source IP address matches the
access list. Use the no form of this command to remove the setting.
match ip route-source {access-list-number [access-list-number... | access-list-name...]
|access-list-name [access-list-number...|access-list-name] | prefix-list prefix-list-name
[prefix-list-name...]}
no match ip route-source [access-list-number [access-list-number... | access-list-name...]
|access-list-name [access-list-number...|access-list-name] | prefix-list prefix-list-name
[prefix-list-name...]]
Number of the access list
prefix-list prefix-list-name
Specify the prefix list to match.
Route map configuration mode.
Multiple access list numbers may follow match ip route-source.
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.
In the example below, the OSPF routing protocol redistributes the RIP routes. As long as the source
IP address of the RIP route matches the access list 5, the OSPF allows for redistribution.