display ip community-filter

Function

The display ip community-filter command displays the configured community filter.

Format

display ip community-filter [ basic-comm-filter-num | adv-comm-filter-num | comm-filter-name ]

Parameters

Parameter Description Value
basic-comm-filter-num Specifies the basic community filter number. It is an integer ranging from 1 to 99.
adv-comm-filter-num Specifies the advanced community filter number. It is an integer ranging from 100 to 199.
comm-filter-name Specifies the name of the community filter. The name is a string of 1 to 51 characters. The string cannot be all numbers.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The community attribute is a BGP-specific attribute. A community filter is used to filter BGP routes.

You can run the display ip community-filter command to:
  • View detailed information about a configured community filter.
  • Check whether a community filter is successfully deleted after running the undo ip community-filter command.

Precautions

The display ip community-filter command:
  • 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.

Example

# Display all community filters.

<sysname> display ip community-filter
Community filter Number 10
         permit  no-export
Community filter Number 110
         deny 110:110
Named Community basic filter: aa (ListID = 200)
         permit  1 internet
Named Community advanced filter: bb (ListID = 700)
         permit ^20                                
Table 1 Description of the display ip community-filter command output

Item

Description

Community filter Number

Indicates the community filter number.

permit

Indicates that the matching mode is permit.

deny

Indicates that the matching mode is deny.

Named Community basic filter

Indicates the name of the basic community attribute.

Named Community advanced filter

Indicates the name of the advanced community attribute.

Related Topics
ip community-filter

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.