388
14.2.3.16 set community
Command: set community [AA:NN] [internet] [local-AS] [no-advertise] [no-export]
[none] [additive]
no set community [AA:NN] [internet] [local-AS] [no-advertise] [no-export]
[none] [additive]
Function:
Configure the community attributes of the BGP routing message. The “
no set
community [AA:NN] [internet] [local-AS] [no-advertise] [no-export] [none]
[additive]
” command deletes this configuration.
Parameter: [AA:NN]
is the community attribute value,
[internet]
is the internet scope,
[local-AS]
means this route do not announce outside the local AS (but can announce
among the sub AS within the confederation),
[no-advertise]
means this route do not
send to any neighbor,
[no-export]
means this route do not send to EBGP neighbors,
[none]
means delete the community attributes from the prefix of this route,
[additive]
means add following existing community attributes.
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 community local-as additive
14.2.3.17 set extcommunity
Command: set extcommunity <rt | soo> <AA:NN>
no set extcommunity <rt | soo> [<AA:NN>]
Function:
Configure the extended community attributes of the BGP routing message.
The “
no set extcommunity <rt | soo> [<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
14.2.3.18 set ip next-hop
Command: set ip next-hop <ip_addr>