< Home

static-bind prefix

Function

The static-bind prefix command statically binds an IPv6 address prefix to the DHCPv6 PD client in the DHCPv6 address pool view.

The undo static-bind prefix command unbinds the IPv6 address prefixes from the DHCPv6 PD clients in the DHCPv6 address pool view.

By default, no IPv6 address prefix is bound to the DHCPv6 PD client in the address pool view.

Format

static-bind prefix ipv6-prefix/ipv6-prefix-length duid client-duid [ iaid iaid-value ] [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ]

undo static-bind prefix ipv6-prefix/ipv6-prefix-length

Parameters

Parameter

Description

Value

ipv6-prefix/ipv6-prefix-length

Specifies the IPv6 address prefix that is statically bound to an address pool.

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

duid client-duid

Specifies the DUID of the DHCPv6 PD client that is statically bound to the IPv6 address prefix.

The value is a string of 2 to 256 characters in hexadecimal notation. The length of the string is an even.

iaid iaid-value

Specifies the IAID of the DHCPv6 PD client that is statically bound to the IPv6 address prefix.

The value is an integer that ranges from 1 to 4294967295.

life-time

Specifies the lifetime of the bound entries.

-

valid-lifetime

Specifies the valid lifetime.

The value is an integer that ranges from 60 to 172799999, in seconds. The default value is 172800, that is two days.

preferred-lifetime

Specifies the preferred lifetime.

The preferred lifetime cannot exceed the valid lifetime.

The value is an integer that ranges from 60 to 172799999, in seconds. The default value is 86400, that is one day.

infinite

Sets the lifetime to infinite.

When the preferred lifetime is set to infinite, the valid lifetime must be set to infinite.

-

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The static-bind prefix command is used on DHCPv6 PD servers. If some special DHCPv6 PD clients need to be statically assigned with fixed IPv6 address prefixes, bind the DUIDs and IAIDs of these clients to the IPv6 address prefixes. When receiving a request for applying for an IP address prefix from a special DHCPv6 PD client, a DHCPv6 PD server assigns the fixed IPv6 address prefix bound to the DUIDs and IAIDs to this client.

Prerequisites

An address pool has been created by using the dhcpv6 pool command.

Precautions

  • When assigning addresses for DHCPv6 PD clients, bind the address prefix to the DUID of the client. The IAID of the client cannot be specified.
  • The statically bound prefix cannot be overlapped with the prefix that is configured using the prefix-delegation command.

Example

# Bind the IPv6 address prefix fc00:1::/64 to the DHCPv6 PD client with DUID abcdef and IAID 12 in address pool pool1 and set the lifetime of the binding entries to infinite.

<HUAWEI> system-view
[HUAWEI] dhcpv6 pool pool1
[HUAWEI-dhcpv6-pool-pool1] static-bind prefix fc00:1::/64 duid abcdef iaid 12 life-time infinite infinite 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >