
Filtering IP Routes 2-11
Software Version 2.7.5
C613-10454-00 REV A
Then use the AS path list in the match clause of a route map by using the
command:
add ip routemap=routemap entry=1..4294967295
[action={include|exclude}] match aspath=1..99
When the router or switch uses this route map to examine an update message,
the router or switch goes through the entries in the AS path list. The update
matches if an entry in the AS path list matches the AS path in the update
message, and that AS path list entry is an include entry.
If the update message matches, the router or switch carries out the action of the
route map; one of:
■ exclude the update message
■ include the update message without modification
■ include the update message and modify its attributes
Note that the action (include/exclude) of the AS path list and the action of the
route map entry are separate. The following table shows the effect of each
combination.
In this context, the parameters include and exclude in the AS path list do not
indicate whether the matching update message is allowed or dropped; they
simply indicate whether the update matches or does not match the path list.
This is different to the behaviour when you use the AS path list itself as a filter,
as described in “Applying Filters” on page 2-20.
AS path list entry Route map entry Action when route map applied
include include An update message with that AS_path
matches, and is processed
include exclude An update message with that AS_path
matches, and is discarded
exclude include An update message with that AS_path does
not match. The router or switch continues
checking to see if the update message
matches other entries in the route map.
exclude exclude An update message with that AS_path does
not match. The router or switch continues
checking to see if the update message
matches other entries in the route map.
Comentarios a estos manuales