Alcatel-Lucent 6850 Switch User Manual


 
Routing Policies Configuring BGP
page 4-48 OmniSwitch 6800/6850/9000 Advanced Routing Configuration Guide December 2007
2 Set the policy action using the ip bgp policy route-map action command. The policy action either
permits or denies routes that match the filter. Permitted routes are advertised, while denied routes are not.
For example:
-> ip bgp policy route-map mapfilter 1 action deny
Prefix policy mapfilter now denies routes that are filtered.
3 Add various conditions to the route map policy. It is possible to add an AS path policy, a community
policy, a prefix policy, as well as indicate other variables such as local preference and weight. The follow-
ing table displays a list of the commands that can be used to construct a route map policy:
Route Map Options Command
Assigns an AS path matching list to the
route map.
ip bgp policy route-map aspath-list
Configures the AS path prepend action to
be taken when a match is found.
ip bgp policy route-map asprepend
Configures the action to be taken on the
community attribute when a match is
found.
ip bgp policy route-map community
Assigns a community matching list to the
route map.
ip bgp policy route-map community-list
Configures the action to be taken for a
community string when a match is found.
ip bgp policy route-map community-mode
Configures the local preference value for
the route map.
ip bgp policy route-map lpref
Configures the action to be taken when
setting local preference attribute for a
local matching route.
ip bgp policy route-map lpref-mode
Configures a matching community primi-
tive for the route map.
ip bgp policy route-map match-community
Configures a matching mask primitive in
the route map.
ip bgp policy route-map match-mask
Configures a matching prefix primitive in
the route map.
ip bgp policy route-map match-prefix
Configures an AS path matching regular
expression primitive in the route map.
ip bgp policy route-map match-regexp
Configures the Multi-Exit Discriminator
(MED) value for a route map.
ip bgp policy route-map med
Configures the action to be taken when
setting the Multi-Exit Discriminator
(MED) attribute for a matching route.
ip bgp policy route-map med-mode
Configures the action to be taken on the
origin attribute when a match is found.
ip bgp policy route-map origin
Assigns a prefix matching list to the route
map.
ip bgp policy route-map prefix-list