Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

How to provide IPv6 stateful autoconfiguration via DHCPv6

0

0

Article ID: KB21919 KB Last Updated: 26 Sep 2011Version: 1.0
Summary:
This article provides information about the minimal required DHCPv6 local server configuration.
Symptoms:
This configuration will provide stateful autoconfiguation of addresses and additional configuration options to DHCPv6 clients.
Cause:

Solution:

The configuration below identifies the interfaces that will participate in the DHCPv6 process.

system {
    services {
        dhcp-local-server {
            dhcpv6 {
                group v6 {
                    interface xe-7/3/3.0;
                }
            }
        }
    }       
}
The configuration below identifies the network prefix that will be assigned, the high and low addresses of the assignment range, and any (optional) additional options that should be provided. For example, the option 64 line provides the FQDN of an AFTR router.
access {
    address-assignment {
        pool v6 {
            family inet6 {
                prefix 2002:1851:c622:1::/96;
                range v6_range {
                    low 2002:1851:c622:1::2/128;
                    high 2002:1851:c622:1::9/128;
                }
                dhcp-attributes {
                    maximum-lease-time 300;
                    dns-server {
                        2002:1851:c622:1::10;
                    }
                    option 64 string test.test.com;
                    option 193 ipv6-address 2002:1851:c622:1::11;
                }
            }
        }
    }
}

The configuration below instructs the router to send Router Advertisements out through the xe-7/3/3.0 interface periodically or in response to Router Solicitations; they specify what sort of autoconfiguration a host can perform.

The configuration below sets the M (AdvManagedFlag or Managed Address Configuration) bit; this means that the IPv6 hosts performing the autoconfiguration, will use DHCPv6 for global address assignment and other configuration information.
protocols {
    router-advertisement {
        interface xe-7/3/3.0 {
            managed-configuration;
        }
    }
}

There are many DHCPv6 clients. For example, listed below is a sample configuration file (called dhclient.conf) for ISC' dhclient tool, that can be used to obtain a global address and request additonal options:
option dhcp6.sql-server-address code 193 = ip6-address;
option dhcp6.aftr-name code 64 = text;
request dhcp6.sql-server-address, dhcp6.aftr-name, dhcp6.domain-search, dhcp6.name-servers;

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search