dhcpv6-server source

Function

The dhcpv6-server source command configures the source address for packets to be sent to the DHCPv6 server group.

The undo dhcpv6-server source command restores the default configuration.

By default, the source address of packets sent to the DHCPv6 server group is the IPv6 address of the outbound interface.

This command is supported only on the NetEngine 8000 F1A.

Format

dhcpv6-server source { interface { interface-name | interface-type interface-num } | link-address }

undo dhcpv6-server source [ link-address ]

Parameters

Parameter Description Value
interface interface-type

Specifies the type of an interface.

-

interface interface-num

Specifies the number of an interface.

-

interface interface-name

Specifies the name of an interface.

-

link-address

Indicates that the source address is a link address of the prefix pool bound to a remote address pool.

-

Views

DHCPv6 server group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcpv6 write

Usage Guidelines

Usage Scenario

To allow the DHCPv6 servers and device to exchange packets with a specified IP address, run the dhcpv6-server source command to configure the device to send packets with a specified source IP address to the DHCPv6 server group.

Effective conditions of DHCPv6 server source link address function:

(1) The corresponding server group is bound under the remote address pool

(2) The link address configured in the remote prefix pool bound under the remote address pool must be a complete 128 bit address, and the mask must be less than 128 bits, for example: 1000:: / 127

Prerequisites

A link address has been configured using the link-address command in the IPv6 address prefix view.

Precautions

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

It is recommended that you use the loopback interface's IP address as the source IP address of packets sent to the DHCPv6 server group. This ensures stable routes.

Example

# Configure the IP address of GE 0/1/1 as the source address of packets to be sent to the DHCPv6 server group huawei.
<HUAWEI> system-view
[~HUAWEI] ipv6 prefix prefix1 remote
[~HUAWEI-ipv6-prefix-prefix1] link-address 2001:db8:1::1/64
[~HUAWEI-ipv6-prefix-prefix1] quit
[~HUAWEI] dhcpv6-server group huawei
[*HUAWEI-dhcpv6-server-group-huawei] commit
[~HUAWEI-dhcpv6-server-group-huawei] dhcpv6-server source interface GigabitEthernet 0/1/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >