Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure a DHCPv6 Server to Dynamically Allocate IPv6 Addresses

Network Requirements

  • Two interface VLANs of Device, VLAN2 and VLAN3, are respectively configured with IPv6 addresses 1::3/64 and 2::3/64.
  • The DHCPv6 server Device dynamically allocates IPv6 addresses 1::/64 and 2::/64 to the two clients in the directly-connected physical network.
  • The addresses in network segment 1::/64 have a one-day lease, the DNS server address is 2::4. The addresses in network segment 2::/64 have a three-day lease the gateway address is 2::3, the DNS server address is 2::4.
  • The first 10 IPv6 addresses in network segments 1::/64 and 2::/64 are reserved and cannot be allocated.

Network Topology

Configuring a DHCPv6 Server to dynamically Allocate IPv6 Addresses

Figure 6-2 Configuring a DHCPv6 Server to dynamically Allocate IPv6 Addresses

Configuration Steps

Step 1: Create VLANs, and add ports to the required VLANs. Configure the IPv6 address of the interface (omitted).

Step 2: On the DHCPv6 server Device1, configure two dynamic address pools and their parameters.

#Configure the DHCPv6 server.

Device(config)#interface vlan2
Device(config-if-vlan2)#ipv6 dhcp server
Device(config-if-vlan2)#exit
Device(config)#interface vlan3
Device(config-if-vlan3)#ipv6 dhcp server
Device(config-if-vlan3)#exit

#Configure the first 10 IP addresses in the two address pools to be reserved.

Device(config)#ipv6 dhcp excluded-address 1::0 1::9
Device(config)#ipv6 dhcp excluded-address 2::0 2::9

#Configure address pool dynamic-pool1 and its parameters (including address range, DNS address, address lease).

Device(config)#ipv6 dhcp pool dynamic-pool1
Device(dhcp6-config)#network 1::/64
Device(dhcp6-config)#dns-server 2::4
Device(dhcp6-config)#lease preferred-lifetime 86300 valid-lifetime 86400
Device(dhcp6-config)#exit

#Configure address pool dynamic-pool2 and its parameters (including address range, DNS address, address lease).

Device(config)#ip DHCPv6 pool dynamic-pool2
Device(dhcp6-config)#network 2::/64
Device(dhcp6-config)#dns-server 2::4
Device(dhcp6-config)#lease preferred-lifetime 259100 valid-lifetime 259200
Device(dhcp6-config)#exit 

Step 3: Check the result.

#On Device, query the IPv6 addresses that are allocated to clients.

Device#show ipv6 dhcp pool dynamic-pool1 lease  
IPv6 Address                 Duid                       Iaid       Type         Time Left(s)
-------------    ------------------------------------   --------   ------       ------------ 
1::a             000200001613303030313761636635646634   00000000   Lease        86390
Device2#show ipv6 dhcp pool dynamic-pool2 lease  
IPv6 Address                 Duid                       Iaid       Type         Time Left(s)
-------------    ------------------------------------   --------   ------       ------------ 
2::a             000200001613303030313761636635646634   00000000   Lease        2591974 

On the DHCPv6 clients, query whether the IPv6 addresses have been obtained properly.

caution


  • The IPv6 addresses in the address pool must be within the network segment range of the interface that provides the service.