< Home

Configuring the Device as a DHCPv6 Relay

A DHCPv6 client communicates with and obtains an IP address from a DHCPv6 server on another network segment through a DHCPv6 relay agent. DHCPv6 relay allows DHCPv6 clients on different network segments to share a DHCPv6 server, which reduces costs and manage information uniformly.

Prerequisites

  • A DHCPv6 server has been configured based on a global address pool.

    No interface address pool can be configured for the DHCPv6 server interface that connects to the DHCPv6 relay.

  • The DHCPv6 server and the DHCPv6 relay interface are routable to each other.

Context

During certain phases in DHCPv6 configuration, the DHCPv6 client sends broadcast packets; therefore, the DHCPv6 relay interface must support the broadcast mode.

A DHCPv6 relay interface supports a maximum of 8 DHCPv6 server addresses or next-hop relays addresses.

Procedure

  1. Access the system view.

    system-view

  2. Enable IPv6 globally.

    ipv6

  3. Access the DHCPv6 relay interface view.

    interface interface-type interface-number [ .sub-interface-number ]

    The interface can be an Ethernet interface or its subinterface, a Vlanif interface, or an Eth-trunk interface or its subinterface.

  4. Enable IPv6 on the interface.

    ipv6 enable

  5. Assign an IPv6 address to the interface.

    ipv6 address { ipv6-address prefix-length |ipv6-address/prefix-length }

  6. Enable DHCPv6 relay on the interface and configure an IPv6 address for the DHCPv6 server or the next-hop relay.

    dhcpv6 relay destination ipv6-address

    When multiple DHCP relays exist on the network, specify the DHCP server IP address on the last DHCP relay and the next-hop relay IP address on the other DHCP relays.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.