R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
177
Dynamic IPv6 address assignment configuration example
Network requirements
As shown in Figure 71, serving as the DHCPv6 server, the router assigns IPv6 addresses on subnet
1:2::/32 to clients Host A and Host B, and assigns IPv6 addresses on subnet 1:3::/32 to clients Host C
and Host D.
Configuration considerations
Configure the following settings on the DHCPv6 server:
1. Enable IPv6 and DHCPv6 server.
2. Configure IPv6 address 1:2::1/32 for interface GigabitEthernet 2/1/1 that connects to Host A
and Host B, and configure IPv6 address 1:3::1/32 for interface GigabitEthernet 2/1/2 that
connects to Host C and Host D.
3. Create DHCPv6 address pools, which contain subnets 1:2::/32 and 1:3::/32 respectively.
4. Enable the DHCPv6 server on the interfaces that connect to the clients.
Figure 71 Network diagram
Configuration procedure
# Enable IPv6 and DHCPv6 server on the router.
<Router> system-view
[Router] ipv6
[Router] ipv6 dhcp server enable
# Configure IPv6 addresses of interfaces GigabitEthernet 2/1/1 and GigabitEthernet 2/1/2.
[Router] interface gigabitethernet 2/1/1
[Router-GigabitEthernet2/1/1] ipv6 address 1:2::1/32
[Router-GigabitEthernet2/1/1] quit
[Router] interface gigabitethernet 2/1/2
[Router-GigabitEthernet2/1/2] ipv6 address 1:3::1/32
[Router-GigabitEthernet2/1/2] quit
# Create address pool 1, specify subnet 1:2::/32 in the address pool, and set the preferred lifetime to
one day and valid lifetime to three days.
[Router] ipv6 dhcp pool 1
Host A
DHCPv6 client
Host C
DHCPv6 client
Host D
DHCPv6 client
Host B
DHCPv6 client
Router
DHCPv6 server
GE2/1/2
1:3::1/32
GE2/1/1
1:2::1/32