Riverstone Networks RS Switch Router User Guide Release 8.0 16-9
BGP Configuration Guide Basic BGP Tasks
16.2.10 Using Route Maps
A route map defines conditions and actions to be taken for:
importing routes from BGP peer groups or hosts
exporting routes to BGP peer groups or hosts
redistributing routes from any routing protocol into BGP
redistributing routes from BGP into any other routing protocol (only conditions are considered,
actions have no effect)
A route map consists of one or more conditions that define BGP information and the action to be taken when the
condition is met. Each condition tells the RS to either permit or deny route that matches the criteria specified in the
route map. To be imported, exported, or redistributed, a route needs to meet the conditions of a configured route map.
Note that a route can meet the conditions of a route map where the keyword deny is explicitly specified; in this case,
the route will not be imported, exported, or redistributed.
Note For route maps to take effect, the RS must be selecting BGP for the route. Make
sure that BGP preference is set lower than the preference of other protocols on the
RS.
To create a route map, enter the following command in Configure mode:
In the following example, when the prefix of a route matches the network address 15.4.0.0, the route is redistributed
with a next hop of 12.10.4.13.
You can specify the configured route map for an export, import, or redistribution policy (with the ip-router policy
export, ip-router policy import, or ip-router policy redistribute command). You can also specify
the route map when exporting routes to or importing routes from a peer group or a peer host; this is done with the
Create a route map. route-map <number-or-string> permit <sequence-number> <match-criteria>
<action>
route-map <number-or-string> deny <sequence-number> <match-criteria>
route-map 1 permit 1 match-prefix network 15.4.0.0/16 set-next-hop 12.10.4.13