Troubleshooting Network Issues with ipconfig
What ipconfig does
ipconfig displays and manages a computer’s IP configuration on Windows. It shows IP address, subnet mask, default gateway, DNS servers, and lets you release/renew DHCP leases and flush DNS resolver cache.
Common ipconfig commands
- ipconfig /all — Full configuration (MAC, DHCP status, DNS servers).
- ipconfig — Brief summary (IPv4/IPv6, gateway).
- ipconfig /release — Drop current DHCP lease(s) for active adapters.
- ipconfig /renew — Request a new DHCP lease.
- ipconfig /flushdns — Clear Windows DNS resolver cache.
- ipconfig /displaydns — Show contents of DNS resolver cache.
Step-by-step troubleshooting checklist
-
Check basic config
- Run:
ipconfig - Look for a valid IPv4 address (not 169.254.x.x), correct subnet mask, and gateway.
- If IPv4 shows 169.254.x.x → DHCP failed.
- Run:
-
Inspect detailed settings
- Run:
ipconfig /all - Verify DHCP Enabled, Lease Obtained/Expires, DNS servers, and adapter physical address.
- Run:
-
Reset DHCP lease
- Run:
ipconfig /releasethenipconfig /renew - Recheck
ipconfigto see if a valid IP was assigned.
- Run:
-
Fix DNS resolution problems
- Run:
ipconfig /flushdnsthenipconfig /displaydns(to confirm cache cleared). - If DNS servers look wrong or unreachable, set alternate DNS (e.g., 8.8.8.8) in adapter settings or via DHCP.
- Run:
-
When Wi‑Fi shows connected but no internet
- Check gateway is present and ping it:
ping. - If gateway unreachable, reboot router or check cabling.
- If gateway reachable, ping a public IP (e.g., 8.8.8.8). If that works but DNS names fail, DNS is the issue.
- Check gateway is present and ping it:
-
When Ethernet has no link
ipconfig /allto confirm media state.- Check NIC LEDs, cables, switch port, and driver status in Device Manager.
-
Advanced cleanups
- Reset Winsock:
netsh winsock reset - Reset TCP/IP stack:
netsh int ip reset - Reboot after running these commands.
- Reset Winsock:
Quick interpretations
- 169.254.x.x — APIPA address; DHCP server unreachable.
- No default gateway — No route to other subnets/internet.
- Missing DNS server — Name resolution failures even if ping by IP works.
- Long DHCP lease age / expired — DHCP issues; restart DHCP server or client.
When to escalate
- Multiple devices affected → likely router/DHCP server or ISP issue.
- Single device only → local NIC, driver, or OS configuration problem.
- Intermittent IP changes or conflicts → check for duplicate static IPs or rogue DHCP servers.
Example useful command sequence
Code
ipconfig /all ipconfig /release ipconfig /renew ipconfig /flushdns netsh winsock reset netsh int ip reset
If you want, I can provide command variations for PowerShell, macOS/Linux equivalents, or a short checklist formatted for printing.
Leave a Reply