Everything About DHCP Services and Tools

By Detector | 09 August 2010

What’s DHCP? DHCP is a critical “must have” network service because using DHCP helps you, as a System/Network Administrator, to manage you clients by assigning, tracking and re-assigning IP addresses.

Imagine that you’re working as a SysAdmin for a large company with 500 desktop computers; you need to set to each desktop computer IP address, subnet mask, default gateway, DNS servers, and other network settings. How could you do that?

If you’ll try to perform this task manually you’re probably going to waste a lot of time on sitting on each computer 5-10 minutes, beside time, you can for example accidentally enter wrong IP address to few clients, or to type the same IP address to few clients too.

In order to solve these “problems” you can use Dynamic Host Configuration Protocol (or DHCP) in your network.

DHCP allows you to manage the networks’ IP addresses scopes and other TCP/IP settings like DNS, Default Gateway, etc. from central place, this central place called DHCP server. Beside the management, if there’s any problem you don’t need to run between your clients, you just need to connect to your server and to check the DHCP settings, as I mentioned – the DHCP works from central place, so if there’s a problem, it’s probably from the server, so you know where to go in case of problem and your saving time.

The DHCP server can provide easily IP addresses to clients automatically so you don’t even need to configure and set options in the client side, all you need is to setup DHCP server, configure scope options and some other TCP/IP settings in the server side and that’s it. You can provide to your clients IP addresses from the selected range that you’ve configured and some other TCP/IP options.

Note: DHCP in my opinion can be called “The next generation of BOOTP”, because the BOOTP came first before the DHCP, and today we’re using BOOTP in order to deploy operating systems by booting from the network. Beside this, DHCP was developed in order to support in large networks – something that BOOTP can’t provide.
How DHCP works?

Without entering to the related technical information (DORA process) the DHCP client request from the DHCP server IP address for a while, the length of time that the DHCP client can use the dynamic IP address that the DHCP server provided can be called lease, just like the name: lease means that the client “rent” an IP address for a specific time from the DHCP server, if the client wants to continue using the specific IP address the client needs to re-assign the address by renew the lease, this will happen before the expiration time of the lease if the client is still in the network.

Note: DHCP service uses port 67/UDP in the DHCP server, and 68/UDP at the DHCP clients.

It’s recommended to check that your firewall doesn’t block these ports in order to able the DHCP server and clients to communicate, and also check that your network devices supports DHCP Relay Agent in case that some of your clients are in different physical subnet.

The DHCPNACK or Negative Acknowledgment is a packet that the server sends if the IP address is not available in stand of DHCPACK (in use on other client for example) or the address is no longer valid.

In case of DHCPNACK the client must restart the lease process in order to get an IP address.
DHCP Scopes, Exclude and Reservation

DHCP Scope is a range of IP addresses that you configure in your DHCP server as range of addresses that designed for distribution to the clients.

For example, if you set a scope with a range from, you can easily provide only from this range IP addresses to your clients.

You can also create more than one scope, but it’s recommended to check that your scopes aren’t duplicating one with each other’s. At the scope creation process you can add some more TCP/IP parameters such as subnet mask, IP addresses lease time, router (default gateway), DNS servers, etc. so when the clients gets the IP addresses they’ll get also the other parameters from the scope.

In some cases, you’ll need to prevent the client using some addresses, for example if your scope is from up to, and your servers using, you can exclude these IP addresses from the scope and exclude the DHCP to distribute them to the clients, in most of the DHCP servers this option called exclude.

Reservation is a great option if you’re planning to provide specific dynamic IP address from the DHCP server to unique DHCP client. If for example in the scope you want to provide for specific client a unique address that will be always of the client, you can easily set reservation for the client using a unique identifier – the MAC address, the MAC of Media Access Control is a unique hexadecimal physical address for network adapters.

When you’re installing DHCP server you can configure the DHCP server to set DNS updates to any DNS server that support dynamic updates.

Here is something about DHCP and Active Directory & DHCP Servers. In Microsoft Windows Server with Active Directory you need to authorize your server in order to work with the DHCP service.

In the past you could install few DHCP servers – as you wish, this action occurs problems like server crashing, etc.

In the new Windows 2000 Server/Server 2003/2008 you must authorize your server in order to start the DHCP server, if there’s an authorized DHCP server in the Active Directory environment and a non-authorized server trying to start the DHCP service in order to distribute IP address, the server will failed in this task and the DHCP service in the local computer will stop.

DHCP Relay Agent is any kind of host (usually a router or server) that listen to DHCP/BOOTP broadcast from clients on subnets without local DHCP servers.

The DHCP Relay Agent forwards the packets from the clients and the DHCP server that sitting on different physical subnets to each other in order to supply ‘connection’ between the DHCP Server to the clients, and opposite (from the clients to the server).

Tags | , , , , ,

| |

3 Responses to “Everything About DHCP Services and Tools”

  1. Abhinav says:

    Afer lot of searching on google found this article. Very nice article on DHCP.

  2. Abhinav says:

    forgot to say, am subscribing to your feed.

  3. Wapper says:

    Very informative post :)


Add to Technorati Favorites
website stats
TwitterCounter for @ukion