R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

303
Dynamic IPv6 address assignment configuration example
Network requirements
As shown in Figure 121, 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 Ethernet 1/1 that connects to Host A and Host B,
and configure IPv6 address 1:3::1/32 for interface Ethernet 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 121 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 Ethernet 1/1 and Ethernet 1/2.
[Router] interface ethernet 1/1
[Router-Ethernet1/1] ipv6 address 1:2::1/32
[Router-Ethernet1/1] quit
[Router] interface ethernet 1/2
[Router-Ethernet1/2] ipv6 address 1:3::1/32
[Router-Ethernet1/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