Common network commands for Network Management

Source: Internet
Author: User

Ipconfig command

The ipconfig command can be used to display the current TCP/IP configuration of the local machine.

When ipconfig is used without any Parameter options, it displays IP addresses, subnet masks, and default gateway values for each configured interface.

When ipconfig is used with the all option, that is, ipconfig/All or ipconfig-all, Besides displaying the configured TCP/IP information, it also displays the physical addresses (MAC addresses) and host names embedded in the local Nic.

Use ipconfig/renew or ipconfig-renew to obtain the IP address again.

Use ipconfig/release or ipconfig-release to release the obtained IP address.






Ping Command

The Ping Command can only be used after the TCP/IP protocol is installed. The Ping Command is mainly used to send data packets and receive response information to check whether the networks between the two computers are connected. When a network problem occurs, you can use this command to predict the fault and determine the fault source. If Ping fails, you can predict the failure in the following aspects: network connection, network adapter configuration, and IP address availability.

(1) ping command format:

Ping [-T] [-N count] [-l size] IP

(2) Main Parameters of the ping command:

-T: enables the current host to continuously send data to the target host until it is interrupted by pressing CTRL + C.

-N count: Number of echo data packets specified by count. The default value is 4.

-L size: the size of the sent data packet.

(3) ping command is usually used to verify whether the route between the local computer and the computer in the network exists, that is, ping the IP address of the target host to check whether it responds: Ping ip_address.




(4) The following are the main steps to test whether the network connection is normal:

Ping 127.0.0.1. Ping the loopback address to verify whether the TCP/IP protocol is installed on the Local Computer and whether the configuration is correct. This command is sent to the TCP/IP software of the local computer. If no response is received, it indicates that the installation or running of TCP/IP has some basic problems.


Ping localhost. Localhost is the reserved name of the operating system, that is, the alias of 127.0.0.1. Each computer can convert the name to an address.

Ping the local IP address. The local computer always responds to the ping command. If no ping command is displayed, the local configuration or installation is faulty.

Ping the IP addresses of other machines in the LAN. Command to other computers and then return. If you receive a response, the NIC and media in the local network are running normally. However, if you do not receive a response, it indicates that the subnet mask is incorrect, the NIC configuration is incorrect, or the media is faulty.

Ping the IP address of the default gateway. Verify that the default gateway is running and can communicate with hosts on the local network.

Ping the remote IP address. Ping the IP address of the remote host to verify whether the router can communicate with each other.

You can also ping the domain name and check whether the DNS configuration is correct.

Tracert command

This command can determine the path through which the data packet arrives at the destination host, and display the relay node list and arrival time of the data packet.

Common Format: tracert-D target_name

-D indicates that the host name is not parsed, which can save the tracking routing time.

C: \> tracert-D www.scut.edu.cn

Tracing Route to webserver.scut.edu.cn [202.38.193.188]

Over a maximum of 30 hops:

1 21 MS 1 MS 1 MS 210.38.20..1 Default Gateway

2 10 MS 1 MS 7 MS 192.168.2.249

3 10 MS 9 MS 10 MS 10.239.255.1 tutorial network Chaozhou Node

4 10 MS 22 MS 16 MS 172.31.20.105 and Provincial Department of Education

5 9 MS 9 MS 9 MS 192.168.1.228

6 27 MS 19 MS 36 MS 202.116.225.253 Provincial Department of Education

7 15 MS 14 MS 16 MS 210.38.1.10 Guangdong Education Network

8 10 MS 19 MS 15 MS 202.112.19.58 CERNET trunk

9 MS 9 MS 9 MS 202.38.193.188 South China University of Technology





Netstat command

This command helps you understand the overall usage of the network. It displays the details of active network connections on the current computer, such as the protocol type used, the IP addresses of the current host and the remote host, and the connection status between them. Users or network administrators can use this command to obtain detailed network statistics.

The netstat command format is as follows:

Netstat [-A] [-E] [-N] [-R] [-S]

Frequently Used parameters are:

-A: displays the port numbers of all host connections and listeners.

-E: displays Ethernet statistics.

-N: the address and port are displayed in a digital table.

-R: displays route information.

-S: displays the status of each protocol, which includes TCP, UDP, ICMP, and IP.

The netstat-An command is often used to display the network connection status of the current host.

Enabled, which remote hosts are connected to the local machine.









Common network commands for Network Management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.