prefix(ip-prefix-list view)

Function

The prefix command configures an address and mask length for an IP prefix list.

The undo prefix command deletes the address and mask length configured for an IP prefix list.

By default, no addresses or mask length are configured for an IP prefix list.

Format

prefix address maskLen

undo prefix address maskLen

Parameters

Parameter Description Value
address

Specifies the IP address.

The value is in dotted decimal notation.

maskLen

Specifies the mask length.

The value is an integer ranging from 0 to 32.

Views

ip-prefix-list view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

To control route advertisement and acceptance based on an IP prefix list, you can configure an IP prefix list-based filter. Using the prefix command, you can configure an address and mask length for the IP prefix list.

Example

# Configure the address 1.1.1.1 and mask length 32 for an IP prefix list.
<HUAWEI> system-view
[~HUAWEI] filter-list ip-prefix pflist4
[*HUAWEI-ip-prefix-list-pflist4] prefix 1.1.1.1 32
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >