DHCP relays and IPAM
One server, several subnets
A client broadcast is normally confined to its local IPv4 broadcast domain. A DHCP relay is an intermediary on or reachable from that link that forwards DHCP messages to a server across routed networks. In a common design the router interface for each client subnet acts as the relay. The central server selects the appropriate scope using relay information such as giaddr (gateway IP address field), subject to its configuration. The relay is not itself the allocator unless it also implements a server.
Trace the correct scope
In this paper topology, VLAN 10 and VLAN 20 use distinct /24 prefixes. Assume routing and DHCP relay policy allow the required traffic and return path. A request from VLAN 20 should result in an offer from its own pool, not VLAN 10. The central server needs a return route to the relay. No real router or DHCP daemon is started.
VLAN 10: 192.0.2.0/24 -> relay 192.0.2.1VLAN 20: 198.51.100.0/24 -> relay 198.51.100.1Server subnet: 203.0.113.0/24DHCP server: 203.0.113.10VLAN 20 offer: 198.51.100.20/24Count free addresses without double counting
Use a dynamic range from 198.51.100.20 through 198.51.100.29 inclusive (10 addresses). Four active leases, two addresses reserved for other clients and one excluded address are disjoint in this exercise. Three addresses are available to a new ordinary client. When every candidate is occupied or otherwise unavailable, the pool cannot grant another ordinary lease even though the subnet has many other addresses. Real lease states can include declined or temporarily held addresses; do not subtract a reservation twice if it is also leased.
Diagnose failures with inventory
IP address management (IPAM) records subnets, gateways, pools, exclusions, reservations, owners and observed allocations. Compare this inventory with current lease records and intended routes; IPAM is not itself proof of reachability or a live DHCP service. If no offer arrives, check link and VLAN, relay target, server reachability, available scope and logs. If a valid offer contains an unexpected gateway or DNS server, investigate the source and configuration before accepting it as trusted. DHCP snooping on supported switches can restrict server-originated messages to authorized paths, but needs reviewed trust boundaries and verification. Do not enable it on a live network for this lesson.
Reconcile an allocation sheet
For a pool of six addresses, the occupied set is {20,21,22}, reserved set {22,23}, excluded set {24}. The suffix 25 is the only free address. Use the union of the sets, not their summed sizes. Check whether each address belongs to the intended subnet. If an offer is missing despite free addresses, investigate the relay and return path before expanding the pool. Read RFC 2131 for relay-related selection. Next: DHCPv6 and SLAAC.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
DHCP relays and IPAM — knowledge check
Apply DHCP and address-management concepts to fictional scenarios.
Why is a DHCP relay useful between subnets?
A server receives a relayed request with giaddr 198.51.100.1. Which scope should the stated example use?
A ten-address pool has four leases, two other-client reservations and one exclusion, all disjoint. How many are available?
An active lease is also recorded as a reservation. How should the unavailable set be calculated?
There are free addresses but no offer reaches the client. What is the next sensible check?