< Home

display ip as-path-filter

Function

display ip as-path-filter command displays the configuration of the AS_Path 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.

Format

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

Parameters

Parameter Description Value
as-path-filter-number Displays the configuration of an AS_Path filter with a specified number. It is an integer that ranges from 1 to 256.
as-path-filter-name Displays the configuration of an AS_Path filter with a specified 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.

<HUAWEI> 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.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >