System information

Configuring Routing Policy
7-5
4. To set the local preference value, use the set local-preference command in Route
Map Configuration mode, as shown in the example below:
MOT(config-rmap)#set local-preference <pref>
5. To set the metric, use the set metric command in Route Map Configuration
mode, as shown in the example below:
MOT(config-rmap)#set metric <metric>
6. To set the metric type, use the set metric-type command in Route Map
Configuration mode, as shown in the example below:
MOT(config-rmap)#set metric-type {internal | external | type-1 | type-2}
7. To set the BGP origin, use the set origin command in Route-map Configuration
mode, as shown below:
MOT(config-rmap)#set origin {egp | igp | incomplete}
8. To set a tag value for the destination protocol, use the set tag command in
Route-map Configuration mode, as shown below:
MOT(config-rmap)#set tag <num>
where:
num is an integer between 0 and 294967295.
Example
The configuration
example below creates the route map named locpref, creates the
AS-path access list 1, and applies the route map to a BGP neighbor.
The route map sets the local preference for BGP updates. The route map also uses an
AS-path access list to p
ermit any update whose AS-path attribute begins and ends
with 400. This sets the local preference on updates coming from AS 400.
route-map locpref permit 10
match as-path 1
set local-preference 50
route-map local-pref permit 20
ip as-path access-list 1 permit ^400$
The commands below apply the route map to a BGP neighbor:
router bgp 100