Negating Match Clauses; Chapter 1 Configuring Routing Policy - Juniper JUNOSE 11.0.X IP SERVICES Configuration Manual

For e series broadband services routers - ip services configuration
Table of Contents

Advertisement

A clause with multiple values matches a route that has any of the values; that is, the
multiple values are logical ORed.
You can also issue successive match commands to add new values to a route map
entry for any of the commands listed above.
This method is equivalent to issuing the following single command:
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.

Negating Match Clauses

If you specify a value when you negate a match command configured in a route
map, only that value for the match entry is deleted. The routing software deletes the
entire match entry only if the entry contains no other values. In some earlier releases,
any value specified with a no match command was ignored, and the entire match
entry was deleted. This change applies to all match commands configured in a route
map.
For example, consider the following match entry to route map miami:
In earlier releases, issuing a command like the following to remove a community
(see "Community Lists" on page 38) not specified in the entry deleted the whole
entry, but now nothing happens:
host1(config-route-map)#match ip address lisbon madrid
host1(config-route-map)#match as-path 10 20 30
host1(config-route-map)#match ip address boston
host1(config-route-map)#match ip address newyork
host1(config-route-map)#match ip address boston newyork
host1(config)#ip community-list corporate5 permit 32 463 21
host1(config)#ip community-list dade2 permit 41 53 22
host1(config)#route-map miami permit 1
host1(config-route-map)#match community corporate5 dade2
host1(config-route-map)#exit
host1(config)#exit
host1#show route-map
route-map miami, permit, sequence 10
Match clauses:
match community corporate5 dade2
host1(config-route-map)#no match community southbeach
host1(config-route-map)#exit
host1(config)#exit
host1#show route-map
route-map miami, permit, sequence 10
Match clauses:
match community corporate5 dade2
Chapter 1: Configuring Routing Policy
Route Maps
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.0.x

Table of Contents