Pcornel
Windows · DHCP Server

DHCP Relay

Cheat sheet · https://pcornel.dk/topic.php?topic=3309

Back to the Topic

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 state
  • Get-DhcpServerv4ScopeStatistics — use per scope
  • Get-DhcpServerv4Lease -ScopeId <id> — leases
  • Get-DhcpServerInDC — authorised DHCP servers
  • Get-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

BoundaryMeaningEvidence limit
Client broadcastLocal request existsNo relay proof
Relay forwardServer receives remote requestNo scope proof
Scope selectionCorrect remote scope chosenNo return-path proof
ACK at clientEnd-to-end transaction completesNo 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

Confirmation

Confirm action

Continue?