260
Configuring a DHCPv6 relay address pool
This feature allows DHCPv6 clients of the same type to obtain IPv6 addresses and other
configuration parameters from the DHCPv6 servers specified in the matching relay 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 address for
clients matching the same relay address pool.
Upon receiving a DHCPv6 Solicit or Request from a client that matches a relay address pool, the
relay agent processes the packet as follows:
• Fills the link-address field of the packet with the specified gateway address.
• Forwards the packet to all DHCPv6 servers in the matching relay address pool.
The DHCPv6 servers select an address pool according to the gateway address.
To configure a DHCPv6 relay address pool:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Create a DHCPv6 relay
address pool and enter its
view.
ipv6 dhcp pool
pool-name
By default, no DHCPv6 relay address pool
exists.
This command is the same for creating
DHCPv6 address pools on a DHCPv6 server.
However, the relay address pool name is not
necessarily the same as the server address
pool name.
3. Specify gateway addresses
for the clients matching the
relay address pool.
gateway-list
ipv6-address&<1-8>
By default, no gateway address is specified.
You can specify a maximum of eight gateway
addresses, but only the first one takes effect.
4. Specify DHCPv6 servers
for the relay address pool.
remote-server
ipv6-address
[
interface
interface-type
interface-number ]
By default, no DHCPv6 server is specified for
the relay address pool.
You can specify a maximum of eight DHCPv6
servers for one relay address pool for high
availability. The relay agent forwards DHCPv6
Solicit and Request packets to all DHCPv6
servers in the relay address pool.
Specifying a gateway address for DHCPv6 clients
By default, the DHCPv6 relay agent fills the link-address field of DHCPv6 Solicit and Request
packets with the first IPv6 address of the relay interface. You can specify a gateway address on the
relay agent for DHCPv6 clients. The DHCPv6 relay agent uses the specified gateway address to fill
the link-address field of DHCPv6 Solicit and Request packets.
To specify a gateway address for DHCPv6 clients:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A