The display ip community-filter command displays the configuration of the community filter.
Product |
Support |
---|---|
S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S |
Supported. |
S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S6720-LI, and S6720S-LI |
Not supported. |
display ip community-filter [ basic-comm-filter-num | adv-comm-filter-num | comm-filter-name ]
Parameter | Description | Value |
---|---|---|
basic-comm-filter-num |
Displays the configuration of a basic community filter with a specified number. |
The value is an integer ranging from 1 to 99. |
adv-comm-filter-num |
Displays the configuration of an advanced community filter with a specified number. |
The value is an integer ranging from 100 to 199. |
comm-filter-name |
Displays the configuration of a community filter with a specified name. |
The name is a string of 1 to 51 characters. The string cannot be all numerals. |
Usage Scenario
The community attribute is a BGP-specific attribute. A community filter is used to filter BGP routes.
Precautions
Displays the configuration information about a specified community filter, if the number or name of the community filter is specified.
Displays the configuration information about all community filters, if neither the number nor name of the community filter is specified.
Does not display any information, if the community filter does not exist in the system or the community filter that is queried does not exist.
# Display all community filters.
<HUAWEI> display ip community-filter
Community filter Number: 10
deny no-export
Community filter Number: 110
permit 110:110
Named Community basic filter: aa (ListID = 200)
permit 1 internet
Named Community advanced filter: bb (ListID = 700)
permit ^20
Item |
Description |
---|---|
Community filter Number |
Indicates the number of a community filter. |
permit |
Indicates that the matching mode is permit. |
deny |
Indicates that the matching mode is deny. |
Named Community basic filter |
Indicates the name of a basic community filter. |
Named Community advanced filter |
Indicates the name of an advanced community filter. |