ipconfig - Check IP Address
The ipconfig
command is one of the commands that can be used on the command prompt,
used to display details of network connections or to obtain a new IP address from DHCP.
Specific examples of use include checking how your PC is connected to the network, or troubleshooting network connection issues.
Additionally, using the ipconfig
command allows you to see what position your PC occupies on the network and what settings it is connected with.
For instance, information such as your PC’s IP address, subnet mask, and default gateway can be instantly obtained by using the ipconfig
command.
This article will thoroughly explain the basic to advanced usage of the ipconfig
command, as well as troubleshooting methods.
Basic Usage of the ipconfig
Command
The basic usage of the ipconfig
command is as follows.
ipconfig
You can run the command without specifying any options.
Here are more detailed usage instructions, though you may not often use options other than /all
.
ipconfig [/allcompartments] [/all] [/renew [<Adapter Name>]] [/release [<Adapter Name>]] [/renew6[<Adapter Name>]] [/release6 [<Adapter Name>]] [/flushdns] [/displaydns] [/registerdns] [/showclassid <Adapter Name>] [/setclassid <Adapter Name> [<Class ID>]]
Description of Each Option
The options for the ipconfig
command are as follows.
Option | Description |
---|---|
/allcompartments | Displays information for all compartments. |
/all | Displays all information. |
/renew | Renews the IP address for the specified adapter. |
/release | Releases the IP address for the specified adapter. |
/renew6 | Renews the IPv6 address for the specified adapter. |
/release6 | Releases the IPv6 address for the specified adapter. |
/flushdns | Clears the DNS client cache. |
/displaydns | Displays the DNS client cache. |
/registerdns | Refreshes the DNS client cache. |
/showclassid | Displays the DHCP class ID for the specified adapter. |
/setclassid | Sets the DHCP class ID for the specified adapter. |
ipconfig
Command Examples
First, let’s examine the most basic usage by executing the ipconfig
command on its own.
ipconfig
Executing the above command displays details of your network connections.
The output will vary depending on the PC’s environment, but you can expect to see information such as the following.