< Home

display ip ip-prefix

Function

The display ip ip-prefix command displays the configuration of IPv4 prefix lists.

Format

display ip ip-prefix [ ip-prefix-name ]

Parameters

Parameter Description Value
ip-prefix-name Displays the configuration of an IP prefix list with a specified name. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

An IPv4 prefix list is used to filter IPv4 addresses. To achieve the following purposes, run the display ip ip-prefix command:
  • View detailed configuration of a configured IPv4 prefix list.
  • Check whether an IPv4 prefix list is deleted after running the undo ip ip-prefix command.
  • View the number of routes that do or do not match the route-policy in an IPv4 prefix list.

Precautions

The display ip ip-prefix command:
  • Displays the configuration of a specified IPv4 prefix list if the name of the IPv4 prefix list is specified.
  • Displays the configuration of all IPv4 prefix lists if no IPv4 prefix list name is specified.
  • Does not display information if no IPv4 prefix list exists in the system or the queried IPv4 prefix list does not exist.

Before collecting the number of routes that do or do not match the route-policy in an IPv4 prefix list within a certain period, run the reset ip ip-prefix command to clear existing statistics.

If The specified filter list does not exist is displayed in the command output, the specified IPv4 prefix list failed to be configured. To re-configure it, run the ip ip-prefix command in the system view.

Example

# Display the configuration of the IP prefix list named p1.

<HUAWEI> display ip ip-prefix p1
Prefix-list pl
Permitted 0
  Description prefixok
Denied 0
         index: 10      permit  192.168.0.0/16          ge  17  le  18
Table 1 Description of the display ip ip-prefix command output

Item

Description

Prefix-list

Name of an IPv4 prefix list.

Permitted

Number of routes that match a route-policy.

Description

Description of an IPv4 prefix list. This field is displayed only after a description is configured using the ip ip-prefix ip-prefix-name description text command.

Denied

Number of routes that do not match the route-policy.

index

Index of the entry in the IPv4 prefix list.

permit

Contents of the entry in the IPv4 prefix list.

ge 17

The mask is greater than or equal to 17.

le 18

The mask is less than or equal to 18.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >