Pcornel
Windows · IP Configuration

DHCP Client

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

Back to the Topic

Answer

The Windows DHCP client requests an address, mask, gateway, DNS servers and other options from a DHCP server and renews the lease. Use ipconfig /release and /renew; 169.254.x.x means no DHCP answer.

Remember

  • 169.254.x.x means no DHCP server answered.
  • ipconfig /renew tests the exchange again.
  • Scope options supply gateway and DNS.

First checks

  • Get-NetIPConfiguration — addresses, gateway and DNS per interface
  • Get-NetAdapter — adapters, status and link speed
  • Get-NetRoute -AddressFamily IPv4 — routes and metrics
  • Test-NetConnection <host> -Port <p> — ping, route and TCP port test
  • ipconfig /all — full IP configuration
  • Get-NetIPInterface | Select InterfaceAlias,AddressFamily,Dhcp,InterfaceMetric — DHCP state and metric per interface

Verify in this order

DISCOVER → OFFER → REQUEST → ACK → address, gateway, DNS

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.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3075

Confirmation

Confirm action

Continue?