The dhcpv6 relay command specifies the destination IPv6 address for DHCPv6 messages on an inbound interface.
The undo dhcpv6 relay command deletes the 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.
Parameter | Description | Value |
---|---|---|
interface interface-type interface-number |
Specifies an outbound interface for DHCPv6 messages. |
- |
interface-name |
Specifies an outbound interface for DHCPv6 messages. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
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. |
all |
Delete all the outbound interface or destination IPv6 address for DHCPv6 messages on an inbound interface. |
- |
100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, Sub-interface view
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.
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).
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] dhcpv6 relay interface GigabitEthernet 0/1/2 [*HUAWEI-GigabitEthernet0/1/1] dhcpv6 relay destination 2001:db8::2