• Example
host1(config)#route-map nyc1 permit 10
host1(config-route-map)#set ip next-hop 192.56.32.1
• Use the no version to delete the set clause from a route map.
• See set ip next-hop.
set local-preference
• Use to specify a preference value for the AS path.
• Example
host1(config)#route-map nyc1 permit 10
host1(config-route-map)#set local-preference 200
• Use the no version to delete the set clause from a route map.
• See set local-preference.
set metric
• Use to set the metric value—for BGP, the MED—for a route.
• To establish an absolute metric, do not enter a plus or minus sign before the metric
value.
• Example
host1(config)#route-map nyc1 permit 10
host1(config-route-map)#set metric 10
• To establish a relative metric, specify a plus or minus sign immediately preceding the
metric value. The value is added to or subtracted from the metric of any routes matching
the route map. The relative metric value can be in the range 0–4294967295.
• Example
host1(config)#route-map nyc1 permit 10
host1(config-route-map)#set metric -25
• You cannot use both an absolute metric and a relative metric within the same route
map sequence. Setting either metric overrides any previously configured value.
• Use the no version to delete the set clause from a route map.
• See set metric.
set metric-type
• Use to set the metric type for a route.
• For BGP, affects all types of route maps. If the route map contains both a set
metric-type and a set metric clause, the set metric clause takes precedence. Specifying
the internal metric type in a BGP outbound route map, BGP sets the MED of the
advertised routes to the IGP cost of the next hop of the advertised route. If the cost of
the next hop changes, BGP is not forced to readvertise the route.
• For BGP, you can specify the following:
Copyright © 2010, Juniper Networks, Inc.78
JunosE 11.2.x BGP and MPLS Configuration Guide