# set extcommunity

#### Syntax

set extcommunity
{ rt extCommValue [ extCommValue ]* [ additive ] } | { soo extCommValue }

no set extcommunity

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Sets the BGP extended communities attribute. The no version removes the set clause from a route map.

#### Options

- rt—Specifies a route-target extended community, which consists of one or more routers that can receive a set of routes advertised by BGP that carry the extended-community attribute
- soo—Specifies a site-of-origin extended community, which consists of one or more routers that inject into BGP a set of routes that carry the extended-community attribute
- extCommValue—Number identifying the extended community in one of the following formats:
  - AS:nn—Autonomous system number, in the range 1–65535, followed by an integer in the range 1–4294967295; for example, 320:72358
  - AS:nn—Autonomous system number, in the range 1–4294967295 followed by an integer in the range 1–65535; for example, 84511:45
  - ipAddress:nn—Dotted decimal IP address followed by an integer in the range 1–65535; for example, 10.10.21.5:1256
- *—Indicates that one or more parameters can be repeated multiple times in a list in the command line
- additive—Adds the specified extended communities to any previously configured for the attribute; if omitted, the specified extended communities replace any previously configured for the attribute

#### Mode

Route Map Configuration