Install guide
Software Version 2.7.4 39
Software Version 2.7.4
C613-10444-00 REV A
OSPF: Route Filtering with Route Maps
This enhancement enables you to configure route maps to filter OSPF routes.
Route maps allow you to configure complex flexible filters. They achieve this
by having several levels of structure:
■ each route map consists of multiple entries
■ each entry consists of an action (include or exclude) and at least one clause:
• zero or one match clauses, which determine which OSPF route attributes
match the entry. If you do not specify a match clause, every route
matches.
The match fields relevant for OSPF are interface, prefix list, next hop,
route source, metric, route type and tag.
• zero or more set clauses, which change the attributes of matching
routes.
The set clauses relevant for OSPF are metric, type and tag.
You can use the route map in OSPF:
■ to filter OSPF routes before adding them to the IP route table for IP to use.
To do this, create the route map and use it in the command:
set ospf inroutemap=routemap-name
■
when redistributing static routes as OSPF AS external LSAs. See “OSPF:
Redistributing Static Routes” on page 46.
Modified Commands
For the add ip routemap and set ip routemap commands, this section only lists
the command syntax that is relevant for OSPF. Further options for BGP are
described in the Border Gateway Protocol version 4 (BGP-4) chapter of your
router or switch’s Software Reference.
add ip routemap
Syntax for
match clauses
ADD IP ROUTEMap=routemap ENTry=1..4294967295
[ACtion={INCLude|EXCLude}] MAtch
METRIC=0..4294967295[-0..4294967295]
ADD IP ROUTEMap=routemap ENTry=1..4294967295
[ACtion={INCLude|EXCLude}] MAtch INTERFACE=interface
ADD IP ROUTEMap=routemap ENTry=1..4294967295
[ACtion={INCLude|EXCLude}] MAtch
ROUTETYPE={INTRA|INTER|TYPE1|TYPE2|OTHER}
ADD IP ROUTEMap=routemap ENTry=1..4294967295
[ACtion={INCLude|EXCLude}] MAtch ROUTESOURCE=name
ADD IP ROUTEMap=routemap ENTry=1..4294967295
[ACtion={INCLude|EXCLude}] MAtch NEXThop=ipadd