Tuesday, May 17, 2011

DHCP server configuration explained


The configuration file is /etc/dhcpd.conf. Its options are:
* option broadcast-address – Broadcast address in my case would be “option broadcast-address 192.168.199.255;”.
* option dhcp-client-identifier – String rather than hardware address used to identify DHCP clients.
* option domain-name – The name of the domain the DHCP server is serving.
* option domain-name-servers – The address(es) of the DNS servers on the domain. Ex: “option domain-name-servers 192.168.199.1, 192.168.199.5;” The names are separated by a comma and whitespace with a semicolon ending the line.
* option host-name – The client’s host name.
* option lpr-servers – Lists print server addresses.
* option nntp-server – Network News Transfer Protocol (NNTP) server address
* option pop-server – Mail server address.
* option routers – The default router address.
* option smtp-server – The SMTP e-mail server address(es).
* option subnet-mask – The subnet mask is not necessary since the subnet statement (see example file) contains a netmask value.
* option time-offset – The difference between your time zone and the Coordinated Universal Time.
* option netbios-name-servers – Define the address of the NBNS name server for samba services.