DHCP Server
Cheat sheet · https://pcornel.dk/topic.php?topic=374
Answer
Windows DHCP Server is the Windows Server role that dynamically leases IPv4/IPv6 configuration and options to clients, with Windows-specific scope, authorization, failover and DNS-update integration.
Remember
- Service running ≠ authorized/usable in a domain environment.
- Scope active ≠ addresses available.
- Lease issued ≠ client has correct gateway/DNS/application connectivity.
- DHCP failover protects DHCPv4 lease service between two partners; it is not generic clustering and does not cover DHCPv6.
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
Verify in this order
DISCOVER (relay) → scope by giaddr → OFFER → REQUEST → ACK
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 evidence chain
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | Get-DhcpServerv4Scope | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | computer/domain context → effective policy/configuration → role/service → dependency/replication/network → event evidence → user/service outcome | application success |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=374