sudo apt-get install isc-dhcp-server
1. 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.
2. Edit the /etc/dhcp/dhcpd6.conf file to configure the DHCPv6 range etc.
3. Create the /var/lib/dhcp/dhcpd6.leases
4. Manually start the DHCPv6 server.
----------------------------------------------------------------------------
sudo ifconfig eth0 inet6 add 2001:db8:0:1::128/64
[ configure 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;
}
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 dhcpd -6 -f -cf /etc/dhcp/dhcpd6.conf eth0
****************************************************
Can't open /var/lib/dhcp/dhcpd6.leases for append.
sudo chmod 666 /var/lib/dhcp/dhcpd6.leases
沒有留言:
張貼留言