Stateful DHCPv6 Link to heading

DHCPv6 can be implemented in two ways: Rapid-Commit and Normal Commit mode.

  • In Rapid-Commit mode, the DHCP client obtain configuration parameters from the server through a rapid two message exchange (solicit and reply).
  • In Normal-Commit mode, the DHCP client uses four message exchanges (solicit, advertise, request and reply). By default normal-commit is used.

topology-1

Configuration Link to heading

hostname R1
ipv6 unicast-routing
ipv6 dhcp pool USERS
    address prefix 2001::/64 lifetime infinite infinite
    dns-server 2001::ABCD
    domain-name flemingcollege.ca
int g0/1
    no shut
    ipv6 enable
    ipv6 address 2001::1/64
    ipv6 dhcp server USERS rapid-commit
C:\Users\Administrator>ipconfig /renew
Ethernet adapter Ethernet:
   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : 2001::4e6:3dbb:163b:81b0
   Temporary IPv6 Address. . . . . . : 2001::b535:147e:f977:619b
   Link-local IPv6 Address . . . . . : fe80::4e6:3dbb:163b:81b0%14
   Default Gateway . . . . . . . . . : fe80::1ae7:28ff:fe30:be59%14

Verification Link to heading

R1# show ipv6 interface brief
GigabitEthernet0/1     [up/up]
    FE80::1AE7:28FF:FE30:BE59
    2001::1

R1# show ipv6 dhcp pool
DHCPv6 pool: USERS
  Address allocation prefix: 2001::/64 valid 4294967295 preferred 4294967295 (1 in use, 0 conflicts)
  DNS server: 2001::ABCD
  Domain name: flemingcollege.ca
  Active clients: 1

R1# show ipv6 dhcp binding
Client: FE80::4E6:3DBB:163B:81B0
  DUID: 00010001213244A0509A4C534B5A
  Username : unassigned
  IA NA: IA ID 0x03509A4C, T1 43200, T2 69120
    Address: 2001::94F0:3FE0:A848:CAEC
            preferred lifetime INFINITY, , valid lifetime INFINITY,

topology-2

Configuration Link to heading

hostname R2
ipv6 unicast-routing
int g0/1
   ipv6 address dhcp rapid-commit
   ipv6 enable

Stateless DHCPv6 (a combination of SLAAC and stateful DHCPv6) Link to heading

topology-2

Configuration Link to heading

hostname R1
ipv6 unicast-routing
ipv6 dhcp pool USERS
    address prefix 2001::/64 lifetime infinite infinite
    dns-server 2001::ABCD
    domain-name flemingcollege.ca
int g0/1
    no shut
    ipv6 enable
    ipv6 address 2001::1/64
    ipv6 nd other-config-flag
    ipv6 dhcp server USERS rapid-commit
hostname R2
ipv6 unicast-routing
int g0/1
    no shut
    ipv6 enable
    ipv6 address autoconfig

Verification Link to heading

R2# show ipv6 interface brief
GigabitEthernet0/1        [up/up]
    FE80::C802:7FF:FED8:8
    2001::C802:7FF:FED8:8
R1# show ipv6 dhcp binding
<No binding>

R1# show ipv6 dhcp pool
DHCPv6 pool: USERS
  Address allocation prefix: 2001::/64 valid 4294967295 preferred 4294967295 (0 in use, 0 conflicts)
  DNS server: 2001::ABCD
  Domain name: flemingcollege.ca
  Active clients: 0

Debug commands: debug ipv6 dhcp detail