Hello everyone, I am the "person" that the IT and engineering companies of Party A often call - a network expert of a communications manufacturer. Today I will share the commonly used network operation commands in CMD under Windows. Menu key + R, enter "CMD" to open the command window 1. PingCommand introduction: Detect network connectivity Basic usage: Enter "ping [target IP address/domain name]" in the command prompt, for example, "ping www.baidu.com", it will send ICMP packets to the target and return information such as response time to determine whether the target is reachable and the network status. 2. IPConfigCommand introduction: View IP configuration information Basic usage: Enter "ipconfig" in CMD to view the local IP address, subnet mask, default gateway and other network configuration information. If you add the "/all" parameter, such as "ipconfig /all", you can also get more detailed information, including MAC address, DNS server, etc. 3. GetmacCommand Introduction: Get MAC address Basic usage: Enter "getmac" in the command prompt to display the physical address (MAC address) of the local network adapter. If there are multiple network cards, all will be listed. 4. HostNameCommand introduction: View host name Basic usage: Enter "hostname" in CMD to display the host name of the current computer. 5. NSLookUpCommand introduction: query DNS information Basic usage: Enter "nslookup [domain name]" in the command prompt, for example, "nslookup www.google.com", to query the IP address corresponding to the domain name. It can also be used to query DNS server related information to help diagnose DNS related problems. 6. TracertCommand Introduction: Traceroute Basic usage: Enter "tracert [target IP address/domain name]" in CMD, such as "tracert 1.1.1.1", it will display all routing node information that the data packet passes through from the local computer to the target address, including the IP address and response time of each hop, which is used to troubleshoot network path failures. 7. NetstatCommand introduction: View network connections Basic usage: Enter "netstat" in the command prompt to view the current computer's network connection status, such as TCP, UDP connections, etc. Adding different parameters, such as "-a" (display all connections and listening ports) and "n" (display addresses and ports in digital form) can obtain more detailed information for understanding network activities and troubleshooting network security issues. 8. ArpCommand introduction: View ARP cache Basic usage: Enter "arp -a" in CMD to view the ARP (Address Resolution Protocol) cache table of the local computer, which displays the mapping relationship between IP addresses and MAC addresses, and helps solve network communication problems within the LAN. 9. PathPingCommand Introduction: Comprehensive Path Test Basic usage: Enter "pathping [target IP address/domain name]" in the command prompt, for example, "pathping www.microsoft.com". It combines the functions of "ping" and "tracert" to send data packets over a period of time to detect information such as packet loss rate in the network path, which is used to evaluate the quality of the network link. 10. SystemInfoCommand introduction: View system information Basic usage: Enter "systeminfo" in CMD to obtain detailed information about the computer, including operating system version, BIOS version, processor information, memory size, etc., for system management and troubleshooting. 11. NbtstatCommand Introduction: View NetBIOS information Basic usage: Enter "nbtstat -a [IP address/host name]" in the command prompt, for example, "nbtstat -a 192.168.0.1", to view the name table information based on NetBIOS (Network Basic Input/Output System), which is used to troubleshoot NetBIOS-related problems in the LAN. 12. NetshCommand Introduction: Network Configuration Tool Basic usage: "netsh" is a powerful command. For example, you can set the static IP address of the network interface by entering "netsh interface ip set address [interface name] static [IP address] [subnet mask] [gateway]". It can be used to configure network interfaces, firewalls, proxies and other network settings. The specific usage varies depending on the configuration task. |
>>: Online troubleshooting guide: The ultimate way to bring your server back to life
China Telecom has been making every effort to pop...
Classification of dynamic routing protocols Class...
1. The main responsibilities of TCP/IP protocol ●...
Friendhosting has launched a promotion titled New...
According to IDC's Global Ethernet Switch and...
The story of how home networks are as slow as a s...
A relevant person in charge of the Ministry of In...
At the end of October, the three major operators ...
Although Internet company stocks have skyrocketed...
[[334907]] Hu Kewen, President of Huawei's Da...
The blog has shared Vmiss discount information ma...
Hyperconverged systems are rapidly gaining popula...
Recently, New H3C Group, a subsidiary of Tsinghua...
Recently, GSA announced the latest progress of LT...
Today, many businesses realize that DDoS defense ...