Troubleshooting Network Issues with IP-Config

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

  1. 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.
  2. Inspect detailed settings

    • Run: ipconfig /all
    • Verify DHCP Enabled, Lease Obtained/Expires, DNS servers, and adapter physical address.
  3. Reset DHCP lease

    • Run: ipconfig /release then ipconfig /renew
    • Recheck ipconfig to see if a valid IP was assigned.
  4. Fix DNS resolution problems

    • Run: ipconfig /flushdns then ipconfig /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.
  5. 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.
  6. When Ethernet has no link

    • ipconfig /all to confirm media state.
    • Check NIC LEDs, cables, switch port, and driver status in Device Manager.
  7. Advanced cleanups

    • Reset Winsock: netsh winsock reset
    • Reset TCP/IP stack: netsh int ip reset
    • Reboot after running these commands.

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.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *