Use this topic when a host has the wrong address/gateway, multiple interfaces conflict, DHCP-derived and static values mix unexpectedly, or configuration shown in one UI differs from effective runtime state.
IP Configuration · Windows Networking
Windows IP Configuration is the effective per-interface addressing state: IPv4/IPv6 addresses and prefixes, gateways/routes, DNS-server assignments and whether values came from static configuration or dynamic mechanisms.
interface → address/prefix → gateway → DNS → metrics
Perform a destination-specific route lookup/neighbor check and protocol-specific test.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not copy a working host's IP blindly. Do not add multiple default gateways as a generic fix. Do not conflate DNS server configuration with IP forwarding.
Operational reference
Fast context before you go deeper.
Get-NetIPConfiguration -DetailedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Record before-state, make one scoped change, then re-query addresses/routes/DNS settings and verify a target flow. Preserve interface index to avoid comparing different adapters after changes.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Configured settings and effective runtime settings are separate evidence.
- Address, prefix and gateway must be evaluated together on the correct interface.
- Multiple addresses/default routes can be valid; route selection is destination-specific.
- DNS-server addresses are resolver configuration, not proof those servers respond correctly.
- Changing IP configuration can invalidate existing neighbor/routes/sessions and should be verified afterward.
ReferenceWhat it is1 section · depth on demand
Core model
Windows can derive addressing from multiple mechanisms and interfaces. Effective configuration is what the current stack uses, so troubleshooting starts by capturing that state before inspecting how it was provisioned.
ReferenceImportant terms & boundaries2 sections · depth on demand
Windows boundary
A correct-looking address is insufficient without prefix and route context. Likewise, a configured gateway is only relevant if a route lookup for the target actually selects the associated default route.
In depth
Windows IP configuration commands:
| Task | PowerShell | Legacy |
|---|---|---|
| Show config | Get-NetIPConfiguration | ipconfig /all |
| Renew DHCP | — | ipconfig /release + /renew |
| Flush DNS cache | Clear-DnsClientCache | ipconfig /flushdns |
| Register DNS | Register-DnsClient | ipconfig /registerdns |
| Set static | New-NetIPAddress | netsh interface ip set address |
| Switch to DHCP | Set-NetIPInterface -Dhcp Enabled | netsh interface ip set address "Ethernet" dhcp |
Remove an old static address before adding a new one (Remove-NetIPAddress, Remove-NetRoute for the gateway), or both stay active.
ReferenceConfiguration & state1 section · depth on demand
Configuration commands
Get-NetIPConfiguration -Detailed
Set-NetIPInterface -InterfaceAlias Ethernet -Dhcp Enabled
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ResetServerAddresses
ipconfig /release ; ipconfig /renew
ipconfig /registerdns
Documented example, not captured output. Check DNS suffix search list (Get-DnsClientGlobalSetting) and connection-specific suffix when short names do not resolve.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Networking → IP Configuration. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Windows Networking → IP Configuration reference map
Fast lookup boundaries for Windows Networking → IP Configuration.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Address/prefix | Interface identity and local prefix | must match intended network |
| Gateway | Default-route next hop | not used for every destination |
| DNS servers | Resolver targets | not proof of resolution |
| Source | Static/dynamic provenance | runtime may outlive source event |
| Effective state | Current stack configuration | must be tested end-to-end |