Assigning IPs with DHCP

Ch. 4 of 515 mins4 Tasks

Configure an office DHCP server, manage address pools, and automatically deliver IP settings to new workstations.

Track Series

Chapters in this Track (Ch. 4 of 5)

4Assigning IPs with DHCP
15m

In modern office networks, assigning network settings automatically is about much more than just handing out an IP address. A company DHCP server acts as the central setup engine for every computer. The moment an employee plugs in their network cable or turns on their laptop, DHCP delivers a complete package in one second: a unique IP address, the subnet boundary, the default gateway router, and the local DNS servers.

Learning how network administrators configure a DHCP Pool, protect Reserved Addresses for printers and servers, and manage leases is a fundamental skill for everyday IT operations.

Parts of an Office DHCP Setup

A DHCP setup groups together several key network settings for a single office subnet. A well-designed setup includes four core parts:

  1. Subnet and Mask: Defines the local office network boundary (such as 192.168.1.0 with mask 255.255.255.0).
  2. Available Pool Range: The group of addresses open for automatic lease to laptops and phones (for example, 192.168.1.100 to 192.168.1.200).
  3. Excluded Addresses (Static Range): Addresses kept aside for devices that must never change their IP—such as routers, switches, servers, and network printers (e.g., 192.168.1.1 to 192.168.1.99). The DHCP server will never give these addresses to normal workstations.
  4. Network Options: Extra settings packed into the final confirmation message:
    • Router (Option 3): The Default Gateway address (e.g., 192.168.1.1) so workstations can reach outside websites.
    • DNS Server (Option 6): The office DNS address (e.g., 192.168.1.53) so computers can look up names.
    • Domain Name (Option 15): The local office domain name (e.g., corp.local).
Setting Example Value Why It Matters
Address Pool 192.168.1.100 to 192.168.1.150 Provides 51 automatic addresses for laptops and desktop PCs.
Subnet Mask 255.255.255.0 Tells client computers which peers are local.
Default Gateway 192.168.1.1 The router port used to visit outside websites.
Local DNS Server 192.168.1.53 The server that answers name lookups for internal sites.

When creating a DHCP setup, network engineers always reserve a buffer of unallocated addresses. If an office has 30 employees, creating a pool of 50 addresses gives breathing room for visitors, mobile phones, and new hardware without running out of capacity during busy company meetings.

How Leases Expire and Renew

When your computer gets an IP from DHCP, it does not own that address forever. It receives a Lease with a countdown timer. In office environments, lease times often last 8 hours to 24 hours.

When half of the lease time passes (at the 50% mark), your computer automatically sends a polite message to the DHCP server asking to renew its lease. The server grants the renewal, and your connection continues without any pause. If an employee turns off their computer and leaves for vacation, the lease eventually expires, and the server returns that IP address to the pool for someone else to use.

Field Incident: IP Address Clashes

What happens if someone ignores the network rules and manually configures their laptop with 192.168.1.105, while that same address is inside the active DHCP pool? Soon, the DHCP server leases 192.168.1.105 to another workstation. Now two computers have the exact same IP address.

This creates an IP Conflict: both computers will experience dropped connections as the local switch constantly flips between two network ports. By reserving fixed addresses outside the pool, network engineers prevent IP conflicts entirely.

Multi-Client State Tracking and Lease Table

When multiple computers connect simultaneously, the DHCP server maintains an active Lease Database. When Workstation PC-1 completes its DORA handshake, the server records: "MAC 00:1B:44:AA:BB:CC holds lease for 192.168.1.100".

When PC-2 immediately boots and transmits its own discovery message, the server inspects the lease table, recognizes that .100 is currently occupied, and safely offers the next available address: 192.168.1.101. This stateful coordination prevents IP collisions and ensures every connected computer receives an isolated, valid network identity.

The Bridge to Centralized File Storage

Now all computers in the building receive their network settings automatically, resolve names through DNS, and browse the company intranet. But employees also need a reliable way to save large project files, share documents, and back up network configs.

In our next chapter, we will see how the File Transfer Protocol (FTP) provides fast, dedicated network storage. You will connect to an enterprise storage server, log in with credentials, and exchange files across the local network.

Hands-On Practice Checklist

Progress:0 / 4

Perform actions on the practice lab canvas on the right. Tasks automatically check off as you connect cables and run commands.

Task 1: Inspect DHCP Scope on Server

Click Central Server, open Services tab, select DHCP, and review the Pool Start (192.168.1.100), Gateway (192.168.1.1), and DNS Server settings.

Task 2: Obtain Dynamic Lease on PC-1

Click Workstation PC-1, go to Config tab, choose "DHCP Client (Auto)", and click "Request DHCP". Confirm it receives 192.168.1.100.

Task 3: Obtain Dynamic Lease on PC-2

Click Workstation PC-2, go to Config tab, select "DHCP Client (Auto)", and click "Request DHCP". Confirm it receives the next available IP (192.168.1.101).

Task 4: Ping Between Dynamically Configured Workstations

Open PC-1 Terminal and run "ping 192.168.1.101" to verify that both workstations can communicate effortlessly across the switch using dynamic IPs.