Juniper BGP - CONFIGURATION GUIDE V 11.1.X Configuration Manual page 115

Junose software for e series routing platforms
Table of Contents

Advertisement

set local-preference
set metric
set metric-type
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.
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.
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.
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.
Chapter 1: Configuring BGP Routing
Configuring BGP Routing Policy
79

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.1.x bgp and mplsBgpMpls

Table of Contents