OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

One free software DHCP server is ISC dhcpd. For Ubuntu, the isc-dhcp-server package is rec- ommended. Here is a sample configuration file for it (see /etc/dhcp/dhcpd.conf):


option domain-name "example.com";

option domain-name-servers ns1.example.com; option subnet-mask 255.255.255.0;

default-lease-time 600;

max-lease-time 7200; server-name "servername";


subnet 192.168.1.0 netmask 255.255.255.0 {

range 192.168.1.200 192.168.1.253;

option routers 192.168.1.1;

}


host clientname {

filename "/tftpboot.img"; server-name "servername"; next-server servername;


hardware ethernet 01:23:45:67:89:AB; fixed-address 192.168.1.90;

}


In this example, there is one server servername which performs all of the work of DHCP server, TFTP server, and network gateway. You will almost certainly need to change the domain-name op- tions, as well as the server name and client hardware address. The filename option should be the name of the file which will be retrieved via TFTP.

After you have edited the dhcpd configuration file, restart it with /etc/init.d/isc-dhcp-server restart.


4.3.3. Setting up a BOOTP server

Top OS Cloud Computing at OnWorks: