Install guide

Filtering IP Routes 2-17
Software Version 2.7.5
C613-10454-00 REV A
Matching on metric An entry that matches on metric lets you select or discard all routes with that
OSPF metric or a metric in that range. To do this, use the command:
add ip routemap=routemap entry=1..4294967295
[action={include|exclude}] match
metric=0..4294967295[-0..4294967295]
Matching on
next hop
An entry that matches on nexthop lets you select or discard routes that traverse
a particular node. To do this, use the command:
add ip routemap=routemap entry=1..4294967295
[action={include|exclude}] match nexthop=ipadd
Matching on
prefix list
An entry that matches on prefixlist lets you select or discard routes to a list of
destinations.
To do this, first create the prefix list and add entries to it by using the
command:
add ip prefixlist=name entry=1..65535
[action={match|nomatch}] [masklength=range] [prefix=ipadd]
See “Creating Prefix Lists” on page 2-8 for more information.
Then use the prefix list in the match clause of a route map by using the
command:
add ip routemap=routemap entry=1..4294967295
[action={include|exclude}] match prefixlist=name
Note that the action of the prefix list and of the route map entry are separate.
The following table shows the effect of each combination.
In this context, the parameters match and nomatch in the prefix list do not
indicate whether a route to that prefix is allowed or dropped; they simply
indicate whether the prefix matches or does not match the prefix list.
Table 2-4: The effect of actions in prefix list and route map entries
Prefix list entry Route map entry Action when route map applied
match include A route to that prefix matches the route map entry.
The router or switch adds the route to its RIB.
match exclude A route to that prefix matches the route map entry.
The router or switch excludes the route from its RIB.
nomatch include A route to that prefix does not match the route
map entry. The router or switch continues checking
to see if the route matches other entries in the
route map.
nomatch exclude A route to that prefix does not match the route
map entry. The router or switch continues checking
to see if the route matches other entries in the
route map.