214Step Command Remarks3. Specify an IPv6 subnet fordynamic assignment.network prefix/prefix-length[ preferred-lifetime preferred-lifetimevalid-lifetime valid-lifetime ]By default, no IPv6 subnet isspecified.4. (Optional.) Specify a DNSserver address. dns-server ipv6-address By default, no DNS serveraddress is specified.5. (Optional.) Specify a domainname suffix. domain-name domain-name By default, no domain namesuffix is specified.6. (Optional.) Specify a SIPserver address or domainname.sip-server { address ipv6-address |domain-name domain-name }By default, no SIP serveraddress or domain name isspecified.7. (Optional.) Configure aself-defined DHCPv6 option. option code hex hex-string By default, no self-definedDHCPv6 option is configured.Configuring the DHCPv6 server on an interfaceEnable the DHCP server and configure one of the following address/prefix assignment methods on aninterface:• Apply an address pool on the interface—The DHCPv6 server selects an IPv6 address/prefix fromthe applied address pool for a requesting client. If there is no assignable IPv6 address/prefix in theaddress 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 IPv6address/prefix in the global DHCPv6 address pool that matches the server interface address or theDHCPv6 relay agent address for a requesting client.If you configure both methods on an interface, the DHCPv6 server uses the specified address pool foraddress assignment without performing global address assignment.Configuration guidelines• An interface cannot serve 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 effectafter the address pool is created.• Only one address pool can be applied to an interface. If you use the ipv6 dhcp server apply poolcommand multiple times, the most recent configuration takes effect.Configuration procedureTo configure the DHCPv6 server on an interface:Step Command Remarks1. Enter system view. system-view N/A