i

Fundamentals Of Linux

Configuring DHCP Server for different DHCP clients

DHCP automatically provides IP addresses and other network configuration information (subnet mask, broadcast address, etc.) to computers on the network. Sends the broadcast request to the DHCP server requesting the client address configured for DHCP. The DHCP server then issues a "lease" and assigns that client. The valid lease period can be specified on the server. DHCP reduces the time required to configure clients and allows computers to be moved across different networks and configured with appropriate IP addresses, gateways, and subnet masks. It uses a limited number of IP addresses for ISPs. DHCP servers can provide a "static" IP address for the specified hardware. Microsoft NetBase information is often included in the network information sent by the DHCP server.

DHCP Assignment:

1. Lease Request: The client requests the DHCP server with a root address of 0.0.0.0 and the destination address of 255.255.255.255. The request contains the MAC address used to direct the answer.

2. IP Lease Offer: The DHCP server replies with the IP address, subnet mask, network gateway, domain name, name server, lease duration and IP address of the DHCP server.

3. Lease Option: The client offers and transmits to the All DHCP server, accepting the offer, so that other DHCP servers do not have to.

4. The DHCP server then sends one to the client. The client is configured to TCP / IP.

5. Lease renewal: When half of the lease expires, the client issues a new request for DHCP - server.

DHCP - Server Installation:

  1. Red Hat / CentOS / Fedora: rpm -ivh dhcp-xx.xxxx.elx.i3x.pm

  2. Ubuntu / Debian 8: apt-install dhcp3-server

Starting the DHCP Server:

  1. Red Hat / CentOS / Fedora: Launch service dhcpd (Or start /etc/rc.d/init.d/dhcpd for Red Hat, Fedora and CentOS distribution)

  2. Ubuntu / Debian: /etc/init.d/networking re-start

Sample DHCP Server Configuration File:

  1. Red Hat / CentOS / Fedora: /etc/dhcpd.conf

  2. [Potential Disadvantages]: Its /etc/dhcpd.conf not /etc/dhcp.conf !!