Install guide

Software Version 2.7.6 33
Software Version 2.7.6
C613-10462-00 REV A
Creating Route Maps
A route map consists of multiple entries, which are in effect individual filters.
Each entry specifies both what it matches on, in a match clause, and what is
done to matching traffic, in the entry’s action and any set clauses it has.
The set clauses modify the characteristics of matching routes. If you want to
change the characteristics of all candidate routes, configure an entry with no
match clause. Such an entry matches all routes.
When RIP passes a BGP-sourced route 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 route. If the action is include, it filters in
that route.
3. If the action is include, it modifies characteristics as specified by the entry’s
set clauses if there are any.
4. It then stops processing that route; 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 route is included without modification.
Creating a
route map
You do not have to create a route map as a separate step—adding the first entry
automatically creates it.
Configuring a match
clause
The match clause for a route map entry determines which routes match the
entry. A route map for use when importing BGP routes into RIP can match on
any of the available BGP attributes, or can match a list of prefixes.
For the available match clause options, and details of how to create each match
option, see the Filtering IP Routes chapter of the Software Reference.
Configuring a set
clause
Once you have determined which routes a route map entry matches, you can
configure set clauses to change the attributes of matching items.
To create a set clause for an entry, use one of the commands in the following
table.
Command Result
add ip routemap=routemap entry=1..4294967295
set metric=0..4294967295
Sets the RIP metric of matching
routes. Routes with a lower metric
are preferred. Metrics higher than
16 are treated as 16. Note that if
you set the metric using the
commands add ip rip
redistribute or set ip rip
redistribute, that metric
overrides the route maps value.
add ip routemap=routemap entry=1..4294967295
set tag=1..65535
Tags the matching routes with an
ID number. This lets you later
identify the routes that came from
BGP.