2.8 SLAAC & DHCPv6

SLAAC + Stateless DHCPv6 Method (Client)

A router can also be a DHCPv6 client and get an IPv6 configuration from a DHCPv6 server, such as a router functioning as a DHCPv6 server.


Steps to configure a DHCPv6 SLAAC + Stateless DHCPv6 client on a Cisco IOS Device

There are five steps to configure and verify a router as a stateless DHCPv6 client

  1. Enable IPv6 Unicast Routing
  2. Configure the client router to create an LLA
  3. Configure the client router to use SLAAC
  4. Verify that the client router is assigned a GUA
  5. Verify that the client router received other necessary DHCPv6 information

1. Enable IPv6 Unicast Routing

R1(config)# ipv6 unicast-routing

2. Configure the client router to create an LLA

R1(config)# interface [interface] 
R1(config-if)# ipv6 enable 

3. Configure the client router to use SLAAC

R1(config-if)# ipv6 address autoconfig 
R1(config-if)# exit 
R1#

4. Verify that the client router is assigned a GUA

R1# show ipv6 interface brief 
GigabitEthernet0/0/0 [up/up] 
  unassigned 
GigabitEthernet0/0/1 [up/up] 
  FE80::2FC:BAFF:FE94:29B1 
  2001:DB8:ACAD:1:2FC:BAFF:FE94:29B1 
Serial0/1/0 [up/up] 
  unassigned 
Serial0/1/1 [up/up] 
  unassigned 
R1#

5. Verify that the client router received other necessary DHCPv6 information

R1# show ipv6 dhcp [interface]
GigabitEthernet0/0/1 is in client mode 
  Prefix State is IDLE (0) 
  Information refresh timer expires in 23:56:06 
  Address State is IDLE 
  List of known servers: 
    Reachable via address: FE80::1 
    DUID: 000300017079B3923640 
    Preference: 0 
    Configuration parameters: 
      DNS server: 2001:DB8:ACAD:1::254 
      Domain name: example.com 
      Information refresh time: 0 
  Prefix Rapid-Commit: disabled 
  Address Rapid-Commit: disabled 
R1#
(CLIENT) SLAAC + Stateless DHCPv6 Complete Configuration example
R1> enable
R1# configure terminal
R1(config)# ipv6 unicast-routing
R1(config)# interface interface g0/0/1
R1(config-if)# ipv6 enable
R1(config-if)# ipv6 address autoconfig
R1(config-if)# exit
R1#

R1# show ipv6 interface brief
GigabitEthernet0/0/0 [up/up]
  unassigned
GigabitEthernet0/0/1 [up/up]
  FE80::2FC:BAFF:FE94:29B1
  2001:DB8:ACAD:1:2FC:BAFF:FE94:29B1
Serial0/1/0 [up/up]
  unassigned
Serial0/1/1 [up/up]
  unassigned
R1#

R1# show ipv6 dhcp g0/0/1
GigabitEthernet0/0/1 is in client mode
Prefix State is IDLE (0)
  Information refresh timer expires in 23:56:06
  Address State is IDLE
  List of known servers:
    Reachable via address: FE80::1
    DUID: 000300017079B3923640
    Preference: 0
    Configuration parameters:
      DNS server: 2001:DB8:ACAD:1::254
      Domain name: example.com
      Information refresh time: 0
Prefix Rapid-Commit: disabled
Address Rapid-Commit: disabled
R1#