Ping command Daquan
If you are a network administrator or an ordinary dial-up user, you may often encounter such a situation, that is, it may take a long time when accessing a website, or you can't access the required website. So we have consumed many valuable times. Then there is no way to save the time waiting for the time, maximize the efficiency of the Internet? The answer is of course affirmative. We know the reason for visiting a website to wait for a long time, that is because the user's computer and the line between the websites to be accessed may have the instability of traffic blocked, and even faults, if we can know the quality of the line in advance If you don't do it, you can do it, avoid this unstable situation, wait until the line status is in good condition, go to the needed website. See this, some sexual users will ask questions right away: Then how can you know how to know the quality of the line? To see the details, please see the following network test commands, understand and master them will help you use and maintain your network better:
One
Applicable environment: WIN95 / 98/2000 / NT
Use format: ping [-t] [-a] [-n count] [-l size]
Parameter introduction:
-t allows the user to send data to the target host
-a Displays the network address of the target host in the IP address format
-n count Specifies how many times to ping, specify by the rear count
-l size specifies the size of the packet sent to the target host
Main features: Test a frame data to transfer the time required to transfer to another host from a host to determine the primary response time.
Detailed introduction:
This command is mainly used to check if the route can be reached. Since the package is very small, the speed passed online is very fast, and it can quickly detect whether the site you want to go is, usually you are going to a certain site. You can run this command first to see if the site is up to. If you do not succeed, you can predict that the fault appears in the following aspects: the network cable is connected, the network adapter configuration is correct, whether the IP address is available; if the network is successful, the network is still not available, then the problem is likely to be in the network. In terms of software configuration of the system, ping success can only ensure that there is a physical path between the current host and the destination host. Its usage format is to type: ping IP address or host name at the command prompt, execute the result shows the response time, repeat this command, you can find that the response time of the ping report is different. After the specific ping command, you can also follow the multi-parameter, you can type in the back to the return, you will have a very detailed description.
for example:
When we want to access a site such as www.chinayancheng. Net, you can use the ping program to test how the current connection is currently connected. At the time of execution, on the Windows 9x system, click the Start button and select the run command, then enter the URL to ping and the user to test in the Run dialog, such as ping www.chinayan- Cheng.net, then the program will Send a 32-byte message to the primary server of the specified Web URL, then record the response time of the server. The PING program will display the results of 4 tests to the user. The response time is less than 300 milliseconds can be considered normal, and the time is more than 400 milliseconds. The "Request Time Out" message means that the URL does not respond within 1 second, indicating that the server does not respond to the configuration or the URL response is extremely slow. If you see 4 "Request Pause" information, the URL refuses the PING request. Because too many ping tests themselves generate bottlenecks, many web administrators do not allow the server to accept this test. If the URL is very busy or for other reasons, it is very slow, such as hardware power, the data channel is narrow, and it can be tried again for a while to determine the URL. If there is a problem with multiple tests, it can be considered that the user's host and the URL site are not connected, and the user should contact the Internet service provider or network administrator in time. 2.winipcfg
Applicable environment: WIN95 / 98/2000
Use format: Winipcfg [/?] [/ All]
Parameter introduction:
/? Display the format and parameters of WiniPCFG
/ ALL Displays all configuration information about IP addresses
Main function: Display configuration information for IP protocol inside the host where the user is located
Detailed introduction:
The WiniPCFG program uses the Windows window to display the specific configuration information of the IP protocol. If the winiPCFG command does not run directly with any parameters, the program will display the physical address of the network adapter, the IP address, subnet mask, and Default Gateway, etc., you can also view the host's information such as: host name, DNS server, node type, etc. The physical address of the network adapter is very useful when detecting network errors. Type WiniPCFG /? You can get the use of WiniPCFG, type WiniPCFG / ALL to get all properties of the IP configuration.
for example:
If we want to quickly understand the specific configuration of a host's IP protocol, you can use the WiniPCFG command to detect. The specific steps are as follows: In the "Run" dialog box, enter the WiniPCFG command directly, then press Enter key, we will see an interface. In this interface, we understand that the computer where the author is located is the 3COM type of network card. The physical address of the NIC is 00-60-08-07-95-14, the host's IP address is 210.73.140.13, subnet cover The code is 255.255.255.192, the address of the router is 210.73.140.1, if the user wants more detailed understanding of the other IP protocol configuration information of the host, such as the information of the DNS server, DHCP server, etc., you can directly click on the interface " Details "button.
3.Tracert
Applicable environment: WIN95 / 98/2000 / NT
Use format: Tracert [-d] [-h maximum_hops] [-j host_list] [-w timeout]
Parameter introduction:
-d does not resolve the name of the target host
-h maximum_hops Specifies the maximum number of jumps to search for target addresses
-j host_list follows the address release source routing in the host list
-w timeout specifies timeout intervals, the program default time unit is the main function of milliseconds: determine the path passed by the packet to the host, showing the relay node list of the data package and arrival time.
Detailed introduction:
This application is primarily used to display the path passed by the packet to the host. The usage format of this command is to type the following command at the DOS command prompt or in the Run dialog: Tracert host IP address or host name. Execution Result Returns the number of relay stations experienced by the destination host and display the time to each relay station. This feature is similar to the ping command, but what it sees is more detailed than the ping command, it will give you a request package you sent to a certain site, and all the routings taken will tell you, and through the route IP How much, how much is the delay of this IP. After the specific tracert command, you can also follow the multi-parameter. You can type tracert and return to the car, which will have a detailed description.
for example:
If you want to know more about the detailed transmission path information between your computer and the target host, you can use the tracert command to detect it. The specific steps are as follows: In the Run dialog box, enter the Tracert www.chinayancheng.net command directly, then click Enter key, we will see an interface; of course, everyone can also be in MS-DOS mode Enter the tracert www.chinayancheng.net command, you can also see the result screen. In this picture, we can track the path information connected to the target website www.chinayancheng.net, such as how many times in the middle, spend more time after a transfer station, through these time, us It can easily find out where the user between the user's host and the target website is in the case. If we add some parameters after the tracert command, we can also detect other more detailed information, such as using parameter -D, which can specify the program host's domain name when the program is tracked by the path information of the program.
4.NetStat
Applicable environment: WIN95 / 98/2000 / NT
Use format: NetStat [-r] [-s] [-n] [-a]
Parameter introduction:
-r Displays the content of this routing mark
-s Displays the status of each protocol (including TCP protocol, UDP protocol, IP protocol)
-n displays addresses and ports in digital table
-a Displays the port number of all hosts
Main features: This command allows users to understand how their host is connected to the Internet.
Detailed introduction:
The NetStat program helps us understand the overall use of the network. It can display details of the currently active network connection, such as displaying network connections, routing tables, and network interface information, allowing users to know what the current network connection is running. Can we use NetStat /? Command to see the format of this command and detailed parameter description, the usage format of this command is to type the following command in the DOS command prompt or in the Run dialog box: NetStat [parameter], using the parameters provided by the program We can understand other functional information of the command, such as displaying the statistics of the Ethernet, showing the use of all protocols, including TCP protocols, UDP protocols, and IP protocols, etc., you can also choose a specific protocol and view it specific Using information, you can also display the port number of all hosts and the detailed routing information of the current host.
for example: