Search

16.5. DHCP for IPv6 (DHCPv6)

download PDF
The ISC DHCP includes support for IPv6 (DHCPv6) since the 4.x release with a DHCPv6 server, client and relay agent functionality. The server, client and relay agents support both IPv4 and IPv6. However, the client and the server can only manage one protocol at a time — for dual support they must be started separately for IPv4 and IPv6.

16.5.1. Configuring a DHCPv6 Server

The DHCPv6 server configuration file is installed together with the dhcp package and it can be found at /etc/dhcp/dhcpd6.conf.
The sample server configuration file can be found at /usr/share/doc/dhcp-<version>/dhcpd6.conf.sample, in Red Hat Enterprise Linux 6 at /usr/share/doc/dhcp-4.1.1/dhcpd6.conf.sample.
A simple DHCPv6 server configuration file can look like this:
subnet6 2001:db8:0:1::/64 {
        range6 2001:db8:0:1::129 2001:db8:0:1::254;
        option dhcp6.name-servers fec0:0:0:1::1;
        option dhcp6.domain-search "domain.example";
}
For more examples, see the dhcpd.conf(5) man page.
To start the DHCPv6 service, enter the command service dhcpd6 start as root. To stop the DHCPv6 server, use the command service dhcpdv6 stop.
To pass command-line options to dhcpd daemon when the DHCPv6 service starts, use the /etc/sysconfig/dhcpd6 file. This file uses the same structure like the /etc/sysconfig/dhcpd:
# cat /etc/sysconfig/dhcpd6
# Command line options here
DHCPDARGS=
The value added to the DHCPDARGS option is passed to the DHCPv6 service, which passes it to the dhcpd daemon. For more information, see the STANDARD DHCPV6 OPTIONS section in the dhcpd-options(5) man page. For additional examples, see the Dynamic IPv6 configuration on the Fedora Project wiki.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.