21 set ip next-hop, 22 set local-preference, Set ip next – PLANET XGS3-24042 User Manual

Page 487: Set local, Preference

Advertising
background image


31-126

Switch(config)#route-map r1 permit 10

Switch(config-route-map)#set extcommunity soo 200.200:10

31.21 set ip next-hop

Command:

set ip next-hop <ip_addr>

no set ip next-hop [<ip_addr>]

Function:

Configure the next-hop of the route. The “no set ip next-hop [<ip_addr>]” 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

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

Advertising
This manual is related to the following products: