This article provides information about the minimal required DHCPv6 local server configuration.
This configuration will provide stateful autoconfiguation of addresses and additional configuration options to DHCPv6 clients.
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;