match ip address prefix-list
Syntax
match ip address prefix-list <PREFIX-LIST-NAME>
no match ip address prefix-list <PREFIX-LIST-NAME>
Description
Matches the destination IP address prefix of the routes with one or more addresses in the prefix list.
The
no
form of this command restores the default behavior of not matching the destination IP address prefix of the routes to their default value.
Command context
config-route-map
Parameters
<PREFIX-LIST-NAME>
Specifies the name of the prefix list to be matched with the network address of the route.
Authority
Administrators
Example
Configuring a prefix list and a match clause in route map to match the prefix list:
switch(config)# ip prefix-list PfxLst permit 4.0.0.0/8 switch(config)# route-map GlobalMap permit seq 11 switch(config-route-map-GlobalMap-11)# match ip address prefix-list PfxLst
NOTE:
When the IP prefix list with prefix and mask-length of 0.0.0.0/0 is used, the route matches default-route 0.0.0.0/0 as well as any other route. This behavior would be changed to match only the default-route in the next release.