[Contents] [Prev] [Next] [Index] [Report an Error]

Multiple Values in a Match Entry

You can specify more than one value in each match entry of a route map by using any of the following match commands:

match as-path

match ipv6 next-hop

match community

match ipv6 route-source

match distance

match level

match extcommunity-list

match metric

match ip address

match policy-list

match ip next-hop

match route-type

match ipv6 address

match tag

A clause with multiple values matches a route that has any of the values; that is, the multiple values are logical ORed.

host1(config-route-map)#match ip address lisbon madrid
host1(config-route-map)#match as-path 10 20 30

You can also issue successive match commands to add new values to a route map entry for any of the commands listed above.

host1(config-route-map)#match ip address boston
host1(config-route-map)#match ip address newyork

This method is equivalent to issuing the following single command:

host1(config-route-map)#match ip address boston newyork

You cannot specify multiple values for the match metric-type command, because it has only two acceptable values, which are mutually exclusive. Specifying both values has the same effect as not specifying a metric type at all; specifying the same value more than once has no meaning.


[Contents] [Prev] [Next] [Index] [Report an Error]