2014年10月27日 星期一

[Ubuntu]架IPv6 DHCP Server


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;
}

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

沒有留言:

張貼留言

Ubuntu Libreoffice add Chinese language

  sudo apt-get install libreoffice sudo apt-get install libreoffice-l10n-zh-tw libreoffice-help-zh-tw   如要新增簡體中文則輸入下方指令: sudo apt-get instal...