beautypg.com

19 set local-preference, 20 set metric – Accton Technology ES4626 User Manual

Page 376

background image

376

command deletes the configuration.

Parameter: <ip_addr >

is the ip address of next-hop shown with dotted decimal notation.

Command Mode: route-map mode

Example:

Switch#config terminal

Switch(config)#route-map r1 permit 5

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

13.2.3.19 set local-preference

Command: set local-preference >

no set local-preference [>]

Function:

Configure the local priority of BGP route. The “no set local-preference

[>]

” 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

13.2.3.20 set metric

Command: set metric < +/- metric_val | metric_val>

no set metric [+/- metric_val | metric_val]

Function:

Configure the metric value of the route. The “no set metric [+/- metric_val |

metric_val]

” command deletes the configuration.

Parameter: <metric_val >

is the metric value, ranging between 1~4294967295, +/-

means plus or minus the set metric value.

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

This manual is related to the following products: