Use ipconfig to check TCP/IP configurations
Ipconfig is a command prompt line tool for viewing and managing the client's TCP/IP configuration status. In the command prompt line, Type ipconfig and press enter to obtain the basic TCP/IP configuration attributes of the computer, including the IP address, subnet mask, and default gateway, as shown in the right figure.
In the command prompt line, Type ipconfig/All and press enter to get the TCP/IP configuration status in verbose mode. In addition to the basic information, it also includes the host name, DNS settings, wins settings, DHCP settings, physical addresses, node types, and other TCP/IP information.
If the computer enables DHCP and uses the DHCP server to obtain the configuration, you can use the ipconfig/Renew command to start refreshing the lease. You can also use the ipconfig command with the/release option to immediately release the current DHCP configuration of the host.
For Windows 95 and Windows 98 clients, use the winipcfg command instead of the ipconfig command.
Use the ping command to test the connection
The ping command is used to verify IP-level connectivity. When detecting and resolving problems, you can use ping to send ICMP response requests to the target host name or IP address. Use ping to verify whether the host can connect to the TCP/IP network and network resources.
The Ping Command actually sends several (4 by default) packets to the target host. If the local computer can communicate with the target host, the target host will return a response message, as shown on the right, the response information includes the response time and TTL value. Successfully ping the same host indicates that IP data can be transmitted between the local host and the target host.
If a timeout message is received, as shown on the right, it indicates that the TCP/IP connection between the local host and the target host cannot be established. Possible causes include network faults, protocol errors and TCP/IP configuration errors when determining network connectivity, Ping tests should be conducted in the following order:
1. Ping the local loop address 127.0.0.1 to check whether the local TCP/IP configuration is correct.
In the command prompt line, type Ping 127.0.0.1.
2. Ping the local IP address to check whether the local IP address is set correctly.
3. Ping the default gateway address to check whether it can communicate with hosts outside the local subnet.
4. Ping the host on the remote subnet to check whether the vro can communicate remotely.
If the above ping command can receive a response, the TCP/IP configuration can support network communication.
Use netstat to display connection statistics
You can use the netstat command to display the Protocol statistics and the current TCP/IP connection.
The netstat-a command displays all connections, while the netstat-R command displays the route table and active connections. The netstat-e command displays Ethernet statistics, while netstat-s displays statistics for each protocol.