How does DHCP Works?

, , No Comments

The following are the activities between DHCP Server and DHCP Client.

• Lease Request: Client broadcasts request to DHCP server with a source address
of 0.0.0.0 and a destination address of 255.255.255.255. The request includes the
MAC address which is used to direct the reply.

• IP lease offer: DHCP server replies with an IP address, subnet mask, network
gateway, name of the domain, name servers, duration of the lease and the IP
address of the DHCP server.


• Lease Selection: Client receives offer and broadcasts to al DHCP servers that will
accept given offer so that other DHCP server need not make an offer.

• The DHCP server then sends an acknowledgement to the client. The client is
configured to use TCP/IP.

• Lease Renewal: When half of the lease time has expired, the client will issue a
new request to the DHCP server.

Download and Install the DHCP Package
Most RedHat and Fedora Linux software product packages are available in the RPM
format, whereas Debian and Ubuntu Linux use DEB format installation files. When
searching for these packages, remember that the filename usually starts with the
software package name and is followed by a version number, for example the file
name as ‘dhcp-3.23.58-4.i386.rpm’.

Managing the DHCP daemon is easy to do, but the procedure differs between Linux
distributions. Here are some things to keep in mind.

• Firstly, different Linux distributions use different daemon management systems.
Each system has its own set of commands to do similar operations.

• Secondly, the daemon name needs to be known and in this case the name of the
daemon is DHCP.

dhcpd.conf File

You can define your server configuration parameters in the dhcpd.conf file which
may be located in the /etc the /etc/dhcpd or /etc/dhcp3 directories depending on your
version of Linux.

The dhcpd.conf configuration file formats in Debian / Ubuntu and Redhat / Fedora
are identical.

Here is a quick explanation of the dhcpd.conf file.

 

0 टिप्पणियाँ:

Post a Comment