Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

IP Configuration

Direct answer

IP configuration on Windows sets each interface's address, mask, gateway and DNS servers, via DHCP or statically. Check it with ipconfig /all or Get-NetIPConfiguration and change it with netsh or New-NetIPAddress.

When to use this

Use this when a Windows machine has no or wrong IP settings, gateway or DNS servers.

First 30 seconds

1. Get-NetIPConfiguration.

2. DHCP vs static per interface.

3. DNS servers correct.

4. Interface metric when several NICs.

5. Renew/apply and test.

Operational verification

interface → address source → gateway → DNS → metric

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Two NICs with default gateways on different networks, causing asymmetric routing.
  • Static IP inside the DHCP scope, giving address conflicts.
  • APIPA address (169.254.x.x) mistaken for a configured one — it means DHCP failed.
  • DNS set to public resolvers on domain members, breaking AD lookups.
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 · Windows / PowerShell · Windows / Windows Server / PowerShell
Key commandipconfig
Scope / prerequisiteUse this when a Windows machine has no or wrong IP settings, gateway or DNS servers.
Configure · 1Verify · 2Reference · 1
What next?3 suggested next steps
Child topics (this level)5
Catalog command links4
Evidence0
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

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 Checks Verify boundary
ipconfig /all
Get-NetIPConfiguration -Detailed
Test-NetConnection 10.0.0.1
Resolve-DnsName dc01.corp.local

Check address, mask, gateway, DNS servers and DHCP lease; then test gateway, DNS and the target in that order.

Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • 169.254.x.x means DHCP failed.
  • Only one default gateway per machine normally.
  • Static settings override DHCP.
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
  • Get-NetIPInterface | Select InterfaceAlias,AddressFamily,Dhcp,InterfaceMetric — DHCP state and metric per interface
ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Choosing between DHCP and static addressing on Windows:

UseRecommendation
ClientsDHCP
ServersStatic, or DHCP reservations managed centrally
Domain controllers, DNS, DHCP serversStatic
Cluster nodes, storage NICsStatic, no gateway/DNS registration on non-management NICs

Document addresses in IPAM (Windows Server IPAM, NetBox) and disable "Register this connection's addresses in DNS" on non-management interfaces to avoid clients resolving servers to unreachable storage IPs.

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

Commands

ipconfig /all                         # addresses, gateway, DNS, DHCP lease
Get-NetIPConfiguration                # same in PowerShell
Get-NetIPAddress -AddressFamily IPv4
ipconfig /release ; ipconfig /renew   # new DHCP lease
ipconfig /flushdns

An address 169.254.x.x (APIPA) means DHCP did not answer. Check the link, the VLAN and the DHCP relay.

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 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%
Confirmation

Confirm action

Continue?