OcNOS-RON-6.3.1 : Layer 3 Guide : Fundamental Layer 3 Command Reference : Route-Map Commands : set extcommunity
set extcommunity
Use this command to set an extended community attribute.
To use this command you must first have a match clause. The match and set commands define the conditions for redistributing routes from one routing protocol to another:
The match command defines the match criteria under which redistribution is allowed for the current route-map.
The set command defines the set redistribution actions to be performed, if the match criteria are met.
If the packets do not match any of the defined criteria, they are routed through the normal routing process.
Use the no parameter with this command to disable this function.
Command Syntax
set extcommunity rt .AA:NN (additive|)
set extcommunity soo .AA:NN
set extcommunity cost (igp|pre-bestpath|) <0-255> <0-4294967295>
no set extcommunity rt (.AA:NN|) (additive|)
no set extcommunity soo (.AA:NN|)
no set extcommunity cost (igp|pre-bestpath|) <0-255> <0-4294967295>
Parameters
rt
Route target extended community.
.AA:NN
VPN extended community
additive
Add to the exsisting community.
soo
Site-of-origin extended community.
cost
Extended cost community.
igp
Compare following IGP cost comparison.
pre-bestpath
 
Compare following IGP cost comparison.
<0-255>
Community ID.
<0-4294967295>
 
Cost.
Default
No default value is specified
Command Mode
Route-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#route-map rmap1 permit 3
(config-route-map)#set extcommunity rt 06:01
 
#configure terminal
(config)#route-map rmap1 permit 3
(config-route-map)#set extcommunity rt 0.0.0.6:01
 
#configure terminal
(config)#route-map rmap1 permit 3
(config-route-map)#set extcommunity soo 06:01
 
#configure terminal
(config-route-map)#route-map rmap1 permit 3
(config-route-map)#set extcommunity soo 0.0.0.6:01
Last modified date: 07-13-2023