
2-10 Release Note
Software Version 2.7.5
C613-10454-00 REV A
When a BGP process passes an update message through a route map:
1. It checks the entries in order, starting with the lowest numbered entry, until
it finds a match.
2. It then takes the action specified by that entry’s action parameter. If the
action is exclude, it filters out that update or prefix. If the action is include,
it filters in that update or prefix.
3. If the action is include, it modifies attributes as specified by the entry’s set
clauses if there are any.
4. It then stops processing that update message; it does not check the
remaining entries in the route map.
Every route map ends with an implicit entry that matches all routes with an
action of include. This ensures that if no entries in a route map generate a
match, the update message or route is included without modification.
The rest of this section describes:
■ How to create a route map
■ How to configure an entry with a match clause
■ How to configure an entry with a set clause
How to create a route map
You do not have to create a route map as a separate step—adding the first entry
automatically creates it.
How to configure an entry with a match clause
The match clause for a route map entry determines which update messages or
prefixes match the entry. Each entry can only match on one characteristic.
Available characteristics you can use with BGP are:
■ AS path list
■ community list
■ Multi Exit Discriminator (MED)
■ next_hop attribute
■ origin attribute
■ prefix list
■ tag
Matching on AS
path list
An entry that matches on aspath lets you select or discard routes that have
taken a particular route or routes through the network.
To do this, first create an AS path list and add entries to it by using one of the
commands:
add ip aspathlist=1..99 [entry=1..4294967295]
include=aspath-reg-exp
add ip aspathlist=1..99 [entry=1..4294967295]
exclude=aspath-reg-exp
See “Creating AS Path Lists for BGP” on page 2-9 for more information about
creating path lists. Table 2-1 on page 2-9 shows the valid syntax for the regular
expression aspath-reg-exp and gives syntax examples.
Comentarios a estos manuales