prefix(IPv6 prefix pool view)

Function

The prefix command configures an IPv6 prefix.

The undo prefix command deletes an IPv6 prefix.

By default, no IPv6 prefix is configured.

This command is supported only on the NetEngine 8000 F1A.

Format

prefix prefix-address/prefix-length [ delegating-prefix-length delegating-prefix-length ]

undo prefix

Parameters

Parameter Description Value
delegating-prefix-length delegating-prefix-length

Specifies the length of the IPv6 prefix assigned by the delegating router to the requesting router. The length of prefixes to be assigned from a delegation prefix pool must be greater than the length of prefixes in the delegation prefix pool. Otherwise, the delegating router cannot assign prefixes from the delegation prefix pool to clients.

delegating-prefix-length cannot be configured for a local prefix pool.

The value is an integer that ranges from 1 to 128, the default value is 64.

prefix prefix-address/prefix-length

Specifies the address and length of an IPv6 prefix.

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

Views

IPv6 prefix pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ipv6pool write

Usage Guidelines

Usage Scenario

If you want the device to allocate addresses and prefixes for users, you need to configure a prefix pool and bind it to the address pool. Run this command to configure the prefixes in the prefix pool which are allocated to users.

Precautions

In VS mode, this command is supported only on the admin VS.

After an IPv6 prefix pool is bound to an IPv6 address pool, prefixes in the prefix pool cannot be changed or deleted.

Different prefix pools are used for different address allocation modes:

  • The local prefix pool is configured when the WAN interface address is allocated in ND prefix allocation or DHCPv6 IA_NA/IA_TA mode.
  • The delegation prefix pool is configured when the LAN interface prefix is allocated in ND prefix allocation or DHCPv6 PD mode.
  • The remote prefix pool is configured when the address or prefix is allocated by the remote server in DHCPv6 IA_NA/IA_TA/IA_PD mode.

Example

# Configure an IPv6 prefix named 2001:db8::/64 in a local prefix pool named prefixtest.
<HUAWEI> system-view
[~HUAWEI] ipv6 prefix prefixtest local
 Info: Create a prefix pool.
[*HUAWEI-ipv6-prefix-prefixtest] commit
[~HUAWEI-ipv6-prefix-prefixtest] prefix 2001:db8::/64
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >