Several network test orders must be learned
Understanding and mastering the following commands will help you detect the network failure faster, saving time and improving efficiency.
Ping
Ping is a tool for testing network coupling status and packet sending and receiving conditions, is the most commonly used command for network testing. Ping Sends a return request packet to the target host (address), requiring the target host to respond to the request, thus determining the response time of the network and the local Unicom communication with the target host (address).
If you do not succeed, you can predict that the fault appears in the following aspects: the network cable fault, the network adapter configuration is incorrect, the IP address is incorrect. If the network is still unusable, the network is still unusable, then the problem is likely to have a software configuration in the network system, and the success can only ensure that there is a connection between the unit and the target host.
Command format:
PING IP address or host name [-t] [-a] [-n count] [-l size]
Parameter meanings:
-t constantly sends 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, the specific number is specified by count;
-l size specifies the size of the packet sent to the target host.
For example, when your machine cannot access the Internet, first you want to confirm whether it is a local local area network failure. Assume that the proxy server IP address of the LAN is 202.168.0.1, you can use ping to avoid the 202.168.0.1 command to see if the unit is connected to the proxy server. As another example, the common command to test if the NIC installed correctly is ping 127.0.0.1.
Tracert
Use the tracert command to display the packet to the path passed by the target host and display the time to each node. The command function is similar to ping, but the information it gets is much more detailed than the ping command. It shows the full path, the IP of the node, and the time taken time. This command is compared to a large network.
Command format:
Tracert IP address or hostname [-d] [- h maximumhops] [- j host_list] [-w timeout]
Parameter meanings:
-d does not resolve the name of the target host;
-h maximum_hops Specifies the maximum number of jumps to search for destination;
-j host_list is released according to the address of the address in the host list;
-w Timeout Specifies timeout intervals, the program default time unit is millisecond.
For example, everyone wants to understand the detailed transmission path information between your computer and the target host www.cce.com.cn, you can enter Tracert www.cce.com.cn in MS-DOS.
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.
Netstat
The NetStat command can help the network administrator 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, which can statistically what network connections are running.
Using command parameters, commands can display all protocols, including TCP protocols, UDP protocols, and IP protocols, etc., you can also select a specific protocol and view its specific information, and display all host port numbers and current hosts. Detailed routing information.
Command format:
NetStat [-r] [-s] [-n] [-a]
Parameter meanings:
-r Displays the contents of this routing table;
-s Displays the use status of each protocol (including TCP protocol, UDP protocol, IP protocol);
-n displays addresses and ports in digital tables;
-a Displays the port number of all hosts. Winipcfg
The WinipCFG command displays the specific configuration information of the IP protocol in the form of a window. The command can display the physical address of the network adapter, the host's IP address, subnet mask, and default gateway, etc., you can also view the host name, DNS server, node type, etc. information. The physical address of the network adapter is very useful when detecting network errors.
Command format:
Winipcfg [/?] [/ all]
Parameter meanings:
/ ALL displays all configuration information about IP addresses;
/ batch [file] writes the command result to the specified file;
/ renew_ all retry all network adapters;
/ release_all Releases all network adapters;
/ renew n reset network adapter N;
/ Release N Release Network Adapter N.
In Microsoft's Windows 95 and after its operating system, you can run the above command.