display ip as-path-filter

Function

The display ip as-path-filter command displays the configured AS_Path filter.

Format

display ip as-path-filter [ as-path-filter-number | as-path-filter-name ]

Parameters

Parameter Description Value
as-path-filter-number Specifies the AS_Path filter number. It is an integer that ranges from 1 to 256.
as-path-filter-name Specifies the AS_Path filter name. The name is a string of 1 to 51 characters without any space. It is case-sensitive.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The AS_Path attribute is a BGP-specific attribute. An AS_Path filter is used to filter BGP routes.

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

Precautions

The display ip as-path-filter command:
  • Displays the configuration information about a specified AS_Path filter, if the number or name of the AS_Path filter is specified.
  • Displays the configuration information about all AS_Path filters, if neither the number nor name of the AS_Path filter is specified.
  • Does not display any information, if the AS_Path filter does not exist in the system or the AS_Path filter that is queried does not exist.

Example

# Display the configured AS_Path filter.

<sysname> display ip as-path-filter
As path filter number: 1
         permit    1.1 100,200
As path filter name: abc
         deny      2.2 200,400
Table 1 Description of the display ip as-path-filter command output

Item

Description

As path filter number

AS_Path filter number

As path filter name

AS_Path filter name

permit

Matching mode is permit

1.1 100,200

Content of the regular expression

deny

Matching mode is deny

Related Topics
ip as-path-filter

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