beautypg.com

20 set extcommunity, 21 set ip next-hop, Set extcommunity – PLANET XGS3-24040 User Manual

Page 394: Set ip next

background image


29-107

Example:

Switch#config terminal

Switch(config)#route-map r1 permit 5

Switch(config-route-map)#set community local-as additive

29.20 set extcommunity

Command:

set extcommunity <AA:NN>

no set extcommunity [<AA:NN>]

Function:

Configure the extended community attributes of the BGP routing message. The “no set

extcommunity [<AA:NN>]” command deletes this configuration.

Parameter:

<rt> is the route target, <soo> is the site of origin, <AA:NN> is the value of community attributes,

amongst AA is AS number, NN is a random two byte number.

Command Mode:

route-map mode

Usage Guide:

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 extcommunity rt 100:10

29.21 set ip next-hop

Command:

set ip next-hop >

no set ip next-hop [>]

Function:

Configure the next-hop of the route. The “no set ip next-hop [>]” command deletes the

configuration.

Parameter:

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

Command Mode:

route-map mode