Introduction to DHCP

In large networks the task of assigning TCP/IP addresses can be troublesome. The administrator will have to manually give every machine an IP address and subnet mask, as well as additional information such as DNS and WINS server addresses. A lot of operator errors can occur and TCP/IP information can be difficult to manage.

Use the buttons below to navigate through the lesson

The Dynamic Host Configuration Protocol (DHCP) service in Windows 2008 can be used to configure TCP/IP information on the network reliably. DHCP automatically assigns IP addresses, and DNS and WINS configuration settings.

DHCP supports both the BOOTP and DHCP protocol. The Bootstrap protocol (BOOTP) is an older host configuration protocol developed before DHCP. Because the BOOTP protocol works similarly to the DHCP protocol, a Windows 2008 Server can supply IP address information to both DHCP and BOOTP clients. BOOTP was intended to configure diskless workstations with limited boot capabilities. It has fewer configuration options than DHCP.

The DHCP Process

When TCP/IP is first initialized during installation, the client is configured to use a DHCP server.  The DHCP server  will provide the client with an IP address and a subnet mask. DNS,WINS and gateway addresses can also be given out. The address is leased to the client for a specified amount of time or until the client shuts down. If a DHCP server is unavailable the client will use Automatic Private IP Addressing (APIPA). The client will assign itself an address between and All clients on the same subnet using APIPA will be able to see each other.

The Client boots up and requests an IP address. The client sends out a broadcast message on the network,known as a DHCP Discover message. The DHCP Discover packet is picked up by a DHCP Server.

Each DHCP server that receives the discover message responds with a DHCP Offer message. The message contains an IP address which the client can use.

The client computer receives the offer messages and selects one (usually the first one it receives) by sending a DHCP Request message with the IP address it wants.

The DHCP Server will then send an acknowledgement to the client, saying that the address has been leased to it. The client will then configure itself using the information.

DHCP Scopes

Once a DHCP server has been installed a DHCP scope will need to be configured. A DHCP scope contains a range of IP addresses that can be given out to clients on the network. The scope should never contain IP addresses that are already in use, e.g. The DHCP server’s own IP address or the address of a WINS/DNS server. A DHCP scope can also contain additional information such as the default gateway, DNS and WINS server addresses.

An IP address is leased to the client for a default period of eight days. The client will attempt to renew its lease well before the lease period is up. A computer will release its IP address when it is shutdown correctly, this enables the IP address to be used by another machine when not in use. The lease duration can be shortened. This is ideal for more dynamic networks, such as those which include mobile laptop users.