ipconfig Command – Complete Reference (Windows)The ipconfig command is used to display and manage the IP configuration of Windows network interfaces.
ipconfig [options]
ipconfig Options (Windows)| Option | Description |
|---|---|
| (no option) | Display IP address, subnet mask, and default gateway |
/all |
Show detailed configuration for all adapters |
/release |
Release current DHCP lease for all adapters |
/release <adapter> |
Release DHCP lease for specific adapter |
/renew |
Renew DHCP lease for all adapters |
/renew <adapter> |
Renew DHCP lease for specific adapter |
/flushdns |
Clear the DNS resolver cache |
/displaydns |
Show contents of DNS resolver cache |
/registerdns |
Refresh all DHCP leases and re-register DNS names |
/showclassid |
Show DHCP class IDs allowed for an adapter |
/setclassid |
Modify the DHCP class ID for an adapter |
⚠️ Adapter names are often quoted, e.g.,
"Ethernet"or"Wi-Fi".
ipconfig
ipconfig /all
Includes:
ipconfig /release
ipconfig /renew
Used to fix connectivity issues with dynamic IP addresses.
ipconfig /flushdns
Fixes name resolution issues by clearing old or corrupted DNS entries.
ipconfig /displaydns
Lists DNS records stored locally.
ipconfig /registerdns
Useful in domain environments to update DNS names.
ipconfig /setclassid "Ethernet" TEST123
Assigns a DHCP class ID (advanced, rarely used).
| Task | Command |
|---|---|
| Basic IP info | ipconfig |
| Detailed IP + MAC info | ipconfig /all |
| Release DHCP IP | ipconfig /release |
| Renew DHCP IP | ipconfig /renew |
| Flush DNS cache | ipconfig /flushdns |
| Display DNS cache | ipconfig /displaydns |
| Force DNS re-registration | ipconfig /registerdns |
ipconfig is a powerful and essential command-line tool in Windows for managing IP settings, DNS issues, and DHCP leases. It is widely used in daily networking troubleshooting and system administration tasks.