After the network hardware and network protocols are installed, we usually need to test the TCP/IP protocol. How can we perform a comprehensive test? We believe that the comprehensive test should include two aspects: Lan and Internet. Therefore, we should test the LAN and Internet, the following are the steps to test the TCP/IP configuration using the command line in actual work:
1. Click Start/run, Enter CMD and press enter to open the Command Prompt window.
2. First, check whether the IP address, subnet mask, default gateway, and DNS server address are correct. Enter the command ipconfig/all and press Enter. The network configuration is displayed. Check whether the network configuration is correct.
3. Enter ping 127.0.0.1 to check whether the NIC can forward data. If "Request timed out" is displayed, the configuration error or network error occurs.
4. Ping An Internet address, for example, ping 202.102.128.68 to check whether data packets are sent back to verify the connectivity with the Internet.
5. Ping a LAN address to check its connectivity.
6. Use nslookup to test whether DNS resolution is correct. Enter nslookup www.ccidnet.com to check whether DNS resolution can be performed.
If your computer passes all tests, the network is normal. Otherwise, the Network may have different degrees of problems. This section will not be detailed here. However, note that when using the ping command, some companies will discard ICMP packets on their hosts, causing your ping command to fail to return data packets normally.