23 set metric, 24 set metric-type, Set metric – PLANET XGS3-24042 User Manual

Page 488: Type

Advertising
background image


31-127

local priority validates only within this AS and will not be transported to EBGP neighbors. To use this

command, one match clause should at first be defined.

Example:

Switch#config terminal

Switch(config)#route-map r1 permit 5

Switch(config-route-map)#set local-preference 60

31.23 set metric

Command:

set metric < metric_val>

no set metric [< metric_val>]

Function:

Configure the metric value of the route. The “no set metric [< metric_val>]” command deletes the

configuration.

Parameter:

<metric_val > is the metric value, ranging between 1~4294967295.

Command Mode:

route-map mode

Usage Guide:

The metric value only affects the path option from external neighbors to local AS. The less the

metric value is the higher is the priority. Under normal circumstances only the path metric value of

the neighbors of the same AS will be compared. To extend the comparison to the metric values of

different neighbor path, the bgp always-compare-med command should be configured. To use this

command, one match clause should at first be defined.

Example:

Switch#config terminal

Switch(config)#route-map r1 permit 5

Switch(config-route-map)#set metric 60

31.24 set metric-type

Command:

set metric-type <type-1 | type-2>

no set metric-type [<type-1 | type-2>]

Advertising
This manual is related to the following products: