1. Open Terminal
2. sudo su then enter your root password.
3. apt-get install isc-dhcp-server
4. gedit /etc/dhcp/dhcpd.conf
subnet 192.168.60.1 netmask 255.255.255.0 {
range 192.168.60.100 192.168.60.200;
option routers 192.168.60.1;
option broadcast-address 192.168.60.255;
default-lease-time 600;
max-lease-time 7200;
}
5. cp dhcpd.conf dhcpd6.conf
6. gedit /etc/dhcp/dhcpd6.conf
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet6 2014::/64
{
#Range for clients
range6 2014::888 2014::8888;
}
7. Start your DHCP server
dhcpd -f -cf /etc/dhcp/dhcpd.conf eth0
dhcpd -f -cf /etc/dhcp/dhcpd.conf eth0
沒有留言:
張貼留言