Information Technology Reference
In-Depth Information
There are two ways to match more than one condition. You can enter multiple conditions in
the same
match
command or in different
match
commands. The processing rules are as
follows:
•
An OR function is performed between multiple
match
parameters defined in the same
match
command, regardless of the type of
match
commands.
•
An OR function is performed when there are multiple
match
commands of the same
type. Actually, IOS converts this form into the form discussed in the preceding bullet.
•
An AND function is performed if there are multiple
match
commands of different
types in the same route map instance.
Example 4-12 shows how the preceding rules work. The route map foo matches either
community 100:1 or 100:2. With the route map foo2, a match is found only when the prefix
and both communities are matched.
Example 4-12
Processing Example When Multiple Conditions Are Set with
match
Commands
ip community-list 1 permit 100:1
ip community-list 2 permit 100:2
ip community-list 3 permit 100:1 100:2
!
ip prefix-list 1 seq 5 permit 13.0.0.0/8
!
route-map foo permit 10
match community 1 2
!
route-map foo2 permit 10
match ip address prefix-list 1
match community 3
You can use a route map in the following BGP commands:
•
neighbor
•
bgp dampening
•
network
•
redistribute
Additionally, you can use route maps in various commands for specific purposes:
•
suppress-map
•
unsuppress-map
•
advertise-map
•
inject-map
•
exist-map
•
non-exist-map
•
table-map