ip extcommunity-list

Use ip extcommunity-list to define an extended community list entry.

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

Syntax

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

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

Default

No extended community list is defined.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

ext-comm-list-number: Specifies a number for the extended community list, 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 }&<1-32>: Specifies the RT extended community attribute, a string of 3 to 21 characters. &<1-32> indicates that the argument before it can be entered up to 32 times.

A route-target has the following forms:

Examples

# Define 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

Related commands

apply extcommunity

display ip extcommunity-list

if-match extcommunity