Skip to content

IPCONFIG Windows Command Guide

The Windows ipconfig command is a powerful tool used to display and manage network configurations. It can show information such as IP address, subnet mask, and default gateway. With ipconfig, users can renew or release IP addresses, flush DNS resolver cache, display detailed TCP/IP network information, and more. This command is essential for troubleshooting network connectivity issues and ensuring proper network setup.

IPCONFIG Syntax:

Terminal window
ipconfig [/? | /all | /renew [adapter] | /release [adapter] | /flushdns | /displaydns | /registerdns | /showclassid adapter | /setclassid adapter [classid] | /showclassid6 adapter | /setclassid6 adapter [classid] ]

Options:

OptionDescription
/?Displays help
/allDisplays detailed configuration information for all interfaces
/renewRenews the IPv4 address(es) on the specified adapter
/releaseReleases the IPv4 address(es) on the specified adapter
/flushdnsPurges the DNS Resolver cache
/displaydnsDisplays the contents of the DNS Resolver cache
/registerdnsInitiates manual registration of the DNS names and IP addresses
/showclassidDisplays all the dhcp class IDs allowed for adapter
/setclassidModifies the dhcp class ID
/showclassid6Displays all the IPv6 dhcp class IDs allowed for adapter
/setclassid6Modifies the IPv6 dhcp class ID

Parameters:

ParameterDescription
adapterSpecifies the connection-specific DNS suffix to be registered.
classidUnique identifier to be associated with the class.

IPCONFIG Command Samples:

Display IP Configuration

Terminal window
ipconfig

Displays the IP configuration details for all network interfaces on the system.

Renew IP Address

Terminal window
ipconfig /renew

Renews the IP address for all network adapters.

Release IP Address

Terminal window
ipconfig /release

Releases the IP address for all network adapters.

Display Detailed IP Configuration

Terminal window
ipconfig /all

Displays detailed information about all network interfaces, including physical addresses, DHCP settings, and more.

Flush DNS Resolver Cache

Terminal window
ipconfig /flushdns

Clears the DNS resolver cache, which can help resolve DNS-related issues.

Display Only IPv4 Addresses

Terminal window
ipconfig /all | findstr IPv4

Filters the output to display only IPv4 addresses for all network interfaces.

Display Only IPv6 Addresses

Terminal window
ipconfig /all | findstr IPv6

Filters the output to display only IPv6 addresses for all network interfaces.

IPCONFIG FAQ:

How do I use ipconfig in Windows?

To use the ipconfig command in Windows, execute the following command:

Terminal window
ipconfig

What is the purpose of ipconfig /all?

The “ipconfig /all” command in Windows displays detailed configuration information for all interfaces, including physical and virtual adapters, DNS server information, and more.

Terminal window
ipconfig /all

How can I release my IP address using ipconfig?

To release the current IP address for a specific interface in Windows using ipconfig, run the following command:

Terminal window
ipconfig /release

How can I renew my IP address using ipconfig?

To renew the IP address for a specific interface in Windows using ipconfig, execute the following command:

Terminal window
ipconfig /renew

What does ipconfig /flushdns do in Windows?

The “ipconfig /flushdns” command in Windows clears and resets the DNS resolver cache, which can help in resolving DNS-related issues by discarding the existing cache.

Terminal window
ipconfig /flushdns

How do I display only the IP address using ipconfig?

To display only the IP address for all interfaces in Windows using ipconfig, you can use the following command:

Terminal window
ipconfig | findstr IPv4

Applications of the IPCONFIG Command

  • Display all current network configuration information
  • Release the current IPv4 address
  • Renew the IPv4 address
  • Display the DNS resolver cache
  • Flush and reset the DNS resolver cache
  • Display the NetBIOS over TCP/IP information
  • Display the IPv6 address configuration