Set metric – Enterasys Networks X-Pedition XSR CLI User Manual
Page 315
BGP Set Commands
XSR CLI Reference Guide 6-119
Syntax of the “no” Form
The no form of this command removes the local preference value:
no set local-preference value
Mode
Route‐map configuration:
XSR(config-route-map)#
Default
Preference value: 100.
Example
The following example configures the set local‐preference value in the context of configuring a
route map and match:
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match as-path 37
XSR(config-route-map)#set local-preference 400
Route map 1 uses the match as‐path command that is referencing an as‐path access list 37. This list
identifies the BGP routing updates to which the set local‐preference command will apply. The
relevant updates will have the value of their local preference set to 400, which is higher than the
default of 100. Assuming that all of the BGP route selection criteria remain the same, the routes
with the highest local preference will be chosen as the best routes to the identified destinations.
This, however, applies only in multi‐homed ASs as the local preference attribute impacts only
which way the traffic leaves an AS if there are multiple exit points from it.
set metric
This command modifies the metric associated with routes that match a particular route map. This
command can also be used to manipulate the value of the MED for matching BGP routes. Be sure
that a match clause has been specified.
Metrics are values that the router uses to indicate preferred paths to networks. Updates with non‐
zero metrics are used for route selection inside the AS. BGP automatically compares metrics for
routes to internal neighbors. You can use metric to select the best path when there are multiple
alternatives. Routes with lower metric values are more preferred.
Syntax
set metric metric-value
Syntax of the “no” Form
The no form of this command removes the metric value:
no set metric metric-value
metric-value
The value of the metric, ranging from 0 to 2,147,483,647.