How to configure the DHCPv6 relay on the ECS4120 series ?

Steven_zhangCreated at:Dec 11, 2019 13:12:27Updated at:Dec 11, 2019 13:12:33

If the DHCPv6 server and the DHCPv6 client are connected in different VLANs/subnets, user could configure DHCPv6 relay functions for host devices attached to the switch to communicate with DHCPv6 server.
The DHCPv6 Relay Agent uses Relay Forward/Reply messages to relay the messages between Servers and Clients.

Topology:

mceclip0.png

Configuration for DHCPv6 relay:

!                                                                    
interface ethernet 1/1
 
!
interface ethernet 1/2
 switchport allowed vlan add 2 untagged
 switchport mode access
 switchport native vlan 2
 switchport allowed vlan remove 1
 
!
interface vlan 2
 ipv6 dhcp relay destination 2001:db8:0:1::128
!
interface vlan 1                                                     
 ipv6 address 2001:db8:0:1::129/64
!
interface vlan 2
 ipv6 address 2002:db8:0:1::129/64
!

DHCPv6 relay packet forwarding procedures:

mceclip1.png

Capture the packets on the port 2. (DHCPv6 Client)

mceclip1.png

Capture the packets on the port 1. (DHCPv6 Server)
mceclip2.png

In this example, the client will get the IPv6 address in the range of 2002:db8:0:1::129 ~ 2002:db8:0:1::254 from the DHCP server.