DHCP Relay
Cheat sheet · https://pcornel.dk/topic.php?topic=3309
Answer
DHCP relay forwards client DHCP messages between subnets so a centralized Windows DHCP server can select and serve a scope for a remote client network.
Remember
- DHCP broadcasts do not cross routers without relay behavior.
- Relay configured ≠ relay packets reach the server.
- Server receiving a relayed request ≠ correct scope selected.
- Return path/firewall/ACL/helper configuration can break the transaction after discovery.
First checks
Get-DhcpServerv4Scope— scopes and stateGet-DhcpServerv4ScopeStatistics— use per scopeGet-DhcpServerv4Lease -ScopeId <id>— leasesGet-DhcpServerInDC— authorised DHCP serversGet-WinEvent -LogName Microsoft-Windows-DHCP-Server/Operational -MaxEvents 30— server events
Commands
ip helper-address
Verify in this order
broadcast → relay unicasts to server with giaddr → scope selected
Where it usually breaks
First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.
DHCP Server → DHCP Relay reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Client broadcast | Local request exists | No relay proof |
| Relay forward | Server receives remote request | No scope proof |
| Scope selection | Correct remote scope chosen | No return-path proof |
| ACK at client | End-to-end transaction completes | No downstream dependency proof |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3309