CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure DHCPv6 Relay

Network Requirements

  • Device1 is the DHCPv6 server, and the interface of Device2 enables the DHCPv6 relay function.
  • The DHCPv6 server provides the service for the client of the segment 1::/64, and the first ten IPv6 addresses are reserved.
  • The DHCPv6 client gets the IPv6 address via DHCPv6 relay.

Network Topology

Networking for Configuring a DHCPv6 Relay

Figure 6-3 Networking for Configuring a DHCPv6 Relay

Configuration Steps

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

Step 2: Configure an IPv6 address pool for Device 1, and configure the reserved IPv6 addresses.

#Configure Device1 as DHCPv6 server.

Device1#configure terminal
Device1(config)#interface vlan3
Device2(config-if-vlan3)#ipv6 dhcp server
Device2(config-if-vlan3)#exit

#Configure IPv6 addresses which are from 1::0 to 1::9 not to be allocated.

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

#Configure IPv6 address pool dynamic-pool for Device1.

Device1(config)#ipv6 dhcp pool dynamic-pool
Device1(dhcp6-config)#network 1::/64
Device1(dhcp6-config)#lease preferred-lifetime 300 valid-lifetime 600
Device1(dhcp6-config)#exit

#Configure a static route to network segment 1::/64.

Device1(config)#ipv6 route 1::0/64 2::2

Step 3: On the interface vlan2 of Device2, enable the DHCPv6 relay and configure the address of the DHCPv6 server 2::1.

Device2(config)#interface vlan2
Device2(config-if-vlan2)#ipv6 dhcp relay
Device2(config-if-vlan2)#ipv6 dhcp relay server-address 2::1
Device2(config-if-vlan2)#exit

Step 4: Check the result.

#On Device1, query the IPv6 addresses that have been allocated.

Device1#show ipv6 dhcp pool dynamic-pool lease  
IPv6 Address                 Duid                        Iaid        Type     Time Left(s)
-------------    ------------------------------------    --------    -----    ------------ 
1::0             000200001613303030313761636635646634    00000000    Lease    574 

Use the show ipv6 dhcp pool dynamic-pool lease command to query the IPv6 addresses that have been allocated to clients. The result shows that a client has obtained the IPv6 address 1::0.