R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
175
2001:410::/48 Auto(C) 1 Jul 10 2011 20:44:05
Static IPv6 address assignment configuration example
Network requirements
As shown in Figure 70, the router serves as a DHCPv6 server with IPv6 address 1::1/64. It assigns IPv6
address 1::A/124 to the client whose DUID is FF00010006498D3322000102030405, and assigns
IPv6 address 1::B/124 to the client whose DUID is 00030001CA0006A40000.
Configuration considerations
Configure the following settings on the DHCPv6 server:
1. Enable IPv6 and DHCPv6 server.
2. Create a DHCPv6 address pool. Configure static IPv6 address bindings for the clients.
3. Enable the DHCPv6 server on the interface that connects to the clients.
Figure 70 Network diagram
Configuration procedure
# Enable IPv6 and DHCPv6 server on the router.
<Router> system-view
[Router] ipv6
[Router] ipv6 dhcp server enable
# Configure the IPv6 address of interface 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 address pool 1.
[Router] ipv6 dhcp pool 1
# In address pool 1, bind IPv6 address 1::A/124 with the client whose DUID is
FF00010006498D3322000102030405, and bind 1::B/124 with the client whose DUID is
00030001CA0006A40000. Set their preferred lifetime to one day and valid lifetime to three days.
[Router-dhcp6-pool-1] static-bind address 1::A/124 duid FF00010006498D3322000102030405
preferred-lifetime 86400 valid-lifetime 259200
[Router-dhcp6-pool-1] static-bind address 1::B/124 duid 00030001CA0006A40000
preferred-lifetime 86400 valid-lifetime 259200
[Router-dhcp6-pool-1] quit