# ip extcommunity-list

#### Syntax

ip extcommunity-list listName { permit | deny } extendedCommunity
[ extendedCommunity ]*

no ip extcommunity-list listName [ { permit | deny } extendedCommunity
[ extendedCommunity ]* ]

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Defines an extended-community (extcommunity) list to be referenced in a route map. The no version deletes the extcommunity.

#### Options

- listName—Name of the extended-community list
- permit—Permits membership in the extended community for matching conditions
- deny—Denies membership in the extended community for matching conditions
- extendedCommunity—Extended community specified in the format:
  {rt | soo } { ASN:nn | ipAddress:nn }
  - rt—Specifies a route-target community; 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 community; consists of one or more routers that injects a set of routes into BGP that carry the extended-community attribute
  - ASN:nn—Identifies the extended community by a 16-bit autonomous system number followed by a 32-bit integer
  - ipAddress:nn—Identifies the extended community identified by an IP address followed by a 16-bit integer
- *—Indicates that one or more parameters can be repeated multiple times in a list in the command line

#### Mode

Global Configuration