beautypg.com

Configuring the dhcpv6 relay agent, Configuration prerequisites, Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual

Page 144

background image

133

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.

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 Solicit message 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 you configure the DHCPv6 relay agent, enable IPv6 by using the ipv6 command in system view.

Configuration procedure

Follow these steps to configure the DHCPv6 relay agent:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter interface view

interface interface-type
interface-number

Enable DHCPv6 relay agent on the

interface and specify a DHCPv6
server

ipv6 dhcp relay server-address

ipv6-address [ interface interface-type
interface-number
]

Required
By default, DHCPv6 relay

agent is disabled and no
DHCPv6 server is specified on

the interface.

NOTE:

Executing the ipv6 dhcp relay server-address command repeatedly can specify multiple DHCPv6
servers. Up to eight DHCPv6 servers can be specified for an interface. After receiving requests from
DHCPv6 clients, the DHCPv6 relay agent forwards the requests to all the specified DHCPv6 servers.

If the DHCPv6 server address is a link-local address or link-scoped multicast address on the local link,
you must specify an outgoing interface using the interface keyword in the ipv6 dhcp relay

server-address

command. Otherwise, DHCPv6 packets may fail to be forwarded to the DHCPv6 server.

After you remove all the specified DHCPv6 servers from an interface with the undo ipv6 dhcp relay
server-address command, DHCPv6 relay agent is disabled on the interface.

H3C does not recommend enabling the DHCPv6 relay agent and DHCPv6 client on the same interface.