ip extcommunity-list

Use ip extcommunity-list to configure an extended community list.

Use undo ip extcommunity-list to remove an extended community list.

Syntax

ip extcommunity-list ext-comm-list-number { deny | permit } { rt route-target | soo site-of-origin }&<1-32>

undo ip extcommunity-list ext-comm-list-number [ { deny | permit } [ rt route-target | soo site-of-origin ]&<1-32> ]

Default

No extended community lists exist.

Views

System view

Predefined user roles

network-admin

Parameters

ext-comm-list-number: Specifies an extended community list number in the range of 1 to 199.

deny: Specifies the match mode for the extended community list as deny.

permit: Specifies the match mode for the extended community list as permit.

rt route-target: Specifies a space-separated list of up to 32 RT extended community attribute items. Each item is a string of 3 to 21 characters.

soo site-of-origin: Specifies a space-separated list of up to 32 SoO extended community attribute items. Each item is a string of 3 to 21 characters.

An RT or SoO attribute has the following forms:

Examples

# Configure extended community list 1 to permit routes with RT 200:200 to pass.

<Sysname> system-view
[Sysname] ip extcommunity-list 1 permit rt 200:200

# Configure extended community list 2 to permit routes with SoO 100:100 to pass.

<Sysname> system-view
[Sysname] ip extcommunity-list 2 permit soo 100:100

Related commands

apply extcommunity

display ip extcommunity-list

if-match extcommunity