R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

173
Figure 69 Network diagram
Configuration procedure
# Enable IPv6 and DHCPv6 server.
<Router> system-view
[Router] ipv6
[Router] ipv6 dhcp server enable
# Configure the IPv6 address of GigabitEthernet 2/1/1.
[Router] interface gigabitethernet 2/1/1
[Router-GigabitEthernet2/1/1] ipv6 address 1::1/64
[Router-GigabitEthernet2/1/1] quit
# Create and configure prefix pool 1.
[Router] ipv6 dhcp prefix-pool 1 prefix 2001:0410::/32 assign-len 48
# Create address pool 1.
[Router] ipv6 dhcp pool 1
# Apply prefix pool 1 to address pool 1, and set the preferred lifetime to one day, the valid lifetime to
three days.
[Router-dhcp6-pool-1] prefix-pool 1 preferred-lifetime 86400 valid-lifetime 259200
# Configure static prefix 2001:0410:0201::/48 in address pool 1, and set the client DUID as
00030001CA0006A40000, the preferred lifetime to one day, and the valid lifetime to three days.
[Router-dhcp6-pool-1] static-bind prefix 2001:0410:0201::/48 duid 00030001CA0006A40000
preferred-lifetime 86400 valid-lifetime 259200
# Configure the DNS server address as 2:2::3.
[Router-dhcp6-pool-1] dns-server 2:2::3
# Configure the domain name as aaa.com.
[Router-dhcp6-pool-1] domain-name aaa.com
# Configure the SIP server address as 2:2::4, and the domain name of the SIP server as bbb.com.
[Router-dhcp6-pool-1] sip-server address 2:2::4
[Router-dhcp6-pool-1] sip-server domain-name bbb.com
[Router-dhcp6-pool-1] quit
# Enable the DHCPv6 server on interface GigabitEthernet 2/1/1, apply address pool 1 to the interface,
configure the address pool to support the desired prefix assignment and rapid prefix assignment, and set
the precedence to the highest.
[Router] interface gigabitethernet 2/1/1