Home > Common Problem > body text

What does the ipconfig command do?

青灯夜游
Release: 2023-03-01 19:29:17
Original
26705 people have browsed it

The role of the ipconfig command: display all current TCP/IP network configuration values, and refresh the Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings; this command can help users check the network status and view Numerous network information, such as delay, IP, host information, physical address information, etc. Without parameters, ipconfig displays the Internet Protocol version, IPv4 and IPv6 addresses, subnet mask, and default gateway for all adapters.

What does the ipconfig command do?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

The ipconfig command is a command in the DOS system. It can help users check the network status and see many network information you want to see, such as delay, IP, host information, physical address information, etc.

The role of the ipconfig command:

Display all current TCP/IP network configuration values ​​and refresh the Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings . Without parameters, ipconfig displays Internet Protocol version 4 (IPv4) and IPv6 addresses, subnet masks, and default gateways for all adapters.

Syntax:

ipconfig [/allcompartments] [/all] [/renew [<adapter>]] [/release [<adapter>]] [/renew6[<adapter>]] [/release6 [<adapter>]] [/flushdns] [/displaydns] [/registerdns] [/showclassid <adapter>] [/setclassid <adapter> [<classID>]]
Copy after login

Parameters:

##/allDisplay all adapters Complete TCP/IP configuration. Adapter can represent a physical interface (such as an installed network adapter) or a logical interface (such as a dial-up connection). /displaydnsDisplays the contents of the DNS client resolver cache, which includes preloaded entries from the local Hosts file, as well as the most recently obtained name queries for computer resolution. Any resource records. The DNS Client service uses this information to quickly resolve frequently queried names before querying its configured DNS servers. /flushdns Flush and reset the contents of the DNS client resolver cache. During DNS troubleshooting, you can use this procedure to discard negative cache entries in the cache, as well as any other entries that have been added dynamically. /registerdnsInitiates manual dynamic registration for the DNS name and IP address configured on the computer. You can use this parameter to troubleshoot failed DNS name registrations or to resolve dynamic update issues between the client and the DNS server without restarting the client computer. The DNS settings in the advanced properties of the TCP/IP protocol determine the names that are registered in DNS. /releaseSends a DHCPRELEASE message to the DHCP server to release the current DHCP configuration, and if not) specified Adapter discards the IP address configuration for all adapters (or, if the adapter parameter is included, the IP address configuration for a specific /release6[] adapter is discarded. ## Address configuration. This parameter disables TCP/IP for adapters configured to obtain an IP address automatically. To specify an adapter name, type the adapter name that appears when using /Update[] adapter. This parameter is available only on computers that have adapters configured to obtain IP addresses automatically. To specify an adapter name, type the []ipconfig[ ]AdapterAdapterDisplay help in the command prompt.
Parameters Description
[] adapter). This parameter disables TCP/IP for adapters that are configured to automatically obtain an IP address. To specify Adapter name, type the adapter name that appears when using ipconfig without parameters.
Send a DHCPRELEASE message to the DHCPv6 server to release the current DHCP configuration. If no adapter is specified, the IPv6 address configuration of all adapters is discarded. If the adapter parameter is included, the IPv6 of the specific ipconfig without parameters.
Renew (DHCP configuration for all adapters if no adapter is specified); if adapter parameters are included , renew the DHCP configuration for a specific The adapter name displayed when #ipconfig.##/renew6
If no adapter is specified) Renew the DHCPv6 configuration for all adapters; if the adapter parameter is included, renews the DHCPv6 configuration for a specific Adapter. This parameter is available only on computers with adapters configured to obtain IPv6 addresses automatically. To specify Adapter name, type the adapter name that appears when using without parameters. /setclassid
Configure the DHCP class ID for the specified adapter. To set the DHCP class ID for all adapters, use the asterisk (*) wildcard character in place of . This parameter is available only on computers with adapters configured to obtain IP addresses automatically. If no DHCP class ID is specified, the current class ID is deleted. /showclassid
Display the DHCP class ID of the specified adapter. To view the DHCP class IDs for all adapters, use the asterisk (*) wildcard character in place of . This parameter is available only on computers with adapters configured to obtain IP addresses automatically. /?

Note:

  • This command is most useful on computers configured to obtain an IP address automatically. This enables the user to determine which TCP/IP configuration values ​​are configured for DHCP, Automatic Private IP Addressing (APIPA), or alternate configurations.

  • If the name provided for adapter contains any spaces, use quotation marks around the adapter name (for example, "adapter name").

  • For adapter names, ipconfig supports the use of the asterisk (*) wildcard character to specify adapters whose names begin with the specified string or have adapters with names that contain the specified string. For example, Local* matches all adapters that begin with the string Local, and *Con* matches all adapters that contain the string Con.

Example of using the ipconfig command

Press the win R key on our computer, open Run, enter cmd, click OK, and enter the command Prompt, as shown below:

What does the ipconfig command do?

After entering the command prompt, we enter ipconfig and press Enter to check the computer’s IP address. , as shown in the figure below:

What does the ipconfig command do?

Enter the ipconfig /all command and press Enter to view the computer’s IP address, mac address, and other network cards Information, as shown below:

What does the ipconfig command do?

Enter the ipconfig /release command and press the Enter key to release the computer’s IP address. At this time, the computer will be disconnected. After a while, the IP address will be automatically reacquired, as shown in the following figure:

What does the ipconfig command do?

Enter the ipconfig /renew command and press the Enter key to reset Obtain the IP address, as shown in the figure below:

What does the ipconfig command do?

Enter the ipconfig /flushdns command and press Enter to refresh the DNS cache, as shown in the figure below Indication:

What does the ipconfig command do?

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What does the ipconfig command do?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template