No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
DHCPv6 Configuration Commands

DHCPv6 Configuration Commands

NOTE:

The CE6810LI does not support the DHCPv6 function.

address prefix

Function

The address prefix command configures the network prefix and lifetime in the address pool view.

The undo address prefix command deletes the network prefix and lifetime that are configured in the address pool view.

By default, no network prefix and lifetime are configured in the address pool view.

Format

address prefix ipv6-prefix/ipv6-prefix-length [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ]

undo address prefix ipv6-prefix/ipv6-prefix-length [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ]

Parameters

Parameter

Description

Value

ipv6-prefix/ipv6-prefix-length

Specifies the network prefix and prefix length.

ipv6-prefix: The value is a 128-bit address and generally divided into eight groups. Each group contains four hexadecimal digits. The format is X:X:X:X:X:X:X:X.

ipv6-prefix-length: The value is an integer ranging from 16 to 128.

life-time

Indicates the network prefix lifetime.

-

valid-lifetime

Specifies the valid lifetime of the network prefix.

The value is an integer ranging from 60 to 8640000, in seconds. The default value is 172800 (2 days).

preferred-lifetime

Specifies the preferred lifetime of the network prefix.

The value is an integer ranging from 60 to 8640000, in seconds. The default value is 86400 (1 day).

infinite

Indicates that the lifetime is infinite.

-

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the device functions as a DHCPv6 server, run the address prefix command to configure the network prefix in an address pool.

Precautions

If IPv6 addresses in an address pool have been assigned to DHCPv6 clients, only the value of life-time can be modified.

If no DHCPv6 relay agent exists between the DHCPv6 server and client, the network prefix length of a DHCPv6 server pool must be longer than or equal to the IPv6 address prefix length of Layer 3 interfaces on the same network segment.

Example

# Bind the network prefix fc00:1::/64 to the DHCPv6 server 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 life-time infinite infinite

conflict-address expire-time

Function

The conflict-address expire-time command sets the aging time for conflicting addresses in an IPv6 address pool.

The undo conflict-address expire-time command restores the default setting.

By default, the aging time for conflicting addresses is 172800 seconds (2 days).

Format

conflict-address expire-time expire-time

undo conflict-address expire-time

Parameters

Parameter

Description

Value

expire-time

Specifies the aging time for conflicting addresses in an IPv6 address pool.

The value is an integer ranging from 60 to 4294967295, in seconds.

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The conflict-address expire-time command applies to DHCPv6 servers. When a DHCPv6 server assigns IPv6 addresses to clients, address conflict may occur if some IPv6 addresses have been manually assigned to clients. In this case, the DHCPv6 server considers these IPv6 addresses as conflicting addresses, and assigns available IPv6 addresses from the conflicting addresses to clients only after available IPv6 addresses in the address pool are used up. To shorten the interval at which conflicting IPv6 addresses are reclaimed, run the conflict-address expire-time command to set a shorter aging time for conflicting addresses.

Example

# Set the aging time for conflicting addresses in the address pool global1 to 36000 seconds.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool global1
[*HUAWEI-dhcpv6-pool-global1] conflict-address expire-time 36000

dhcpv6 duid

Function

The dhcpv6 duid command configures a DHCP Unique Identifier (DUID) for a DHCPv6 device.

The undo dhcpv6 duid command restores the default DUID of a DHCPv6 device.

By default, a DHCPv6 device's DUID is generated using DUID-LL mode.

Format

dhcpv6 duid { duid-value | llt | ll }

undo dhcpv6 duid

Parameters

Parameter Description Value
duid-value Specifies a DUID. The value is a string of 8 to 28 characters in hexadecimal notation.
llt Indicates that a DUID is generated using DUID-LLT mode. -
ll Indicates that a DUID is generated using DUID-LL mode. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A DUID uniquely identifies a DHCPv6 device. Each DHCPv6 client or server must have a DUID. The server's DUID is carried in the Server Identifier option in DHCPv6 messages, and the client's DUID is carried in the Client Identifier option in DHCPv6 messages. A DHCPv6 server and a client use DUIDs to identify each other.

The DUID is optional for DHCPv6 relay agents. The DUID of a DHCPv6 relay agent is carried in the Remote-Id option. The DHCPv6 server identifies relay agents based on their DUIDs carried in the Remote-Id option.

To configure a DUID or configure the DUID generation mode, run the dhcpv6 duid command.
  • DUID-LLT: The DUID is generated based on the device's link-layer address plus time. The link-layer address can belong to any network interface connected to the device. The device must store the DUID in stable storage and must continue to use this DUID even if the network interface used to generate the DUID is removed.
  • DUID-LL: The DUID is generated based on the device's link-layer address of the network interface that is permanently connected to the device.

Configuration Impact

Changing the DUID of a DHCPv6 client may affect the authentication and lease renewal of online users.

If the dhcpv6 duid command is run more than once, the latest configuration overrides the previous one.

Example

# Configure the DUID as 0CC084D303000912.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 duid 0CC084D303000912

# Configure the DUID generation mode as DUID-LLT.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 duid llt

# Configure the DUID generation mode as DUID-LL.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 duid ll
Related Topics

dhcpv6 enable

Function

The dhcpv6 enable command enables DHCPv6.

The dhcpv6 disable or undo dhcpv6 enable command disables DHCPv6.

By default, DHCPv6 is disabled.

Format

dhcpv6 enable

dhcpv6 disable

undo dhcpv6 enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Before configuring a device as a DHCPv6 client, relay agent, or server, run the dhcpv6 enable command to enable DHCPv6.

After the dhcpv6 disable or undo dhcpv6 enable command is run, DHCPv6 is disabled, but other DHCPv6 configurations still exist.

Example

# Enable DHCPv6.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 enable

# Disable DHCPv6.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 disable
Related Topics

dhcpv6 insert enable

Function

The dhcpv6 insert enable command enables a DHCPv6 relay agent to add relay options to DHCPv6 messages.

The undo dhcpv6 insert enable command disables a DHCPv6 relay agent from adding relay options to DHCPv6 messages.

By default, DHCPv6 relay agents do not add relay options to DHCPv6 messages.

Format

dhcpv6 { interface-id | remote-id } insert enable

undo dhcpv6 { interface-id | remote-id } insert enable

Parameters

Parameter Description Value
interface-id Adds the Interface-Id option to DHCPv6 messages. -
remote-id Adds the Remote-Id option to DHCPv6 messages. -

Views

Ethernet interface view, GE interface view, Eth-Trunk interface view, or VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

DHCPv6 relay Interface-Id option and Remote-Id option carry detailed user information for address allocation and parameter configuration. After the dhcpv6 relay option-insert command is run on an inbound interface, the interface constructs a Relay-forward message based on the received Request message and encapsulates DHCPv6 options to the Relay-forward message.

Example

# Configure a DHCPv6 relay agent to add the Interface-Id option to DHCPv6 messages received on GE 1/0/0.

<HUAWEI> system-view
[~HUAWEI] interface gigabitethernet 1/0/0
[~HUAWEI-GigabitEthernet1/0/0] dhcpv6 interface-id insert enable

# Configure a DHCPv6 relay agent to add the Remote-Id option to DHCPv6 messages received on GE 1/0/0.

[~HUAWEI-GigabitEthernet1/0/0] dhcpv6 remote-id insert enable

dhcpv6 ipsec

Function

The dhcpv6 ipsec command enables IPsec on a DHCPv6 relay agent.

The undo dhcpv6 ipsec command disables IPsec on a DHCPv6 relay agent.

By default, IPsec is disabled on DHCPv6 relay agents.

Format

dhcpv6 ipsec sa sa-name [ peer peer-ipv6-address [ vpn-instance vpn-instance ] ]

undo dhcpv6 ipsec [ sa sa-name [ peer peer-ipv6-address [ vpn-instance vpn-instance ] ] ]

Parameters

Parameter Description Value
sa sa-name Specifies an IPsec SA name. The value is a string of 1 to 15 characters.
peer peer-ipv6-address Specifies an IPv6 address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
vpn-instance vpn-instance Specifies a VPN instance name. The value is a string of 1 to 31 characters.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To defend against DoS attacks, run the dhcpv6 ipsec command so that IPsec can be implemented on packets exchanged between DHCPv6 relay agents and between a DHCPv6 relay agent and a server. If packets from a DHCPv6 client must travel through multiple relay agents before they arrive at a server, IPsec must run between each pair of devices that the packets pass through. For example, if client A sends packets to server D through relay agents B and C in sequence, IPsec must run between relay agents B and C and also between relay agent C and server D.

Prerequisites

An IPsec SA has been configured.

Precautions

  • The DHCPv6 relay agent can use different SAs to authenticate packets exchanged with different peer IPv6 addresses.
  • If no peer IPv6 address is specified, all DHCPv6 messages sent and received on the DHCPv6 relay agent are authenticated by the same SA.
  • The dhcpv6 ipsec command with a peer IPv6 address specified takes precedence over the dhcpv6 ipsec command without a peer IPv6 address specified.

Example

# Enable IPsec on a DHCPv6 relay agent.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 ipsec sa sa1 peer 2001::1
[*HUAWEI] dhcpv6 ipsec sa sa2

dhcpv6 pool

Function

The dhcpv6 pool command creates an IPv6 address pool and displays the IPv6 address pool view. The command displays the IPv6 address pool view if the pool has been created.

The undo dhcpv6 pool command deletes an IPv6 address pool.

By default, no IPv6 address pool is created.

Format

dhcpv6 pool pool-name

undo dhcpv6 pool pool-name

Parameters

Parameter Description Value
pool-name

Specifies an IPv6 address pool name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. The value can be any combination of digits, letters, underscores (_), and dots (.).

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The dhcpv6 pool command applies to DHCPv6 servers. When configuring a DHCPv6 server, run the dhcpv6 pool command to create an IPv6 address pool for the DHCPv6 server to assign Ipv6 addresses to DHCPv6 clients.

Example

# Create an IPv6 address pool pool1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool pool1

dhcpv6 relay

Function

The dhcpv6 relay command specifies the outbound interface or destination IPv6 address for DHCPv6 messages on an inbound interface.

The undo dhcpv6 relay command deletes the outbound interface or destination IPv6 address specified for DHCPv6 messages on an inbound interface.

By default, neither an outbound interface nor destination IPv6 address is specified for DHCPv6 messages on an interface.

Format

dhcpv6 relay { interface interface-type interface-number | destination ipv6-address }

undo dhcpv6 relay { interface interface-type interface-number | destination ipv6-address }

dhcpv6 relay destination ipv6-address { vpn-instance vpn-instance-name | public-net }

undo dhcpv6 relay destination ipv6-address { vpn-instance vpn-instance-name | public-net }

undo dhcpv6 relay all

Parameters

Parameter Description Value
interface interface-type interface-number Specifies an outbound interface for DHCPv6 messages.

The value can be an Ethernet interface or sub-interface, GE interface or sub-interface, Eth-Trunk interface or sub-interface, or VLANIF interface.

destination ipv6-address Specifies a destination IPv6 address for DHCPv6 messages. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
vpn-instance vpn-instance-name Specifies a destination VPN instance for DHCPv6 messages.
NOTE:

Only the CE6850HI, CE6850U-HI, CE6851HI, CE6855HI, CE6856HI, CE6860EI, CE6870EI, CE6880EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support the parameter.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.
public-net Indicates that the destination VPN instance of the DHCPv6 messages is the public VPN instance.
NOTE:

Only the CE6850HI, CE6850U-HI, CE6851HI, CE6855HI, CE6856HI, CE6860EI, CE6870EI, CE6880EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support the parameter.

-

Views

Ethernet interface view, GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, VBDIF interface view, or VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To allow a DHCPv6 relay agent to relay messages sent from DHCPv6 clients on a network segment, run the dhcpv6 relay command on the relay interface that connects to the network segment. After the DHCPv6 relay interface receives DHCPv6 messages, it forwards the DHCPv6 messages to the specified outbound interface or destination IPv6 address. The destination IPv6 address can be an interface address on the next-hop DHCPv6 relay agent or the DHCPv6 server.

In the inter-VPN address allocation scenario, the DHCP client and server are in different VPNs, and the vpn-instance vpn-instance-name parameter needs to be specified. In the non-inter-VPN scenario, specifying the vpn-instance vpn-instance-name parameter is not recommended because the DHCP server and DHCP relay interface belong to the same VPN. In this case, bind the interface to the VPN and use the VPN information of the interface.

Precautions

An interface supports a maximum of eight dhcpv6 relay command instances. If multiple outbound interfaces and destination IPv6 addresses are specified, the DHCPv6 relay agent forwards one copy of packets to each outbound interface and destination IPv6 address. The default destination address of packets forwarded by the specified outbound interfaces is the multicast address (FF05::1:3).

Example

# Specify the outbound interface and destination IPv6 address for DHCPv6 messages on 10GE 1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] undo portswitch
[*HUAWEI-10GE1/0/1] dhcpv6 relay interface 10ge 1/0/2
[*HUAWEI-10GE1/0/1] dhcpv6 relay destination 3001::2
# Configure the destination IP address and VPN instance for the DHCPv6 messages received on the VBDIF10 interface.
<HUAWEI> system-view
[~HUAWEI] bridge-domain 10
[*HUAWEI-bd10] quit
[*HUAWEI] interface vbdif 10
[*HUAWEI-Vbdif10] dhcpv6 relay destination 1::1 vpn-instance 123
Related Topics

dhcpv6 relay source-ip-address

Function

The dhcpv6 relay source-ip-address command configures the source IPv6 address for DHCPv6 messages relayed by a DHCPv6 relay agent.

The undo dhcpv6 relay source-ip-address command restores the default source IPv6 address of DHCPv6 messages relayed by a DHCPv6 relay agent.

By default, a DHCPv6 relay agent uses the IPv6 address of the outbound interface as the source IPv6 address for DHCPv6 messages.

Format

dhcpv6 relay source-ip-address ipv6-address

undo dhcpv6 relay source-ip-address [ ipv6-address ]

Parameters

Parameter Description Value
ipv6-address Specifies a source IPv6 address for DHCPv6 messages relayed by a DHCPv6 relay agent. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, or VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

To help a DHCPv6 server know the forwarding path of DHCPv6 messages sent from a client and facilitate address allocation and parameter configuration, run the dhcpv6 relay source-ip-address command so that DHCPv6 messages relayed by a DHCPv6 relay agent carry the specified source IPv6 address.

Example

# Configure 2001:db8::1 as the source IPv6 address for DHCPv6 messages received on 10GE 1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] undo portswitch
[*HUAWEI-10GE1/0/1] dhcpv6 relay source-ip-address 2001:db8::1

dhcpv6 remote-id format

Function

The dhcpv6 remote-id format command configures the Remote-Id option format for DHCPv6 messages relayed by a DHCPv6 relay agent.

The undo dhcpv6 remote-id format command restores the default Remote-Id option format of DHCPv6 messages relayed by a DHCPv6 relay agent.

By default, the Remote-Id option uses the default format.

Format

dhcpv6 remote-id format { user-defined user-text | default }

undo dhcpv6 remote-id format

Parameters

Parameter Description Value
user-defined user-text Specifies a user-defined format for the Remote-Id option.

The value is a string of 1 to 251 characters.

NOTE:

The value can be any combination of duid, sysname, portname, porttype, iftype, mac, slot, subslot, port, svlan, cvlan, and length.

For example, %duid-%04svlan. % indicates the hexadecimal notation of the DUID, which is converted to a character string. %04 indicates the hexadecimal notation of the S-VLAN ID. If the value has less than four characters, 0s are added to the left until the value has four characters. Then the value is converted to a character string.

default Specifies the default format for the Remote-Id option. The default format is %duid %portname:%04svlan.%04cvlan. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The Remote-Id option added by a DHCPv6 relay agent to DHCPv6 messages it relays carries information, such as the DUID, port identifier, and VLAN ID. The DHCPv6 server can allocate IP addresses and other configuration parameters based on the Remote-Id option. To configure the Remote-Id option format for DHCPv6 messages relayed by a DHCPv6 relay agent, run the dhcpv6 remote-id format command.

Example

# Specify a user-defined format for the Remote-Id option.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 remote-id format user-defined "%mac"

dhcpv6 server

Function

The dhcpv6 server command enables the DHCPv6 server function on an interface.

The undo dhcpv6 server command restores the default configuration.

By default, the DHCPv6 server function is disabled on an interface.

Format

dhcpv6 server pool-name [ allow-hint | preference preference-value | rapid-commit | unicast ] *

undo dhcpv6 server [ pool-name [ allow-hint | preference preference-value | rapid-commit | unicast ] * ]

Parameters

Parameter Description Value
pool-name

Specifies the name of an IPv6 address pool configured on an interface.

The IPv6 address pool specified by pool-name must have been created.

allow-hint

Configures the DHCPv6 server to assign prefixes based on the DHCPv6 client request.

If the value of allow-hint is specified, the server preferentially assigns requested prefixes to clients. If the requested prefix is not in the address pool or has been assigned to other clients, the server assigns an idle prefix to the client.

-

preference preference-value

Specifies the server priority to be sent by the DHCPv6 server in Advertise messages. The DHCPv6 client obtains an IPv6 address or prefix from the DHCPv6 server with the highest priority based on the server priority carried in the Advertise message.

The value is an integer ranging from 0 to 255.

The default value is 0. A larger value indicates a higher priority of the DHCPv6 server.

rapid-commit

Enables fast address prefix assignment for the DHCPv6 server

-

unicast

Indicates unicast communication between DHCPv6 clients and a DHCPv6 server during address lease renewal.

Unicast communication can avoid delay resulting from message forwarding through a DHCPv6 relay agent as well as prevent repeated response and resource waste of DHCPv6 servers. However, unicast communication should be enabled only when no DHCPv6 relay agent exists on a network.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The dhcpv6 server command applies to DHCPv6 servers. If an IPv6 address pool is referenced by an interface, the interface assigns addresses or address prefixes in the address pool to clients after receiving the DHCPv6 Request messages.

Prerequisites

  1. The DHCPv6 function has been enabled globally using the dhcpv6 enable command.

  2. The IPv6 function has been enabled using the ipv6 enable command in the interface view.

Precautions

  • The DHCPv6 client, relay, and DHCPv6 server functions cannot be enabled on the same interface.
  • Only one IPv6 address pool can be referenced by an interface.
  • If the IPv6 address pool referenced by the interface does not exist, the DHCPv6 server function does not take effect.

Example

# Associate IPv6 address pool pool1 with VLANIF100 and set the priority of pool1 to 255.

HUAWEI> system-view
[~HUAWEI] dhcpv6 enable
[*HUAWEI] interface vlanif 100
[*HUAWEI-Vlanif100] ipv6 enable
[*HUAWEI-Vlanif100] dhcpv6 server pool1 preference 255

dhcpv6 server database

Function

The dhcpv6 server database command enables the device to save and restore DHCPv6 data.

The undo dhcpv6 server database command restores the default configuration.

By default, the device is disabled from saving and restoring DHCPv6 data.

Format

dhcpv6 server database { enable | recover | write-delay interval }

undo dhcpv6 server database { enable | recover | write-delay [ interval ] }

Parameters

Parameter Description Value
enable Enables the function to save DHCP data. -
recover Specifies data recovery from storage devices. -
write-delay interval Specifies the interval at which DHCPv6 data is saved. The value is an integer ranging from 300 to 86400, in seconds. By default, the interval is 86400 seconds (1 day).

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To avoid data loss caused by device faults, run the dhcpv6 server database enable command to enable the device to save DHCPv6 data to storage devices. Two files lease.txt and conflict.txt are generated under the DHCPv6 folder in the flash memory, storing information about address leases and conflicting addresses, respectively. The device automatically saves current DHCPv6 data at the specified interval, and previous data files are overwritten. The interval can be set using the dhcpv6 server database write-delay interval command.

If the device is faulty, run the dhcpv6 server database recover command to restore DHCPv6 data from lease.txt and conflict.txt files after the system restarts.

Precautions

Because lease.txt and conflict.txt files are overwritten at a specified interval, you are advised to back up the files in a different location if necessary.

Example

# Enable the device to save DHCPv6 data to storage devices and set the interval for saving data to 36000 seconds.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 server database enable
[*HUAWEI] dhcpv6 server database write-delay 36000

# Enable the function to restore DHCPv6 data from storage devices.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 server database recover

dhcpv6 source-ip-address format adaptive enable

Function

The dhcpv6 source-ip-address format adaptive enable command configures the source IPv6 address type of the response packets sent by a device to a DHCPv6 client as link-local.

The undo dhcpv6 source-ip-address format adaptive enable command restores the default configuration.

By default, the source IPv6 address of the response packets sent by a device to a DHCPv6 client is a global address.

Format

dhcpv6 source-ip-address format adaptive enable

undo dhcpv6 source-ip-address format adaptive enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If the source IPv6 address type of the DHCPv6 request packets sent by a DHCPv6 client is link-local, the source IPv6 address type of the DHCPv6 response packets sent by different devices may vary, some as link-local and some others as global.

By default, the source IPv6 address of the response packets sent by a device to a DHCPv6 client is a global address. To enhance flexibility in device interworking, run the dhcpv6 source-ip-address format adaptive enable command to configure the source IPv6 address type of the response packets sent by a device to a DHCPv6 client as link-local when the destination IPv6 address type is also link-local.

Example

# Configure the source IPv6 address type of the response packets sent by a device to a DHCPv6 client as link-local.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 source-ip-address format adaptive enable

dhcpv6 vss-control insert enable

Function

The dhcpv6 vss-control insert enable command enables the function of inserting the vss-control option into Relay-forward messages on a DHCPv6 relay interface in the inter-VPN scenario.

The undo dhcpv6 vss-control insert enable command disables the function of inserting the vss-control option into Relay-forward messages on a DHCPv6 relay interface in the inter-VPN scenario.

By default, the function of inserting the vss-control option into Relay-forward messages on a DHCPv6 relay interface in the inter-VPN scenario is disabled.

NOTE:

Only the CE6850HI, CE6850U-HI, CE6851HI, CE6855HI, CE6860EI, CE6870EI, CE6880EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support the command.

Format

dhcpv6 vss-control insert enable

undo dhcpv6 vss-control insert enable

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

In the inter-VPN address allocation scenario where the DHCPv6 client and server are on different VPNs, to enable the function of inserting the vss-control option to Relay-forward messages on a DHCPv6 relay interface, run the dhcpv6 vss-control insert enable command. In this manner, VPN information can be sent by the DHCPv6 client o the DHCPv6 server, and the DHCPv6 server can use the vss-control option to search the corresponding pool for the IP address to be allocated.

Example

# Enable the function of inserting the vss-control option into Relay-forward messages on a DHCPv6 relay interface in the inter-VPN scenario.

<HUAWEI> system-view
[~HUAWEI] bridge-domain 10
[*HUAWEI-bd10] quit
[*HUAWEI] interface vbdif 10
[*HUAWEI-Vbdif10] dhcpv6 vss-control insert enable

display dhcpv6 pool

Function

The display dhcpv6 pool command displays the IPv6 address pool configurations.

Format

display dhcpv6 pool [ pool-name [ { allocated | conflict } address | binding [ duid ] | ipv6-address ] ]

Parameters

Parameter

Description

Value

pool-name

Specifies the name of an IPv6 address pool.

The IPv6 address pool specified by pool-name must have been created.

allocated address

Displays the IPv6 addresses that have been assigned.

-

conflict address

Specifies the conflicting IPv6 address in an address pool.

-

binding [ duid ]

Specifies the IPv6 address that are bound to DUIDs in an address pool

The value is a string of an even number of characters ranging from 2 to 260 in hexadecimal notation.

ipv6-address

Specifies an IPv6 address in the IPv6 address pool.

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

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display dhcpv6 pool command applies to DHCPv6 servers. To query information about IPv6 address pool configurations and dynamic address assignment, run the display dhcpv6 pool command.

Example

# Display information about the IPv6 address pool pool1.

<HUAWEI> display dhcpv6 pool pool1
DHCPv6 pool: pool1                                                              
  Address prefix: FC00:2::/64                                                     
    Lifetime 172800 seconds, preferred 86400 seconds                      
    0 in use, 0 conflicts                                                       
  Information refresh time: 86400                                               
  DNS server address: FC00:2::3                                                   
  DNS server domain name: huiwei.com                                                       
  Conflict-address expire-time: 172800                                           
  renew-time-percent : 50                                                       
  rebind-time-percent : 80             
  Active normal clients: 0 
Table 8-79  Description of the display dhcpv6 pool command output

Item

Description

DHCPv6 pool

Name of an IPv6 address pool.

Address prefix

Prefix bound to an IPv6 address pool.

The value can be set using the address prefix command.

Lifetime valid 172800 seconds

Valid lifetime of the network prefix configured for an IPv6 address pool.

The value can be set using the address prefix command.

preferred 86400 seconds

Preferred lifetime of the network prefix configured for an IPv6 address pool.

The value can be set using the address prefix command.

0 in use

Number of IPv6 addresses in use.

0 conflicts

Number of conflicting IPv6 addresses.

Information refresh time

Time for updating configuration parameters assigned to clients through stateless DHCPv6 address autoconfiguration.

The value can be set using the information-refresh command.

DNS server address

DNS server address configured for the IPv6 address pool.

The value can be set using the dns-server command.

DNS server domain name

Domain name suffix allocated by the DHCPv6 server to the client.

You can configure the domain name suffix using the dns-domain-name command.

Conflict-address expire-time

Aging time of conflicting addresses.

The value can be set using the conflict-address expire-time command.

renew-time-percent

Percentage of the renewal time to the preferred lifetime.

The value can be set using the renew-time-percent rebind-time-percent command.

rebind-time-percent

Percentage of the rebinding time to the preferred lifetime.

The value can be set using the renew-time-percent rebind-time-percent command.

Active normal clients

Number of DHCPv6 clients.

display dhcpv6 relay statistics

Function

The display dhcpv6 relay statistics command displays packet statistics on a DHCPv6 relay agent.

Format

display dhcpv6 relay statistics [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number Displays packet statistics on a specified interface. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To monitor DHCPv6 relay agent operating status or locate faults in the DHCPv6 relay agent, run the display dhcpv6 relay statistics command to check statistics about the packets transmitted on the DHCPv6 relay agent. The packet loss statistics and cause help locate the faults.

Example

# Display packet statistics on a DHCPv6 relay agent.

<HUAWEI> display dhcpv6 relay statistics
  -------------------------------------------------------------------
  Bad Packets received                                :   0
  DHCPv6 packets received from clients                :   41357
         DHCPv6 SOLICIT packets received              :   41357
         DHCPv6 REQUEST packets received              :   0
         DHCPv6 CONFIRM packets received              :   0
         DHCPv6 RENEW packets received                :   0
         DHCPv6 REBIND packets received               :   0
         DHCPv6 DECLINE packets received              :   0
         DHCPv6 RELEASE packets received              :   0
         DHCPv6 INFORMATION-REQUEST packets received  :   0

  DHCPv6 packets received from relay agents or servers:   6
         DHCPv6 RELAY-FORWARD packets received        :   6
         DHCPv6 RELAY-REPLY packets received          :   0

  DHCPv6 packets sent to clients                      :   0
         DHCPv6 ADVERTISE packets sent                :   0
         DHCPv6 REPLY packets sent                    :   0
         DHCPv6 RECONFIGURE packets sent              :   0

  DHCPv6 packets sent to relay agents or servers      :   41333
         DHCPv6 RELAY-FORWARD packets sent            :   41333
         DHCPv6 RELAY-REPLY packets sent              :   0

  DHCPv6 packets dropped                              :   33
         Table Full                                   :   0
         General Error                                :   33
         IPSec Authentication Failed                  :   0
  -------------------------------------------------------------------
Table 8-80  Description of the display dhcpv6 relay statistics command output

Item

Description

Bad Packets received

Number of error messages received

DHCPv6 packets received from clients

Number of DHCPv6 messages received from clients

DHCPv6 SOLICIT packets received

Number of Solicit messages received from clients

DHCPv6 REQUEST packets received

Number of Request messages received from clients

DHCPv6 CONFIRM packets received

Number of Confirm messages received from clients

DHCPv6 RENEW packets received

Number of Renew messages received from clients

DHCPv6 REBIND packets received

Number of Rebind messages received from clients

DHCPv6 DECLINE packets received

Number of Decline messages received from clients

DHCPv6 RELEASE packets received

Number of Release messages received from clients

DHCPv6 INFORMATION-REQUEST packets received

Number of Information-Request messages received from clients

DHCPv6 packets received from relay agents or servers

Number of DHCPv6 messages received from other relay agents or servers

DHCPv6 RELAY-FORWARD packets received

Number of Relay-Forward messages received from other relay agents or servers

DHCPv6 RELAY-REPLY packets received

Number of Relay-Reply messages received from other relay agents or servers

DHCPv6 packets sent to clients

Number of DHCPv6 messages sent to clients

DHCPv6 ADVERTISE packets sent

Number of Advertise messages sent to clients

DHCPv6 REPLY packets sent

Number of Reply messages sent to clients

DHCPv6 RECONFIGURE packets sent

Number of Reconfigure messages sent to clients

DHCPv6 packets sent to relay agents or servers

Number of DHCPv6 messages sent to other relay agents or servers

DHCPv6 RELAY-FORWARD packets sent

Number of Relay-Forward messages sent to other relay agents or servers

DHCPv6 RELAY-REPLY packets sent

Number of Relay-Reply messages sent to other relay agents or servers

DHCPv6 packets dropped

Number of DHCPv6 messages discarded

Table Full

Number of DHCPv6 messages discarded due to memory overload

General Error

Number of DHCPv6 messages discarded due to errors other than memory overload and IPsec authentication failures

IPSec Authentication Failed

Number of DHCPv6 messages discarded due to IPsec authentication failures

display dhcpv6 server

Function

The display dhcpv6 server command displays information about the DHCPv6 server function.

Format

display dhcpv6 server [ database | [ statistics ] [ interface interface-type interface-number ] ]

Parameters

Parameter

Description

Value

database

Displays database configurations of a DHCPv6 server.

-

statistics

Displays message statistics on a DHCPv6 server.

-

interface interface-type interface-number

Displays information about server function on a specified interface.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display dhcpv6 server command applies to DHCPv6 servers. To query information about the DHCPv6 server function, run the display dhcpv6 server command.

Example

# Display information about the DHCPv6 server function.

<HUAWEI> display dhcpv6 server
 Database write enable: disable
 Recover from files after reboot: disable
 File saving lease items: --
 File saving conflict items: --
 Save interval: 86400 (seconds)
 Message statistics of Global:
 Message                  Received
 Solicit                  17
 Request                  2
 Confirm                  0
 Renew                    1
 Rebind                   0
 Release                  0
 Decline                  0
 Information-request      0
 Relay-forward            0
 Leasequery               0
 UnknownType              0
 Message                  Sent
 Advertise                17
 Reply                    2
 Relay-reply              0
 Leasequery-reply         0
 Reconfigure              0
 Message statistics of interface Vlanif10
 Message                  Received
 Solicit                  17
 Request                  2
 Confirm                  0
 Renew                    1
 Rebind                   0
 Release                  0
 Decline                  0
 Information-request      0
 Relay-forward            0
 Leasequery               0
 UnknownType              0
 Message                  Sent
 Advertise                17
 Reply                    2
 Relay-reply              0
 Leasequery-reply         0
 Reconfigure              0

# Display database configurations of a DHCPv6 server.

<HUAWEI> display dhcpv6 server database
 Database write enable: enable
 Recover from files after reboot: disable
 File saving lease items: flash:/dhcpv6/lease.txt
 File saving conflict items: flash:/dhcpv6/conflict.txt
 Save interval: 86400 (seconds)

# Display message statistics on a DHCPv6 server.

<HUAWEI> display dhcpv6 server statistic interface Eth-Trunk 1
 Message statistics of interface Eth-Trunk1
 Message                  Received
 Solicit                  0
 Request                  0
 Confirm                  0
 Renew                    0
 Rebind                   0
 Release                  0
 Decline                  0
 Information-request      0
 Relay-forward            0
 Leasequery               0
 UnknownType              0
 Message                  Sent
 Advertise                0
 Reply                    0
 Relay-reply              0
 Leasequery-reply         0
 Reconfigure              0
Table 8-81  Description of the display dhcpv6 server command output

Item

Description

Database write enable

Whether the database saving function is enabled.

Recover from files after reboot

Whether to recover data from files after the device restarts.

File saving lease items

File that stores address lease information.

File saving conflict items

File that stores address conflict information.

Save interval

Interval at which data is automatically saved.

Message statistics of interface

Number of DHCPv6 messages on the interface.

Message Received

Number of received messages.

Solicit

Number of received Solicit messages.

Request

Number of received Request messages.

Confirm

Number of received Confirm messages.

Renew

Number of received Renew messages.

Rebind

Number of received Rebind messages.

Release

Number of received Release messages.

Decline

Number of received Decline messages.

Information-request

Number of received Information-request messages.

Relay-forward

Number of received Relay-forward messages.

Leasequery

Number of received Leasequery messages.

UnknownType

Number of received messages whose type is unknown.

Message Sent

Number of sent messages.

Advertise

Number of sent Advertise messages.

Reply

Number of sent Reply messages.

Relay-reply

Number of sent Relay-reply messages.

Leasequery-reply

Number of sent Leasequery-reply messages.

Reconfigure

Number of sent Reconfigure messages.

dns-domain-name

Function

The dns-domain-name command configures a DNS domain name suffix to be assigned by the DHCPv6 server to DHCPv6 clients.

The undo dns-domain-name command deletes an assigned domain name suffix.

By default, no DNS domain name suffix is configured for DHCPv6 clients.

Format

dns-domain-name dns-domain-name

undo dns-domain-name dns-domain-name

Parameters

Parameter

Description

Value

dns-domain-name

Specifies the DNS domain name suffix assigned to DHCPv6 clients.

The value is a string of 1 to 63 case-insensitive characters, spaces not supported. The value can be any combination of digits, letters, underscores (_), hyphens (-), and dots (.).

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The dns-domain-name command applies to DHCPv6 servers. To allow the DHCPv6 server to deliver a domain name suffix when assigning IPv6 addresses to DHCPv6 clients, run the dns-domain-name command to specify a domain name for an address pool.

Example

# Configure the device to assign the domain name suffix huawei.com to DHCPv6 clients in the address pool pool1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool pool1
[*HUAWEI-dhcpv6-pool-pool1] dns-domain-name huawei.com

dns-server

Function

The dns-server command configures a DNS server address for an IPv6 address pool.

The undo dns-server command deletes a DNS server address.

By default, no DNS server address is configured for an IPv6 address pool.

Format

dns-server ipv6-address

undo dns-server ipv6-address

Parameters

Parameter

Description

Value

ipv6-address

Specifies a DNS server IPv6 address.

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

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The dns-server command applies to DHCPv6 servers. Before a host accesses the Internet, a DNS server needs to resolve the accessed domain name to an IPv6 address. To specify the DNS server to be used by the DHCPv6 server, run the dns-server command. The DHCPv6 server then delivers the DNS server address when assigning addresses to clients.

Example

# Specify a DNS server with the IPv6 address fc00:1::1 for the address pool global1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool global1
[*HUAWEI-dhcpv6-pool-global1] dns-server fc00:1::1

excluded-address

Function

The excluded-address command specifies the range of the IPv6 addresses that cannot be automatically assigned to clients from an IPv6 address pool.

The undo excluded-address command deletes the specified range of the IPv6 addresses that cannot be automatically assigned to clients from the address pool.

By default, all IPv6 addresses in the address pool can be automatically assigned to clients.

Format

excluded-address start-ipv6-address [ to end-ipv6-address ]

undo excluded-address start-ipv6-address [ to end-ipv6-address ]

Parameters

Parameter

Description

Value

start-ipv6-address

Specifies the start IPv6 address that cannot be automatically assigned.

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

to end-ipv6-address

Specifies the end IPv6 address that cannot be automatically assigned.

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

end-ipv6-address and start-ipv6-address must be on the same network segment, and end-ipv6-address must not be lower than start-ipv6-address. If end-ipv6-address is not specified, only the start-ipv6-address cannot be automatically assigned.

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The excluded-address command applies to DHCPv6 servers. During network planning, some IPv6 addresses in an address pool may have been used by a DHCPv6 server/other hosts, or can only be assigned to certain clients with special needs. To exclude the IPv6 address of the interface to which clients are connected and IPv6 addresses that cannot be automatically assigned to clients, run the excluded-address command so that these addresses cannot be assigned to clients. This prevents IPv6 address conflict.

Prerequisites

The address prefix has been bound to an address pool using the address prefix command.

Precautions

  • The excluded IPv6 address or IPv6 address segment must be in the local address pool.
  • The assigned IPv6 addresses that are in use cannot be excluded using this command.
  • If you run the excluded-address command multiple times, you can specify multiple IPv6 addresses or IPv6 address segments that cannot be automatically assigned to clients.

Example

# Configure the IPv6 addresses fc00:1::1 to fc00:1::10 as the ones that cannot be automatically assigned from the address pool global1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool global1
[*HUAWEI-dhcpv6-pool-global1] address prefix fc00:1::/64
[*HUAWEI-dhcpv6-pool-global1] excluded-address fc00:1::1 to fc00:1::10
Related Topics

information-refresh

Function

The information-refresh command configures the interval for updating configuration parameters assigned to clients through stateless DHCPv6 address autoconfiguration.

The undo information-refresh command restores the default configuration.

By default, the interval for updating IPv6 address pool configurations is 86400s (1 day).

Format

information-refresh time

undo information-refresh

Parameters

Parameter

Description

Value

time

Specifies the interval for updating configuration parameters assigned to clients through stateless DHCPv6 address autoconfiguration.

The value is an integer ranging from 600 to 4294967295, in seconds.

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The information-refresh command applies to DHCPv6 servers. When the DHCPv6 server assigns configuration parameters such as the DNS, NIS, and SNTP server addresses to the DHCPv6 clients through stateless autoconfiguration, run the information-refresh command to set the interval for updating these configuration parameters. The clients then obtain the latest configuration parameters from the server at the configured interval.

Example

# Set the interval for updating configuration parameters assigned to clients to 10000s in the address pool pool1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool pool1
[*HUAWEI-dhcpv6-pool-pool1] information-refresh 10000

lock (IPv6 address pool view)

Function

The lock command locks an IPv6 address pool.

The undo lock command unlocks an IPv6 address pool.

By default, no IPv6 address pool is locked.

Format

lock

undo lock

Parameters

None

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The lock command applies to DHCPv6 servers. When a DHCPv6 server needs to be migrated, you simply need to migrate address pools on the DHCPv6 server to another DHCPv6 server on the live network. To retain the addresses that have been assigned to clients from an address pool, run the lock command to lock the address pool. When new users go online, they apply for IPv6 addresses from the DHCPv6 server to which address pools have been migrated.

Precautions

After the lock command is run, the IPv6 address pool is locked. The locked IPv6 address pool does not assign addresses or extend address lease but only releases addresses.

Example

# Lock the address pool global1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool global1
[*HUAWEI-dhcpv6-pool-global1] lock

nis-domain-name

Function

The nis-domain-name command configures an NIS domain name suffix to be assigned by the DHCPv6 server to DHCPv6 clients.

The undo nis-domain-name command deletes an NIS domain name suffix.

By default, no NIS domain name suffix is configured for DHCPv6 clients.

Format

nis-domain-name nis-domain-name

undo nis-domain-name nis-domain-name

Parameters

Parameter

Description

Value

nis-domain-name

Specifies an NIS domain name suffix to be assigned to DHCPv6 clients.

The value is a string of 1 to 63 case-insensitive characters, spaces not supported. The value can be any combination of digits, letters, underscores (_), hyphens (-), and dots (.).

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The nis-domain-name command applies to DHCPv6 servers. The DHCPv6 server specifies an NIS domain name suffix when assigning IPv6 addresses to clients. You can use the nis-domain-name command on the DHCPv6 server to specify a NIS domain name suffix for an address pool. When allocating IPv6 addresses to clients, the DHCPv6 server also sends the NIS domain name suffix to the clients.

Example

# Configure the NIS domain name assigned to the DHCPv6 client as nis.com for the IPv6 address pool pool1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool pool1
[*HUAWEI-dhcpv6-pool-pool1] nis-domain-name nis.com

nis-server

Function

The nis-server command configures an NIS server address to be assigned to DHCPv6 clients.

The undo nis-server command deletes an NIS server address.

By default, no NIS server address is configured for an IPv6 address pool.

Format

nis-server ipv6-address

undo nis-server ipv6-address

Parameters

Parameter

Description

Value

ipv6-address

Specifies the IPv6 address of an NIS server.

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

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The nis-server command applies to DHCPv6 servers. To allow the DHCPv6 server to deliver an NIS server address when assigning IPv6 addresses to DHCPv6 clients, run the nis-server command to specify an NIS server address.

Example

# Specify fc00:1::2 as the IPv6 address of the NIS server when IPv6 addresses in the address pool global1 are assigned to clients.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool global1
[*HUAWEI-dhcpv6-pool-global1] nis-server fc00:1::2

nisp-domain-name

Function

The nisp-domain-name command configures an NISP domain name suffix to be assigned by the DHCPv6 server to DHCPv6 clients.

The undo nisp-domain-name command deletes an NISP domain name suffix.

By default, no NISP domain name suffix is configured for DHCPv6 clients.

Format

nisp-domain-name nisp-domain-name

undo nisp-domain-name nisp-domain-name

Parameters

Parameter

Description

Value

nisp-domain-name

Specifies an NISP domain name suffix to be assigned to DHCPv6 clients.

The value is a string of 1 to 63 case-insensitive characters, spaces not supported. The value can be any combination of digits, letters, underscores (_), hyphens (-), and dots (.).

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The nisp-domain-name command applies to DHCPv6 servers. The DHCPv6 server specifies an NISP domain name suffix when assigning IPv6 addresses for clients. You can use the nisp-domain-name command on the DHCPv6 server to specify an NISP domain name for an address pool. When assigning IPv6 addresses to clients, the DHCPv6 server also sends the domain name suffix to the clients.

Example

# Configure the NISP domain name assigned to the DHCPv6 client as nisp.com for the address pool pool1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool pool1
[*HUAWEI-dhcpv6-pool-pool1] nisp-domain-name nisp.com

nisp-server

Function

The nisp-server command configures an NISP server address to be assigned to DHCPv6 clients for an IPv6 address pool.

The undo nisp-server command deletes an NISP server address.

By default, no NISP server address is configured for an IPv6 address pool.

Format

nisp-server ipv6-address

undo nisp-server ipv6-address

Parameters

Parameter

Description

Value

ipv6-address

Specifies the IPv6 address of the NISP server.

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

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The nisp-server command applies to DHCPv6 servers. To allow the DHCPv6 server to deliver an NISP server address when assigning IPv6 addresses to DHCPv6 clients, run the nisp-server command to specify an NISP server address.

Example

# Specify fc00:1::2 as the IPv6 address of the NISP server when the IPv6 addresses in the IPv6 address pool global1 are assigned to clients.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool global1
[*HUAWEI-dhcpv6-pool-global1] nisp-server fc00:1::2

renew-time-percent rebind-time-percent

Function

The renew-time-percent rebind-time-percent command sets the renewal time and rebinding time of an IPv6 address pool.

The undo renew-time-percent rebind-time-percent command restores the default configuration.

By default, the renew time of an IPv6 address pool is 50% of the preferred lifetime and the rebinding time is 80% of the preferred lifetime.

Format

renew-time-percent renew-time-percent rebind-time-percent rebind-time-percent

undo renew-time-percent rebind-time-percent

Parameters

Parameter Description Value
renew-time-percent Specifies the renewal time of an IPv6 address pool. renew-time-percent specifies the percentage of the renewal time to the preferred lifetime. The value ranges from 10 to 89. The default value is 50.
rebind-time-percent Specifies the rebinding time of an IPv6 address pool. renew-time-percent specifies the percentage of the renewal time to the preferred lifetime. renew-time-percent must be smaller than rebind-time-percent, and the difference between the two parameters must be no less than 10.
NOTE:

You can set the preferred lifetime of the network prefix using the address prefix command.

The value ranges from 20 to 99. The default value is 80.

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

To change the renewal time and rebinding time of an IPv6 address pool, run the renew-time-percent rebind-time-percent command.

Example

# Set the renewal time and rebinding time of the address pool pool1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool pool1
[*HUAWEI-dhcpv6-pool-pool1] renew-time-percent 55 rebind-time-percent 85

reset dhcpv6 pool

Function

The reset dhcpv6 pool command clears the IPv6 address pool configured on the device.

Format

reset dhcpv6 pool pool-name [ binding [ duid ] | { allocated | conflict } address | ipv6-address [ to ipv6-address ] ]

Parameters

Parameter

Description

Value

pool-name

Specifies the name of an IPv6 address pool.

The IPv6 address pool specified by pool-name must have been created.

binding [ duid ]

Deletes an IPv6 address with a specified DUID.

The value is a string of an even number of characters ranging from 2 to 260 in hexadecimal notation.

allocated address

Deletes IPv6 addresses or IPv6 address prefixes that have been assigned.

-

conflict address

Resets the conflicting IPv6 addresses in the IPv6 address pool.

-

ipv6-address [ to ipv6-address ]

Deletes IPv6 addresses in a specified address range. If only one IPv6 address is entered, only the entered IPv6 address is reset.

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

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The reset dhcpv6 pool command resets the address pool status. If an IPv6 address conflict occurs, set the IPv6 address pool to idle using the reset dhcpv6 pool command.

Precautions

After the reset dhcpv6 pool command is run, a user may be disconnected if the used IPv6 address is within the address range specified in this command.

Example

# Set the status of all conflicting IPv6 addresses in the address pool mypool to idle.

<HUAWEI> reset dhcpv6 pool mypool conflict address

reset dhcpv6 relay statistics

Function

The reset dhcpv6 relay statistics command clears packet statistics on a DHCPv6 relay agent.

Format

reset dhcpv6 relay statistics [ interface interface-type interface-number ]

Parameters

Parameter Description Value
interface interface-type interface-number Clears packet statistics on a specified interface. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

If the existing packet statistics on a DHCPv6 relay agent are no longer applicable and you want to collect statistics again for future maintenance, run the reset dhcpv6 relay statistics command to clear the existing packet statistics on the DHCPv6 relay agent.

DHCP relay statistics cannot be restored after they are cleared. Exercise caution when running the reset dhcpv6 relay statistics command.

Example

# Clear packet statistics on 10GE 1/0/1 of a DHCPv6 relay agent.

<HUAWEI> reset dhcpv6 relay statistics interface 10ge 1/0/1

reset dhcpv6 server statistics

Function

The reset dhcpv6 server statistics command clears DHCPv6 message statistics on the DHCPv6 server.

Format

reset dhcpv6 server statistics [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the type and number of an interface.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

If a device is enabled with the DHCPv6 server function, the system collects the statistics about DHCPv6 messages passing through the DHCPv6 server. If the DHCPv6 message statistics are not needed, run the reset dhcpv6 server statistics command to clear them.

If no interface is specified, the command clears all DHCPv6 message statistics. If an interface is specified, the command clears DHCPv6 message statistics on the specified interface.

Example

# Clear DHCPv6 message statistics.

<HUAWEI> reset dhcpv6 server statistics 

sip-domain-name

Function

The sip-domain-name command configures a SIP domain name suffix to be assigned by the DHCPv6 server to DHCPv6 clients.

The undo sip-domain-name command deletes a SIP domain name suffix.

By default, no SIP domain name suffix is configured for DHCPv6 clients.

Format

sip-domain-name sip-domain-name

undo sip-domain-name sip-domain-name

Parameters

Parameter Description Value
sip-domain-name

Specifies a SIP domain name suffix to be assigned to DHCPv6 clients.

The value is a string of 1 to 63 case-insensitive characters, spaces not supported. The value can be any combination of digits, letters, underscores (_), hyphens (-), and dots (.).

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The sip-domain-name command applies to DHCPv6 servers. The DHCPv6 server specifies a SIP domain name when assigning IPv6 addresses to clients. You can use the sip-domain-name command to specify a SIP domain name for an address pool. When assigning IPv6 addresses to clients, the DHCPv6 server also sends the domain name suffixes to the clients.

Example

# Configure the SIP domain name assigned to the DHCPv6 client as sip.com for the address pool pool1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool pool1
[*HUAWEI-dhcpv6-pool-pool1] sip-domain-name sip.com

sip-server

Function

The sip-server command configures a SIP server address to be assigned to the DHCPv6 client.

The undo sip-server command deletes a SIP server address.

By default, no SIP server address is configured for an IPv6 address pool.

Format

sip-server ipv6-address

undo sip-server ipv6-address

Parameters

Parameter

Description

Value

ipv6-address

Specifies the IPv6 address of a SIP server.

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

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The sip-server command applies to DHCPv6 servers. To allow the DHCPv6 server to deliver a SIP server address when assigning IPv6 addresses to DHCPv6 clients, run the sip-server command to specify a SIP server address.

Example

# Specify fc00:3::1 as the IPv6 address of the SIP server when the assigned IPv6 address belongs to the IPv6 address pool global1.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool global1
[*HUAWEI-dhcpv6-pool-global1] sip-server fc00:3::1

sntp-server

Function

The sntp-server command configures a SNTP server IPv6 address to be assigned to DHCPv6 clients.

The undo sntp-server command deletes a SNTP server IPv6 address.

By default, no SNTP server IPv6 address is configured for an IPv6 address pool.

Format

sntp-server ipv6-address

undo sntp-server ipv6-address

Parameters

Parameter

Description

Value

ipv6-address

Specifies the IPv6 address of a SNTP server.

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

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

The sntp-server command applies to DHCPv6 servers. To allow the DHCPv6 server to deliver a SNTP server address when assigning IPv6 addresses to DHCPv6 clients, run the sntp-server command to specify a a SNTP server address. After receiving the IPv6 address of the SNTP server, the clients synchronize the system time with the specified SNTP server.

Example

# Specify fc00:1::1 as the IPv6 address of the SNTP server when IPv6 addresses in the address pool global1 are assigned.

<HUAWEI> system-view
[~HUAWEI] dhcpv6 pool global1
[*HUAWEI-dhcpv6-pool-global1] sntp-server fc00:1::1

static-bind address

Function

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

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

By default, no IPv6 address is bound to a client DUID.

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 [ duid client-duid [ iaid iaid ] [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ] ]

Parameters

Parameter

Description

Value

ipv6-address

Specifies an IPv6 address to be statically bound to a client DUID.

The value is a 128-bit address and generally 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 a DHCPv6 client DUID to be statically bound to the IPv6 address.

The value is a string of an even number of characters ranging from 2 to 260 in hexadecimal notation.

iaid iaid

Specifies IA identifier.

The value is an integer ranging from 1 to 4294967295.

life-time

Indicates the lifetime of the bound entries.

-

valid-lifetime

Specifies the valid lifetime of the bound entries.

The value is an integer ranging from 60 to 8640000, in seconds. The default value is 172800 (2 days).

preferred-lifetime

Specifies the preferred lifetime of the bound entries.

The value is an integer ranging from 60 to 8640000, in seconds. The default value is 86400 (1 day).

infinite

Indicates that the lifetime of the bound entries is infinite.

-

Views

IPv6 address pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The static-bind address command applies to DHCPv6 servers. IPv6 addresses dynamically assigned by DHCPv6 servers can be used only within the address lease period. After the lease of a client expires, a different IPv6 address may be assigned to the client during address application. To ensure the stability of some important devices, run the static-bind address command to statically assign fixed IPv6 addresses to specified DHCPv6 clients. You can 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. Compared with manual IPv6 address configuration, DHCPv6 static allocation prevents manual configuration errors and helps you perform unified maintenance and management.

Prerequisites

An IPv6 address prefix has been bound to an address pool by using the address prefix ipv6-prefix/ipv6-prefix-length [ life-time { valid-lifetime | infinite } { preferred-lifetime | infinite } ] command.

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
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 69559

Downloads: 374

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next