247
Configuring network parameters in a DHCPv6 option group
A DHCPv6 option group can be created by using the following methods:
• Create a static DHCPv6 option group by using the ipv6 dhcp option-group command.
• When the device acts as a DHCPv6 client, it automatically creates a dynamic DHCPv6 option
group for saving the obtained parameters. For more information about creating a dynamic
DHCPv6 option group, see "Configuring the DHCPv6 client."
T
o create a static DHCPv6 option group:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Create a static DHCPv6
option group and enter its
view.
ipv6 dhcp option-group
option-group-number
By default, no static DHCPv6
option group exists on the
DHCPv6 server.
3. (Optional.) Specify a DNS
server address.
dns-server
ipv6-address
By default, no DNS server
address is specified.
4. (Optional.) Specify a domain
name suffix.
domain-name
domain-name
By default, no domain name
suffix is specified.
5. (Optional.) Specify a SIP
server address or domain
name.
sip-server
{
address
ipv6-address |
domain-name
domain-name }
By default, no SIP server
address or domain name is
specified.
6. (Optional.) Configure a
self-defined DHCPv6 option.
option
code
hex
hex-string
By default, no self-defined
DHCPv6 option is
configured.
Configuring the 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.
Configuration 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.