User guide

Configuring BGP Routing Policies
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide March 2015 page 4-85
For example, to add AS path policy aspathfilter and community list policy commfilter to route map
policy mapfilter, enter the following:
-> ip bgp policy route-map mapfilter 1 aspath-list aspathfilter
-> ip bgp policy route-map mapfilter 1 community-list commfilter
Note. Conditions added to a route map policy must have already been created using their respective policy
commands. If you attempt to add non-existent policies to a route map policy, an error message is returned.
Each component of a route map policy must be added using a separate CLI command as shown above.
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
primitive 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 a matching prefix6 primitive
in the route map.
ip bgp policy route-map match-prefix6
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
Assigns a prefix6 matching list to the
route map, which identifies the matching
criteria list of IPv6 prefixes.
ip bgp policy route-map prefix6-list
Configures a BGP weight value to be
assigned to inbound routes when a match
is found.
ip bgp policy route-map weight
Configures the value to strip from the
community attribute of the routes
matched by this route map instance
(sequence number).
ip bgp policy route-map community-strip
Route Map Options Command