sudo apt-get install isc-dhcp-server
- set a static IPv6 address for the Interface I want to run the DHCPv6 server from that is part of the IPv6 network subnet outside the DHCP range.
- Edit the /etc/dhcp/dhcpd6.conf file to configure the DHCPv6 range etc.
- Create the /var/lib/dhcp/dhcpd6.leases
- Manually start the DHCPv6 server.
sudo ifconfig eth0 inet6 add 2001:db8:0:1::128/64
設定 dhcpd6.conf
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet6 2001:db8:0:1::/64
{
#Range for clients
range6 2001:db8:0:1::129 2001:db8:0:1::254;
}
touch /var/lib/dhcp/dhcpd6.leases
chown dhcpd:dhcpd /var/lib/dhcp/dhcpd6.leases
sudo dhcp -6 -f -cf /etc/dhcp/dhcpd6.conf eth0
[via]