R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

239
# Enable the DHCPv6 server on the interfaces GigabitEthernet 2/1/1 and GigabitEthernet
2/1/2.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ipv6 dhcp select server
[RouterA-GigabitEthernet2/1/1] quit
[RouterA] interface gigabitethernet 2/1/2
[RouterA-GigabitEthernet2/1/2] ipv6 dhcp select server
[RouterA-GigabitEthernet2/1/2] quit
# Exclude the DNS server address from dynamic assignment.
[RouterA] ipv6 dhcp server forbidden-address 1::1:0:0:2
[RouterA] ipv6 dhcp server forbidden-address 1::2:0:0:2
# Create DHCPv6 address pool 1 to assign IPv6 addresses and other configuration parameters to
clients on subnet 1::1:0:0:0/96.
[RouterA] ipv6 dhcp pool 1
[RouterA-dhcp6-pool-1] network 1::1:0:0:0/96 preferred-lifetime 172800
valid-lifetime 345600
[RouterA-dhcp6-pool-1] domain-name aabbcc.com
[RouterA-dhcp6-pool-1] dns-server 1::1:0:0:2
[RouterA-dhcp6-pool-1] quit
# Create DHCPv6 address pool 2 to assign IPv6 addresses and other configuration parameters to
clients on subnet 1::2:0:0:0/96.
[RouterA] ipv6 dhcp pool 2
[RouterA-dhcp6-pool-2] network 1::2:0:0:0/96 preferred-lifetime 432000
valid-lifetime 864000
[RouterA-dhcp6-pool-2] domain-name aabbcc.com
[RouterA-dhcp6-pool-2] dns-server 1::2:0:0:2
[RouterA-dhcp6-pool-2] quit
Verifying the configuration
Clients on subnets 1::1:0:0:0/96 and 1::2:0:0:0/96 can obtain IPv6 addresses and other configuration
parameters from the DHCPv6 server (Router A). You can use the display ipv6 dhcp server ip-in-use
command to display IPv6 addresses assigned to the clients.