Configuring the dhcpv6 relay agent, Configuration prerequisites, Configuration guidelines – H3C Technologies H3C S12500 Series Switches User Manual

Page 197: Configuration procedure

Advertising
background image

183

1.

The DHCPv6 client sends a Solicit message containing the Rapid Commit option to the multicast

address FF02::1:2 of all the DHCPv6 servers and relay agents.

2.

After receiving the Solicit message, the DHCPv6 relay agent encapsulates the message into the
Relay Message option of a Relay-forward message, and sends the message to the DHCPv6 server.

3.

After obtaining the Solicit message from the Relay-forward message, the DHCPv6 server selects an
IPv6 address and other required parameters, and adds them to the reply which is encapsulated

within the Relay Message option of a Relay-reply message. The DHCPv6 server then sends the

Relay-reply message to the DHCPv6 relay agent.

4.

The DHCPv6 relay agent obtains the reply from the Relay-reply message and sends the reply to the
DHCPv6 client.

Then the DHCPv6 client uses the IPv6 address and other network parameters assigned by the DHCPv6

server to perform network configuration.

Configuring the DHCPv6 relay agent

Upon receiving a request from a DHCPv6 client, the interface that operates as a DHCPv6 relay agent
encapsulates the request into a Relay-forward message and forwards the message to the specified

DHCPv6 server, which then assigns an IPv6 address and other configuration parameters to the DHCPv6

client.

Configuration prerequisites

Before configuring DHCPv6 relay agent, you need to use the ipv6 command to enable IPv6. For more

information about the ipv6 command, see "Configuring IPv6 basics."

Configuration guidelines

Follow these guidelines when you configure the DHCPv6 relay agent:

You can specify up to eight DHCP servers for an interface. After receiving requests from DHCPv6
clients, the DHCPv6 relay agent forwards the requests to all specified DHCPv6 servers.

If the DHCPv6 server address is a link-local address or link-scoped multicast address on the local
link, you need to specify an outgoing interface using the interface keyword in the ipv6 dhcp relay
server-address command. Otherwise, DHCPv6 packets might fail to be forwarded to the DHCPv6

server.

Removing all the specified DHCPv6 server addresses from an interface disables DHCPv6 relay
agent on the interface.

Do not enable the DHCPv6 relay agent and DHCPv6 client on the same interface.

Configuration procedure

To configure the DHCPv6 relay agent:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter interface view.

interface interface-type interface-number

N/A

Advertising