
184
Step Command
Remarks
4.
Return to system view.
quit
N/A
5.
Create a DHCPv6 policy and
enter DHCPv6 policy view.
ipv6 dhcp policy policy-name
By default, no DHCPv6
policies exist.
6.
Specify a DHCPv6 address
pool for a DHCPv6 user class.
class class-name pool pool-name
By default, no address pool is
specified for a user class.
7.
Specify the default DHCPv6
address pool.
default pool pool-name
By default, no default address
pool is specified.
8.
Return to system view.
quit
N/A
9.
Enter interface view.
interface interface-type
interface-number
N/A
10.
Apply the DHCPv6 policy to the
interface.
ipv6 dhcp apply-policy
policy-name
By default, no DHCPv6 policy
is applied to an interface.
Configuring the DHCPv6 server on an interface
About DHCPv6 server on an interface
Enable the DHCP server and configure one of the following address/prefix assignment methods on
an interface:
•
Apply an address pool on the interface
—The DHCPv6 server selects an IPv6 address/prefix
from the applied address pool for a requesting client. If there is no assignable IPv6
address/prefix in the address pool, the DHCPv6 server cannot to assign an IPv6 address/prefix
to a client.
•
Configure global address assignment on the interface
—The DHCPv6 server selects an
IPv6 address/prefix in the global DHCPv6 address pool that matches the server interface
address or the DHCPv6 relay agent address for a requesting client.
If you configure both methods on an interface, the DHCPv6 server uses the specified address pool
for address assignment without performing global address assignment.
Restrictions and guidelines
When you configure the DHCPv6 server on an interface, follow these restrictions and guidelines:
•
An interface cannot act as a DHCPv6 server and DHCPv6 relay agent at the same time.
•
Do not enable DHCPv6 server and DHCPv6 client on the same interface.
•
If you use the
ipv6 dhcp server
command multiple times, the most recent configuration takes
effect.
•
You can apply an address pool that has not been created to an interface. The setting takes
effect after the address pool is created.
•
Only one address pool can be applied to an interface. If you use the
ipv6 dhcp server apply
pool
command multiple times, the most recent configuration takes effect.
Procedure
To configure the DHCPv6 server on an interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
N/A