< Home

static-bind address

Function

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

The undo static-bind address command deletes the statically bound entries between the IPv6 address and the client DUID in the DHCPv6 address pool view.

By default, no IPv6 address is bound to the client DUID in the address pool view.

Format

static-bind address ipv6-address duid client-duid [ iaid iaid ] [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ]

undo static-bind address ipv6-address

Parameters

Parameter

Description

Value

ipv6-address

Specifies the IPv6 address statically bound to an address pool.

The 128-bit IPv6 address is divided into eight groups. Each group contains four hexadecimal digits. The format is X:X:X:X:X:X:X:X.

duid client-duid

Configures the DUID of the DHCPv6 client that is statically bound to the IPv6 address.

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

iaid iaid

Specifies IA identifier value.

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 of the bound entries.

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 of the bound entries.

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 of the bound entries to infinite.

-

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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

Prerequisites

  1. An address pool has been created by using the dhcpv6 pool command.
  2. Bind an IPv6 address prefix to an address pool by using the address prefix

Example

# Bind the IPv6 address fc00:1::2 with the client with DUID abcdef in address pool pool1 and set the lifetime to infinite.

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