1. Introduction:
Thisdocumentdescribesaverysimple procedure toinstall andconfigure astateful DHCPv6server
capable of delegatingIPv6addressesandIPv6prefixes.
The methoddescribedisforUbuntuServer16.04 LTS butshouldn’tvarymuchfor other versionsif atall.
There are multiplepackagesandmethodsforinstallingandconfiguringDHCPv6server.Thisdocument
usesisc-dhcp-serverpackage.Bydefaultthispackage comeswithall filesandbasicready-to-run
configurationforDHCPv4server.Hence forv6service there are modificationsrequiredwhichare taken
care of inbelowprocedure.
Procedure:
1. Install the DHCPserverpackage usingcommand:
sudo apt-getinstall isc-dhcp-server
2. Create the default valuesfile forDHCPv6serverbycopyingandrenamingthe existingequivalent
of v4 Server:
cp /etc/default/isc-dhcp-server/etc/default/isc-dhcp-server6
Editthis file tomake changes tofour attributes asfollows:
sudo nano /etc/default/isc-dhcp-server6
DHCPD_CONF=/etc/dhcp/dhcpd6.conf
DHCPD_PID=/var/run/dhcpd6.pid
OPTIONS="-6"
INTERFACES=”the interfaceon which the servershould tend to the DHCPv6 Requests”
Note:/etc/default/isc-dhcp-server6isthe file fromwhichvaluesof certainparameterswill be
usedbythe initfile (mentionedinnextstep).
3. Create the initfile forDHCPv6serverbycopyingand renamingthe existingequivalentof v4
Server:
cp /etc/init.d/isc-dhcp-server/etc/init.d/isc-dhcp-server6
Editthis file toreplace the valuesinleftbyvaluesinrightof arrow:
isc-dhcp-server isc-dhcp-server6
dhcpd.conf dhcpd6.conf
dhcpd.pid dhcpd6.pid
4. Create the configuration fileforDHCPv6serverbycopyingandrenamingthe existingequivalent
of v4 Server:
2. cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd6.conf
Thisis the file inwhichresides the detailsspecifictoDHCPv6serveroperationsasof whatare
the subnetsitshouldservice,DNSservernames,domainservernames, prefixestobe handed
for prefix delegation requests. Below isone suchconfigurationexample:
sudo nano /etc/dhcp/dhcpd6.conf
subnet6<IPv6-prefix>/prefix-length {
range5 start-IPv6-addressend-IPv6-address;
optiondhcp6.name-serversdns-server-ip-address;
optiondhcp6.domain-searchdomain-server-name
prefix6start-prefix end-prefix /prefix-length
}
5. Start the DHCPv6 serverservice byusingthe command:
sudoservice isc-dhcp-server6start
At any pointof time the statusof the servercanbe checkedorservercan be stoppedbyusing
the same command with keyword statusorstopinsteadof start keyword.
6. In case of any errorswhile startingthe serversyslogcanbe checkedatlocation:
/var/log/syslog
Thisshouldmore oftenthannot pointoutthe problem.
7. All the DHCPv6 leaseshandedoutbythe serverisregistered inthe file:
/var/lib/dhcp/dhcpd6.leases