Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

IP Configuration · Windows Networking

Direct answer

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.

When to use this

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.

First 30 seconds

1. Get-NetIPConfiguration -Detailed.

2. DHCP or static: Get-NetIPInterface | Select InterfaceAlias,Dhcp.

3. DNS servers: Get-DnsClientServerAddress.

4. Gateway: Get-NetRoute -DestinationPrefix 0.0.0.0/0.

5. Fix with Set-NetIPAddress/Set-DnsClientServerAddress.

Operational verification

interface → address/prefix → gateway → DNS → metrics

Evidence · next step

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
Common mistakes
Common traps

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.

Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Key commandGet-NetIPConfiguration -Detailed
Scope / prerequisiteUse this topic when a host has the wrong address/gateway, multiple interfaces conflict, DHCP-derived and static values …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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
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:

TaskPowerShellLegacy
Show configGet-NetIPConfigurationipconfig /all
Renew DHCP—ipconfig /release + /renew
Flush DNS cacheClear-DnsClientCacheipconfig /flushdns
Register DNSRegister-DnsClientipconfig /registerdns
Set staticNew-NetIPAddressnetsh interface ip set address
Switch to DHCPSet-NetIPInterface -Dhcp Enablednetsh 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

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%
Terminology layer

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.

Aliases that resolve here
windows ip configurationwindows static ip settingswindows gateway settingswindows effective ip config
Embedded reference data

Quick lookup tables

Windows Networking → IP Configuration reference map

Fast lookup boundaries for Windows Networking → IP Configuration.

BoundaryMeaningEvidence limit
Address/prefixInterface identity and local prefixmust match intended network
GatewayDefault-route next hopnot used for every destination
DNS serversResolver targetsnot proof of resolution
SourceStatic/dynamic provenanceruntime may outlive source event
Effective stateCurrent stack configurationmust be tested end-to-end
Confirmation

Confirm action

Continue?