Common ipconfig Commands
ipconfig
: Displays basic information for the current network interfaces, including IP address, subnet mask, and default gateway. Useful for quickly checking network status.ipconfig /all
: Shows full network configuration details such as MAC address, DNS servers, and DHCP status. Useful for in-depth network diagnostics.ipconfig /release
: Releases the current DHCP-assigned IP address. Used to disconnect from the network or prepare to obtain a new IP.ipconfig /renew
: Requests a new IP address from the DHCP server. Often used to resolve IP conflicts or restore connectivity.ipconfig /flushdns
: Clears the local DNS cache, commonly used to fix domain name resolution errors or incorrect website access.
Usage Tips
If you encounter network connectivity issues, try running ipconfig /release
and ipconfig /renew
to get a new IP. For domain name resolution problems, use ipconfig /flushdns
to refresh the DNS cache.