Common network command (3)

xiaoxiao2021-03-06  67

The NetStat NetStat utility is a diagnostic tool that can be used to monitor the connection of the remote host and the protocol statistics for the connection. NetStat utility is also useful to extract IP addresses from hosts connected to using domain names. The syntax of the netstat command is as follows: NetStat [-a] [- ENS] [- p protocol] [- r] [Interval] The commonly used parameters in the Ding NetStat command: NetStat -s - This option can follow each protocol Display its statistics. If your application (such as a web browser) runs slower, or if you cannot display data such as the web page, you can use this option to see the information displayed. You need to carefully check the rows of statistics, find the keywords of the error, and then determine the problem. NetStat-E - This option is used to display statistics about Ethernet. It lists the items that include the total number of bytes of the transmitted datagram, the number of errors, the number of deletions, the number of datagrams, and the number of broadcasts. These statistics have both transmitted data reports, as well as the number of received data. This option can be used to count some basic network traffic). NetStat -R - This option can display information about the routing table, similar to the information you see when the Route print command is used later. In addition to displaying valid routing, it also displays currently valid connections. NetStat -a-- This option displays a list of all valid connection information, including the established connection (ESTABLISHED), which also includes those connections to the Listening request. NetStat -N - Displays all established effective connections. NetStat's wonderful people often use ICQ, I don't know if you are harassed by some annoying people, I want to complaint but I don't know and start? In fact, you only need to know the IP of the other party, you can complain to the ISP of him. But how can I know the other's IP through ICQ? If the other party selects the IP address when setting ICQ, you can't see it in the information bar. In fact, you can easily do this with NetStat: When he is connected to you through ICQ or other tools (for example, sending him an ICQ message or send you a message), you immediately Enter netstat -n under the DOS PROMPT to see the IP or ISP domain used when the other party is on net. Even the ports used are completely exposed. If you want to give him some lessons, this information is enough ... Route Most hosts generally reside on a network segment that is only connected to a router. Since there is only one router, there is no problem that uses which router to publish the datagram to the remote computer, the IP address of the router can be entered as the default gateway of all computers on the network segment. However, when there are two or more routers on the network, you don't have to rely on the default gateway. In fact, you may want to pass some of the remote IP addresses through a particular router, while other remote IPs are passed through another router. In this case, you need the corresponding routing information, which is stored in the routing table, each host and each router comes with its own unique routing table. Most routers use specialized routing protocols to exchange and dynamically update the routing table between the routers. However, in some cases, it must be manually added to the router and the routing table on the host. Route is used to display, manually add and modify routing table items.

转载请注明原文地址:https://www.9cbs.com/read-87134.html

New Post(0)