Allied Telesis X8100 Network Router User Manual


 
BGP: Applying Route Maps to Imported Routes
Page 46 | Use Route Maps and Other Filters to Filter and Alter BGP and OSPF Routes
BGP: Applying Route Maps to Imported Routes
The switch is able to import routes into BGP that it learnt by non-BGP means. In other
words, the routes would be static routes, or routes learnt by OSPF or RIP.
You can apply a route map to this importation process so that the imported routes are given
certain attributes, or so that certain routes are blocked from being imported.
The switch uses the route map to:
filter routes or set attributes when it imports the routes into BGP
set attributes on any update message in which it advertises the routes
Note that the entries in route maps that are applied to BGP importing cannot have match
clauses that match on BGP attributes such as AS path or community. This is because BGP
attributes are not relevant to non-BGP routes. The route map entries can match on prefix
list, origin, next hop, or the route type if importing OSPF routes.
Syntax
You can apply the route map by using the following command in BGP router mode for the
AS.
redistribute {connected|ospf|rip|static} route-map <map-name>