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

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

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.

In some scenarios such as LDRA and DHCPv6 relay interconnection, LDRA requires that the source and destination IPv6 addresses in packets must be link-local address. In this case, run the dhcpv6 source-ip-address format adaptive enable command on the DHCPv6 relay.

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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >