what command can be used on a windows pc to see the ip configuration of that computer
The ipconfig (curt for IP Configuration) is a basic, notwithstanding popular, Windows network command-line utility used to brandish the TCP/IP network configuration of a computer. If you lot are familiar with Linux, this tool is similiar to ifconfig. This tool is often used for troubleshooting network connectivity issues. With ipconfig, you can identify the types of network adapaters on your computer, the estimator's IP accost, the IP addresses of the DNS (Domain Name Arrangement) servers being used, and much more.
These commands shown here are tested on a comptuer with Windows 10 but most will work in other versions of Windows too.
Table of Content
- Overview
- How to Launch Command Prompt
- Ipconfig Syntax
- Ipconfig Parameters
- Example Usage
- ipconfig - Retrieves Basic TCP/IP Network Information (IP, subnet mask, gateway)
- ipconfig /all - Retrieves All TCP/IP Network Information (MAC address, adapter description, DHCP details)
- ipconfig /release - Releases the IPv4 Address of All Network Adapters
- ipconfig /release6 - Releases the IPv6 Address of All Network Adapters
- ipconfig /release <adapter> - Releases the IP Address of a Specific Network Adapter
- ipconfig /renew - Get a New IPv4 Address for All Network Adapters
- ipconfig /renew6 - Become a New IPv6 Address for All Network Adapters
- ipconfig /renew <adapter> - Get a New IPv4 Address for a Specific Network Adapter
- ipconfig /displaydns - View DNS Cache
- ipconfig /flushdns - Purge DNS Cache
- ipconfig /all | findstr /v 00-00-00 | findstr Physical - Display MAC Address of But Concrete Continued Network Adapters
- Other Usages and Getting Help
- Tips
- Redirect Output to Text File
- Recommended Reading
- Summary
Overview
The ipconfig is a Windows command-line utility used frequently to troubleshooting computer network issues. If you are a Linux user, this utility is like to ifconfig. This is ofttimes used to determine the local IP address, subnet mask, the gateway accost, and other network configuration of a figurer. Additionally, this tool is used to refresh DHCP (Dynamic Host Configuration Protocol) and DNS (Domain Name Arrangement) settings
While most of the information provided by the ipconfig command-line utility tin exist found via a more user-friendly graphical interface, sometimes that interface may not be available and control prompt is your only available option. If yous are a assistance desk technician or a network professional, information technology is recommended that you understand the command-line method of retrieving a calculator'due south network configuration, and it some cases, performing network functions.
How to Open Command Prompt
To use this utility, you volition demand to launch the Command Prompt window. The three common ways to launch the Command Prompt window are:
- Search for
cmd
using the built-in Windows search tool. - Right-click on the Beginning icon and select Command Prompt.
- Press the keyboard combination WinKey + R , then blazon
cmd
at the Run window that appears.
Ipconfig Syntax
ipconfig [/allcompartments] [/all] [/renew [<Adapter>]] [/release [<Adapter>]] [/renew6[<Adapter>]] [/release6 [<Adapter>]] [/flushdns] [/displaydns] [/registerdns] [/showclassid <Adapter>] [/setclassid <Adapter> [<ClassID>]]>
Ipconfig Parameters
Parameter | Clarification |
---|---|
/all | Brandish the total TCP/IP configuration information for all network adapters. |
/release | Release the IPv4 address for the specified adapter. |
/release6 | Release the IPv6 address for the specified adapter. |
/renew | Renew the IPv4 accost for the specified adapter. |
/renew6 | Renew the IPv6 address for the specified adapter. |
/flushdns | Purges the DNS Resolver enshroud. |
/registerdns | Refreshes all DHCP leases and re-registers DNS names. |
/displaydns | Brandish the contents of the DNS Resolver Cache. |
/showclassid | Displays all the DHCP grade IDs allowed for adapter. |
/setclassid | Modifies the DHCP class ID. |
/showclassid6 | Displays all the IPv6 DHCP class IDs allowed for adapter. |
/setclassid6 | Modifies the IPv6 DHCP form ID. |
/? | Displays help data. |
Example Usage
There are a variety of switches (sub commands) available with the ipconfig utility that volition either display sure information or perform certain network functions. At the most basic, the ipconfig displays a estimator's IP accost, subnet mask and the default gateway (which is typically the IP address of your router or network firewall).
ipconfig - Recall Basic TCP/IP Network Information
To get basic network data from your computer, type the following in the command window then press Enter: ipconfig
The screenshot instance below is the ipconfig output of a particular computer. The output of your ipconfig result will differ depending on your network setup and the type of network adapters installed on your computer. In our screenshot instance, it shows the following basic networking information well-nigh the figurer from which ipconfig was ran.
- IPv4 address: 192.168.0.98
- Network subnet mask: 255.255.255.0
- Default Gateway: 192.168.0.1
Please note that unless your computer is continued direct to the Net (this is rare), the IP address reported past ipconfig will exist your local network IP, not your public external IP address.
While other network details tin can be retrieved by the ipconfig utility, for most network troubleshooting, this is what is typically needed.
ipconfig /all - Retrieve All TCP/IP Network Information
Another useful switch with ipconfig is to take it report all TCP/IP network details for all network adapters on a computer. This is accomplished by using the /all
switch. This switch provides you with the same bones data as ipconfig described above, simply with a lot more item. To retrieve all network information about your computer, type the post-obit in the command window then press Enter: ipconfig /all
This volition show a detailed report of various network details for the computer. Over again, your report will differ depending on your network setup and the network adapters installed on your computer. This study includes information such equally:
- Make and model of your network adapter(s)
- Physical address (also known as the MAC address or hardware accost) of your adapter(s)
- Whether your IP address is leased (i.east., DHCP issued or statically assigned)
- If IP address is leased, what the lease expiration and the DHCP that leased it
- DNS servers
Equally you can see, ipconfig /all
provides you with a plethora of details about your reckoner network setup.
ipconfig /release - Releases the IPv4 Accost of All Network Adapters
The /release
switch will cause ipconfig to get through the network adapters you have and drib the dynamically issued IPv4 address by sending a DHCPRELEASE message to the DHCP server. For the majority of the time, you would follow this command with ipconfig /renew
(described below) volition crusade your network adapters to reach out to your DHCP server for an IP address (it tin be a new IP address or the same IP y'all had prior to when you performed the /release
command). For most, executing this control does not take adverse effect on your computer.
To release your IP address from your computer, type the following in the command window and then press Enter: ipconfig /release
Notation, if you take a statically assigned (manually assigned) IP address, this control volition not release information technology. See example ipconfig /renew for related information.
ipconfig /release6 - Releases the IPv6 Address of All Network Adapters
The command is like to ipconfig /release except it renews the IPv6 address on the adapters.
ipconfig /release <adapter> - Releases the IPv4 Accost for a Specific Network Adapters
The /release <adapter>
switch volition cause ipconfig to drop the dynamically issued IPv4 address by sending a DHCPRELEASE message to the DHCP server for a specific network adapter.
To release the IP accost for a specific network adapter on your computer named "Local Surface area Connexion 3", type the post-obit in the command window then press Enter: ipconfig /release "Local Area Connexion 3"
Notation, if you have a statically assigned (manually assigned) IP address, this control will not release information technology. Run into instance for ipconfig /renew for related data.
ipconfig /renew - Go a New IPv4 Accost for All Network Adapters
The ipconfig /renew
volition crusade your computer to reach out to your DHCP server for an IPv4 address if information technology doesn't already have one or renews an existing ane for all network adapters. Depending on how your DHCP server is configured or the pool of available addresses, the IP address you volition receive can be one you had previously or information technology tin be a new IP address. In one case you execute this command, information technology volition typically have just seconds for a DHCP to assign your computer with an IP address. In the illustration beneath, the IP address assigned to this computer is 192.168.226.132.
To renew the IP address of your computer, type the following in the command window so press Enter: ipconfig /renew
See example for ipconfig /release for related information.
ipconfig /renew6 - Go a New IPv6 Address for All Network Adapters
The command is like to ipconfig /renew except it renews the IPv6 address on the adapters.
ipconfig /renew <adapter> - Get a New IPv4 Address For a Specific Network Adapter
The ipconfig /renew <adapter>
will cause your computer to reach out to your DHCP server for an IPv4 accost if information technology doesn't already have one or renews an existing ane for a specific network adapter. Depending on how your DHCP server is configured or the puddle of available addresses, the IP address yous will receive can exist one you had previously or it can be a new IP address. One time y'all execute this command, it will typically take simply seconds for a DHCP to assign your calculator with an IP address. In the analogy below, the IP accost assigned to the network adapter named "Local Area Connection 3" is 192.168.226.132.
To renew the IP accost for a network adapter on your computer named "Local Area Connection 3", type the following in the command window so press Enter: ipconfig /renew "Local Area Connectedness 3"
. To detect out the proper noun(s) of the network adapters on your figurer, type the following in the control window then printing Enter: ipconfig
See example for ipconfig /release for related information.
ipconfig /all | findstr /v 00-00-00 | findstr Physical - Display MAC Accost of Simply Concrete Connected Network Adapters
The ipconfig utility, with the /all
switch, is often used to find the MAC address (the half dozen-byte 'burned-in' concrete/hardware address) of network adapters. While this does the job, the output shows a plethora of data equally mentioned above. If you accept multiple adapters, the output can be lengthy making it cumbersome to find what you lot are looking for.
The Windows findstr utility is used to search for patterns of text. By feeding the output of ipconfig /all
into findstr
, nosotros tin significantly reduce the clutter and have the output show only the MAC address of physical network adapters. To accomplish this, type the following in the command window then printing Enter:
ipconfig /all | findstr /v 00-00-00 | findstr Physical
This command is actually a serial of 3 commands, namely:
-
ipconfig /all
-
findstr /five 00-00-00
-
findstr Concrete
The vertical bar (|), more than unremarkably referred to every bit the pipe, is a 'command' that takes the output from the left side of the pipe and feeds it every bit input to the command on the correct, bypassing the estimator screen.
As the higher up command shows, the output of ipconfig /all
is funneled into the command findstr /v 00-00-00
as its input. The findstr
with the /v
switch volition wait for lines of text in the output of ipconfig /all
that does non contain 00-00-00. What this does is exclude any network adapters that are disabled or not connected. These network adapters will take MAC accost that starts with 00-00-00.
The result from the kickoff findstr will yet incorporate a lot of information that we can further filter out, such equally DHCP lease data. To further reduce ataxia to ultimately end upwardly with an output that lists only MAC accost of concrete adapters, we volition demand to funneled the output of the commencement findstr into a 2d findstr control. This 2d findster volition filter out every line of text except those that has the give-and-take Physical.
This series of commands produce an output that is curtailed to show only the MAC address of connected network adapters. As the analogy below shows, this is a much more than easier study to read as oppose to using but using ipconfig /all
.
ipconfig /displaydns - View DNS Cache
When you visit a website using it'due south domain proper noun (e.chiliad., www.meridianoutpost.com), your computer will need to know the IP accost for that website in order for it to detect it the server hosting it on the Internet. The process of identifying the IP address is called DNS lookup (analogous to looking up a number in a phone book). Once your computer learns the associated IP address for the website y'all want to visit, it volition cache it (store it) on your computer. The purpose of caching it is to meliorate performance by not having your computer perform a DNS lookup each time you access a spider web page on the website.
This command will list all the currently cached IP addresses on your computer (also referred to equally the DNS resolver cache). If you lot've accessed a lot of websites since turning on your computer, this listing tin be very lengthy. The illustration below shows but a few entries out of many for a particular computer. If you merely turned on our computer and take not access websites or servers on the network on the Internet, then y'all list will only show a "localhost" setting in your local hosts file.
To display cached DNS entries on your computer, type the following in the command window so press Enter: ipconfig /displaydns
This command is typically used to troubleshoot specific DNS lookup issues. See example for ipconfig /flushdns for related data.
The information displayed on the list include:
- Record Name: the proper name of the website or server that a DNS lookup was performed on
- Tape Type:
- one = A
- 2 = NS (indicates the entry is a name server)
- 5 = CNAME (stands for canonical name and is a blazon of record that maps an alias name to a true domain proper name)
- xv = MX (indicates the entry is an email server)
- Fourth dimension to Live: the time (in seconds) before this cache entry expires (tin be as short as a few minutes to a few days)
- Data Length: the length (in bytes)
- 8 Bytes = IPv4 address
- sixteen Bytes = IPv6 address
ipconfig /flushdns - Purge DNS Enshroud
This control volition purge the buried DNS entries on your calculator. Yous would typically exercise this to troubleshoot DNS related problems. An example of this is when you attempt to access a website but you encounter an fault message stating the website is not found. For about people, executing this command does non have agin effect on your computer. Meet example for ipconfig /displaydns for related information.
To delete all the cached DNS entries on your computer, type the following in the command window and so press Enter: ipconfig /flushdns
Other Usages and Getting Help
The instance usage described in the commodity shows simply some of the functions bachelor with ipconfig. To get a list of the available switches, type the post-obit in the command window then press Enter: ipconfig /?
Tips
Redirect Output to Text File
- Instead of displaying the results on the screen, you tin can have the results saved automatically to a text file on your reckoner. To do this, just utilise the ">" symbol followed by the folder path and file name of your choice. For instance, to redirect the output of ipconfig /renew, type the following in the command window then press Enter:
ipconfig /renew > c:\temp\ipconfig-results.txt
This will create a file named ipconfig-results.txt in the binder path c:\temp that will have your result. You can and so open this file with any text editor, such every bit Notepad on a Windows reckoner, every bit illustrated below.
Recommended Reading
Amend confidence and chore performance
Improve productivity and efficiency
Learn more,
earn more
Life-long
investment
To learn more almost this topic, nosotros are providing you lot with recommendations to help you further your cognition. These are our affiliate links to Amazon where you can purchase them and too explore a diverseness of other relevant books.
Summary
The ipconfig utility can provide a wealth of information for troubleshooting network issues. This utility is a valuable resource for computers that obtains an IP address automatically. If you are helpdesk technician, network administrator, or organisation ambassador, this is a great utlity to become familiar with.
vandivervaust1965.blogspot.com
Source: https://www.meridianoutpost.com/resources/articles/command-line/ipconfig.php
0 Response to "what command can be used on a windows pc to see the ip configuration of that computer"
Enregistrer un commentaire