2013年10月2日 星期三

Ubuntu 設定 isc-dhcp-server IPv6

不知為何中文的資料超少,在此作個筆記。[via]

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

設定 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]

沒有留言:

張貼留言