client-duid

Function

The client-duid bind prefix command binds a specified IPv6 prefix in the delegation prefix pool to a client DUID.

The undo client-duid bind prefix command unbinds a specified IPv6 prefix from a client DUID.

By default, no IPv6 prefix in the delegation prefix pool is bound to a client DUID.

This command is supported only on the NetEngine 8000 F1A.

Format

client-duid client-duid bind prefix prefix-address

undo client-duid client-duid

Parameters

Parameter Description Value
client-duid client-duid

Specifies the DUID of a DHCPv6 client. The client DUID is used by a DHCPv6 server to uniquely identify a DHCPv6 client. The value is in the format of hexadecimal notation.

The value is a string of 8 to 28 case-insensitive characters, spaces not supported.

bind

Bind.

-

prefix prefix-address

Specifies an assignable IPv6 prefix.

The value is a 32-bit 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

Prerequisites

A delegation prefix pool has been configured, and an IPv6 prefix has been bound to the delegation prefix pool. The mask length of the prefix to be bound to a client DUID must be the same as that of the prefix bound to the delegation prefix pool.

Configuration Impact

A prefixA prefix can be unbound from a client DUID only if the prefix pool to which the prefix is bound is unbound from the IPv6 address pool. After a prefix is bound to a client DUID, the mask length of the prefix bound to the prefix pool cannot be modified. After a prefix is bound to a client DUID, the prefix is reserved for the associated user and cannot be dynamically assigned to other users.

Precautions

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

  • If the dhcpv6-unshare-only command has been run, the client-duid bind prefix command cannot be run.
  • The length of the DUID character string must be an even number.
  • After a prefix is bound to a client DUID using the client-duid bind prefix command, the valid bits of the prefix are subject to the mask length of the prefix bound to the prefix pool. Only the valid bits of the prefix are carried in options. If the valid bits of two prefixes specified by prefix-address are the same, the following error message is displayed: Error: The prefix address or client duid has been bound. For example, if the IPv6 prefix specified by prefix-address is 1234::5 (but the mask length of the prefix bound to the prefix pool is 64), the effective prefix is 1234:. The prefix carried in Options of DHCPv6 messages is 1234:. When you bind the prefix 1234::6 to a client DUID, the following message is displayed: Error: The prefix address or client duid has been bound.
  • The client-duid bind prefix command takes precedence over the slaac-unshare-only and dhcpv6-unshare-only commands. After both the client-duid bind prefix and slaac-unshare-only or dhcpv6-unshare-only commands are run in the IPv6 prefix pool view, if the client DUID of a PD user (configured using the dhcpv6 duid command) is the same as that specified by client-duid in the client-duid bind prefix command, the IPv6 prefix to which the client DUID is bound can be assigned to the PD user.

    The maximum matching length of the statically bound DUID is 14 bytes. If the length of the DUID carried in a user access request exceeds 14 bytes and the first 14 bytes of the DUID are consistent with those of the statically bound DUID, a statically bound address will be assigned to this user.

Example

# Bind a specified prefix in the delegation prefix pool to a client DUID.
<HUAWEI> system-view
[~HUAWEI] ipv6 prefix wx delegation
 Info: Create a prefix pool.
[*HUAWEI-ipv6-prefix-wx] commit
[~HUAWEI-ipv6-prefix-wx] prefix 2001:db8::/64
[~HUAWEI-ipv6-prefix-wx] client-duid 00000000 bind prefix 2001:db8:1::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >