DHCP for IPv6 Broadband

The DHCP for IPv6 Broadband feature highlights the DHCP enhancements that support IPv6 broadband deployments. This feature briefly explains the different ways a delegating device selects prefixes for a requesting device, enabling accounting messages on a device, and forced release of delegated prefix bindings associated with a PPP virtual interface when the PPP virtual interface is terminated.

Finding Feature Information

Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table.

Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/​go/​cfn. An account on Cisco.com is not required.

Information About DHCP for IPv6 Broadband

Prefix Delegation

An IPv6 prefix delegating device selects IPv6 prefixes to be assigned to a requesting device upon receiving a request from the client. The delegating device might select prefixes for a requesting device in the following ways:

  • Dynamic assignment from a pool of available prefixes.

  • Dynamic assignment from a pool name obtained from the RADIUS server.

  • Assignment of prefix obtained from the RADIUS sever.

Contrary to IPv4 address assignment, an IPv6 user will be assigned a prefix, not a single address. Typically the Internet service provider (ISP) assigns a 64- or 48-bit prefix.

Accounting Start and Stop Messages

PPP calls a registry to allow DHCPv6 to append the delegated prefix information to accounting start and stop messages. When accounting is configured for a DHCPv6 pool, accounting interim packets are sent to broadband sessions after binding is provided from the pool.

Forced Release of a Binding

The DHCPv6 server maintains an automatic binding table in memory to track the assignment of some configuration parameters, such as prefixes between the server and its clients. The automatic bindings can be stored permanently in the database agent, which can be, for example, a remote TFTP server or local NVRAM file system.

DHCPv6 invokes a routine when the virtual interface used by PPP terminates. This routine automatically releases any delegated prefix bindings associated with the PPP virtual interface that is being terminated.

When a PPP virtual interface terminates, the routine runs through the full table of DHCPv6 bindings checking for the matching interface. Because PPP uses a virtual interface, this subroutine clears any related lease information when the PPP connection terminates.


Note


In IPv6 broadband deployment using DHCPv6, you must enable release of prefix bindings associated with a PPP virtual interface using the ipv6 dhcp binding track ppp command. This ensures that DHCPv6 bindings are tracked together with PPP sessions, and in the event of DHCP REBIND failure, the client initiates DHCPv6 negotiation again.


How to Configure DHCP for IPv6 Broadband

Enabling the Sending of Accounting Start and Stop Messages

SUMMARY STEPS

    1.    enable

    2.    configure terminal

    3.    ipv6 dhcp pool poolname

    4.    accounting mlist


DETAILED STEPS
     Command or ActionPurpose
    Step 1 enable


    Example:
    Device> enable 
     

    Enables privileged EXEC mode.

    • Enter your password if prompted.

     
    Step 2 configure terminal


    Example:
    Device# configure terminal 
     

    Enters global configuration mode.

     
    Step 3 ipv6 dhcp pool poolname


    Example:
    Device(config)# ipv6 dhcp pool pool1
     

    Configures a DHCP for IPv6 configuration information pool and enters DHCP for IPv6 pool configuration mode.

     
    Step 4 accounting mlist


    Example:
    Device(config-dhcp)# accounting list1
     

    Enables accounting start and stop messages to be sent.

     

    Removing Delegated Prefix Bindings

    Perform this task to release any delegated prefix bindings associated with the PPP virtual interface that is being terminated.

    SUMMARY STEPS

      1.    enable

      2.    configure terminal

      3.    interface type number

      4.    ipv6 dhcp bindings track ppp


    DETAILED STEPS
       Command or ActionPurpose
      Step 1 enable


      Example:
      Device> enable 
       

      Enables privileged EXEC mode.

      • Enter your password if prompted.

       
      Step 2 configure terminal


      Example:
      Device# configure terminal 
       

      Enters global configuration mode.

       
      Step 3 interface type number


      Example:
      Device(config)# interface VirtualAccess2.2
       

      Specifies an interface type and number, and places the router in interface configuration mode.

       
      Step 4 ipv6 dhcp bindings track ppp


      Example:
      Device(config-if)# ipv6 dhcp bindings track ppp
       

      Releases any delegated prefix leases associated with the PPP virtual interface that is being terminated.

       

      Configuration Examples for DHCP for IPv6 Broadband

      Example: Enabling the Sending of Accounting Start and Stop Messages

      This example shows how to enable a device to send accounting start and stop messages.

      Device(config)# ipv6 dhcp pool pool1
      Device(config-dhcp)# accounting list1

      Example: Configuration for a Prefix Allocated from a Local Pool

      DHCPv6 clients are connected to the DHCPv6 server on Gigabit Ethernet interface 0/0/0. The server is configured to use parameters from the DHCP pool called dhcp-pool. This pool provides clients with the IPv6 address of a DNS server and the domain name to be used. It also specifies that prefixes can be delegated from the prefix pool called client-prefix-pool1. The prefixes delegated will have valid and preferred lifetimes of 1800 and 600 seconds respectively. The prefix pool named client-prefix-pool1 has a prefix of length /40 from which it will delegate (sub) prefixes of length /48.

      ipv6 dhcp pool dhcp-pool
       prefix-delegation pool client-prefix-pool1 lifetime 1800 600
       dns-server 2001:DB8:3000:3000::42
       domain-name example.com
      !
      interface GigabitEthernet0/0/0
       description downlink to clients
       ipv6 address FEC0:240:104:2001::139/64
       ipv6 dhcp server dhcp-pool
      !
      ipv6 local pool client-prefix-pool1 2001:DB8:1200::/40 48

      Additional References

      Related Documents

      Related Topic

      Document Title

      IPv6 addressing and connectivity

      IPv6 Configuration Guide

      Cisco IOS commands

      Cisco IOS Master Commands List, All Releases

      IPv6 commands

      Cisco IOS IPv6 Command Reference

      Cisco IOS IPv6 features

      Cisco IOS IPv6 Feature Mapping

      Standards and RFCs

      Standard/RFC

      Title

      RFCs for IPv6

      IPv6 RFCs

      MIBs

      MIB

      MIBs Link

      To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:

      http:/​/​www.cisco.com/​go/​mibs

      Technical Assistance

      Description

      Link

      The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.

      http:/​/​www.cisco.com/​cisco/​web/​support/​index.html

      Feature Information for DHCP for IPv6 Broadband

      The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.

      Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/​go/​cfn. An account on Cisco.com is not required.
      Table 1 Feature Information for DHCP for IPv6 Broadband

      Feature Name

      Releases

      Feature Information

      DHCP Enhancements to Support IPv6 Broadband Deployments

      Cisco IOS XE Release 2.5

      The feature highlights the DHCP enhancements that support IPv6 broadband deployments, such as, the different ways a delegating device selects prefixes for a requesting device, enabling accounting messages on a device, and forced release of delegated prefix bindings associated with a PPP virtual interface when the PPP virtual interface is terminated.

      The following commands were introduced or modified: accounting, ipv6 dhcp bindings track ppp, ipv6 dhcp pool.

      DHCPv6 Prefix Delegation RADIUS VSA

      Cisco IOS XE Release 2.5

      When the user requests a prefix from the prefix delegator, typically the NAS, the prefix is allocated using DHCPv6.

      DHCP Accounting Attribute

      Cisco IOS XE Release 3.13S

      In Cisco IOS XE Release 3.13S, support was added for the Cisco ASR 1000 Series Routers

      The DHCP Accounting Attribute feature allows DHCPv6 to append delegated prefix information to accounting start and stop messages.