How to fix isc-dhcp-server6 in Ubuntu 16.04 #IPv6

Ubuntu 16.04 isn’t 100% prepared for isc-dhcp-server6 and here is a simple way to fix it.

cp /etc/default/isc-dhcp-server /etc/default/isc-dhcp-server6

edit /etc/default/isc-dhcp-server6 and set this options

DHCPD_CONF=/etc/dhcp/dhcpd6.conf
DHCPD_PID=/var/run/dhcpd6.pid
OPTIONS="-6"

And then do

cp /etc/init.d/isc-dhcp-server /etc/init.d/isc-dhcp-server6
sed -i s/isc-dhcp-server/isc-dhcp-server6/ /etc/init.d/isc-dhcp-server6
sed -i s/dhcpd.conf/dhcpd6.conf/ /etc/init.d/isc-dhcp-server6
sed -i s/dhcpd.pid/dhcpd6.pid/ /etc/init.d/isc-dhcp-server6

systemctl enable isc-dhcp-server6

Create a proper /etc/dhcp/dhcpd6.conf and

 service isc-dhcp-server6 start

should work!

 

Kommentera

E-postadressen publiceras inte. Obligatoriska fält är märkta *