prefix(ipv6 prefix-list)

Function

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

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

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

Format

prefix address maskLen

undo prefix address maskLen

Parameters

Parameter Description Value
address

Specifies the IP address.

The address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

maskLen

Specifies the mask length.

The value is an integer ranging from 0 to 128.

Views

IPv6 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 IPv6 prefix list, you can configure an IPv6 prefix list-based filter. Using the prefix command, you can configure an address and mask length for the IPv6 prefix list.

Example

# Configure the address 1::1 and mask length 128 for an IPv6 prefix list.
<HUAWEI> system-view
[~HUAWEI] filter-list ipv6-prefix pflist6
[*HUAWEI-ipv6-prefix-list-pflist6] prefix 1::1 128
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >