< Home

dhcpv6 relay destination

Function

The dhcpv6 relay destination command enables the DHCPv6 relay function on interfaces and configures 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.

Format

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

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

Parameters

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.

interface interface-type interface-number

Specifies the type and number of the outbound interface of relay messages.

-

Views

VLANIF interface view, VBDIF interface view, Eth-Trunk interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, MultiGE sub-interface view, 40GE interface view, 100GE interface view, Eth-Trunk sub-interface view, GE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the DHCPv6 relay function on VLANIF100 and set the destination address of relay messages to fc00:1::1.

<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] ipv6
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ipv6 enable
[HUAWEI-Vlanif100] dhcpv6 relay destination fc00:1::1 
# Enable the DHCPv6 relay function on GE0/0/1 and set the destination address of relay messages to fc00:1::1.
<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] ipv6
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] ipv6 enable
[HUAWEI-GigabitEthernet0/0/1] dhcpv6 relay destination fc00:1::1 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >