The dhcpv6 relay destination command enables the DHCPv6 relay function on interfaces and configure the IPv6 address of the DHCPv6 server or next-hop relay agent.
The undo dhcpv6 relay destination command disables the DHCPv6 relay function on an interface.
By default, the DHCPv6 relay function is disabled on an interface.
Parameter |
Description |
Value |
|---|---|---|
ipv6-address |
Specifies the destination address of relay messages, which can be the IPv6 address of the DHCPv6 server or next hop relay agent. |
The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
Ethernet interface view, Ethernet subinterface view, Eth-Trunk interface view, Eth-Trunk subinterface view, VLANIF interface view
Usage Scenario
When a client applies to a DHCPv6 server on a different network segment for an IPv6 address, you need to deploy a relay agent between the client and the DHCPv6 server. In this manner, the relay agent transmits DHCPv6 messages exchanged between the client and the DHCPv6 server.
You can use the dhcpv6 relay destination command to enable the DHCPv6 relay function on an interface.
Prerequisites
The DHCP function has been enabled using the dhcp enable command in the system view.
Precautions
The device supports a maximum of eight DHCPv6 servers or next-hop relays.
# Enable the DHCPv6 relay function on GigabitEthernet 0/0/1 and set the destination address of relay messages to fc00:1::1.
<sysname> system-view [sysname]dhcp enable [sysname]ipv6 [sysname]interface GigabitEthernet 0/0/1 [sysname-GigabitEthernet 0/0/1]ipv6 enable [sysname-GigabitEthernet 0/0/1]dhcpv6 relay destination fc00:1::1