Specifying DHCPv6 servers for a DHCPv6 address pool on the DHCPv6 relay agent
About specifying DHCPv6 servers for a DHCPv6 address pool on the DHCPv6 relay agent
This feature allows DHCPv6 clients of the same type to obtain IPv6 addresses, IPv6 prefixes, and other configuration parameters from the DHCPv6 servers in the matching DHCPv6 address pool.
It applies to scenarios where the DHCPv6 relay agent connects to clients of the same access type but classified into different types by their locations. In this case, the relay interface typically has no IPv6 address configured. You can use the gateway-list command to specify the gateway addresses for clients matching the same DHCPv6 address pool.
Upon receiving a DHCPv6 Solicit or Request from a client that matches a DHCPv6 address pool, the relay agent processes the packet as follows:
Fills the link-address field of the packet with a specified gateway address.
Forwards the packet to all DHCPv6 servers in the matching DHCPv6 address pool.
The DHCPv6 servers select a DHCPv6 address pool according to the gateway address.
Restrictions and guidelines
You can specify a maximum of eight DHCPv6 servers for one DHCPv6 address pool for high availability. The relay agent forwards DHCPv6 Solicit and Request packets to all DHCPv6 servers in the DHCPv6 address pool.
If this feature is used in the PPPoE scenario, execute the ipv6 dhcp relay client-information record command to enable the DHCPv6 relay agent to record relay entries. When a PPPoE user gets offline, the DHCPv6 relay agent locates the matching relay entry and sends a Release message to the DHCPv6 server.
If this feature is used in the PPPoE scenario, you do not need to execute the ipv6 dhcp select relay command. This is because the remote-server command is a must in this configuration task and it implies that this device is a relay device.
Procedure
Enter system view.
system-view
Create a DHCPv6 address pool and enter its view.
ipv6 dhcp pool pool-name
Specify gateway addresses for the clients matching the DHCPv6 address pool.
gateway-list ipv6-address&<1-8>
By default, no gateway address is specified.
Specify DHCPv6 servers for the DHCPv6 address pool.
remote-server ipv6-address [ interface interface-type interface-number ]
By default, no DHCPv6 server is specified for the DHCPv6 address pool.