22 set local-preference, 23 set metric, Set local – PLANET XGS3-24040 User Manual

Page 395: Preference, Set metric

Advertising
background image


29-108

Example:

Switch#config terminal

Switch(config)#route-map r1 permit 5

Switch(config-route-map)#set ip next-hop 10.2.2.2

29.22 set local-preference

Command:

set local-preference <pre_val>

no set local-preference [<pre_val>]

Function:

Configure the local priority of BGP route. The “no set local-preference [<pre_val>]” command

deletes this configuration.

Parameter:

<pre_val > is the value of local priority, ranging between 0~4294967295.

Command Mode:

route-map mode

Usage Guide:

The local priority attribute is the priority level of a route. A route with a higher local priority level when

compared with other route of the same destination, will be more preferred than other route. The

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

29.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

Advertising