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 Snooping Basic Functions Example

Network Requirements

  • DHCPv6 Server1 is the valid DHCPv6 server; DHCPv6 Server2 is the invalid DHCPv6 server.
  • After configuring the DHCPv6 snooping function, PC1 and PC2 both can get address from DHCPv6 Server1.

Network Topology

Networking of configuring DHCPv6 snooping basic functions

Figure 8-5 Networking of configuring DHCPv6 snooping basic functions

Configuration Steps

Step 1: Configure the link type of VLAN and port on Device.

#Create VLAN2.

Device#configure terminal
Device(config)#vlan 2
Device(config-vlan2)#exit

#Configure the link type of port tengigabitethernet0/1-tengigabitethernet0/3 as Access, permitting the services of VLAN2 to pass.

Device(config)#interface tengigabitethernet 0/1-0/3
Device(config-if-range)#switchport mode access
Device(config-if-range)#switchport access vlan 2
Device(config-if-range)#exit

Step 2: Configure the address pool of DHCPv6 Server1 as 1000::2/64 and the address pool of DHCPv6 Server2 as 2000::2/64. (Omitted)

Step 3: Configure the DHCPv6 snooping function on Device.

#Enable the DHCPv6 snooping function.

Device(config)#ipv6 dhcp snooping enable

#Configure the port tengigabitethernet0/2 as trust port.

Device(config)#interface tengigabitethernet 0/2
Device(config-if-tengigabitethernet0/2)#ipv6 dhcp snooping trust
Device(config-if-tengigabitethernet0/2)#exit

Step 4: Check the result.

#After PC1 and PC2 get the address successfully, view the DHCPv6 snooping entries on Device.

Device#show ipv6 dhcp snooping database  
Interface-Name   MAC-Address      VLAN-ID  ValidTime AgedTime IP-Address                       
te0/1            0001.0001.0008   2        120       0        1000::2                        
te0/1            0001.0001.0007   2        120       0        1000::3                         

PC1 and PC2 both can get address from DHCPv6 Server1.