image\overbutt.gifSetting up DHCP servers

Setting up the DHCP server consists of configuring the dhcpd.conf file and starting the dhcpd server daemon. The dhcpd daemon automatically writes to the dhcpd.leases file when it allocates a new IP address. You must be logged in as the root user to set up a DHCP server.

The dhcpd daemon is located in the /usr/sbin/ directory. The dhcpd.conf file is located in the /etc/ directory. The dhcpd.leases file is located in the /var/dhcp/ directory.

For information about the DHCP directives that you can configure in the dhcpd.conf file, see the dhcpd.conf man page.

The following procedure sets up a DHCP server with the following directives:

To set up a DHCP server

1. Click Application Starter, Utilities, Text Editor.

2. Open the dhcpd.conf file.

3. Add the subnet, netmask, and the range of IP addresses for the network, in the following format:

default-lease-time 86400;

max-lease-time 172800

subnet 128.168.12.0 netmask 255.255.255.0

{range 128.168.12.5 128.168.12.100}

4. Click Application Starter, Applications, Utilities, Console.

5. Type the following text to start the DHCP server:

/usr/sbin/dhcpd