当前位置:网站首页>How to analyze network conditions through netstat command
How to analyze network conditions through netstat command
2022-06-10 05:51:00 【Huang Jiajun】
windows In the system DOS Of netstat command , It can display the current communication status in great detail . This command is used to count the traffic , And finding abnormal programs , All play a very important role .
Use netstat -r Check the current system Routing table
netstat -anoenter . You can view all open ports on this computer .-a Show all socket, Including what's being monitored .
-n Show address and port number in digital form .
-r Show core routing table , Same format “route -e”.
-t Displays the current connection offload status .
-v Show work in progress .
-p proto Show proto Specified protocol connection .
-b Shows the executables involved in creating each connection or listening port .
-e Display Ethernet statistics . This option can be used with -s Combination of options .
-f Displays the fully qualified domain name of the external address (FQDN).
-o Show the processes associated with each connection that you have PID.
-q Show all connections 、 Non listening for listening ports and binding TCP port .
-s Show statistics for each protocol .
-x Show NetworkDirect Connect 、 Listeners and shared endpoints .
-y Show all connected TCP Connection template . Cannot be used with other options .
Carry out orders netstat -a, It can show all current connections and open listening ports . These connections include those in progress , And the connection ready to be released .

2
If the external address of the above command is displayed in the host name, it is not convenient to view , Can execute the command netstat -n. So the external address will be in the form of IP Address to show .

3
Carry out orders netstat -b, You can query what application has established the current connection . This command , It is often used to troubleshoot abnormal programs ; For example, a Trojan horse has established an abnormal connection , Through this command, you can query the existence of the Trojan horse program .

4
You can also use the parameters following the command at the same time , In this way, the information displayed is more comprehensive , More conducive to practical analysis .

5
Carry out orders netstat -es Can show IPv4 and IPv6 And ICMP Network communication of . such as TCP Statistics of sent packets ,TCP Received packet statistics and other information .

6
If you just want to see TCP The situation of , Can execute the command netstat -ps TCP. Empathy UDP and ICMP The same is true .

边栏推荐
- QT configures opencv-4.5.1 and runs the program
- Struct in golang
- 感谢羽忆童鞋的大白兔奶糖
- Two Sum
- error NU1202: Package Volo. Abp. Cli 5.2.1 is not compatible with netcoreapp3.1
- Paper reading (54):deepfool: a simple and accurate method to four deep neural networks
- Flink 系例 之 CountWindow
- Crash problem
- Common English abbreviations of display
- NPM command Encyclopedia
猜你喜欢
随机推荐
Paper reading (54):deepfool: a simple and accurate method to four deep neural networks
The R language catools package divides the data, randomforest package constructs the random forest model, and views the basic information output by the model (number of trees, estimation error outside
Difference between risc-v "access fault" and "page fault"
String cutting group by
MySQL在InnoDB引擎下使用where in 导致锁升级
Learning of common functional interfaces
Raspberry pie 4B compiling kernel module
The decision tree model (based on the test data set) constructed by R language test is used for predictive reasoning, and the table function is used to calculate the confusion matrix. The accuracy of
Convert an array of objects to a two-dimensional array
树莓派4B编译内核模块
Win10 installation process
The R language uses the matchit package for propensity matching analysis and match The data function constructs the matched sample set, and judges the balance of all covariates in the sample after pro
《模型轻量化-剪枝蒸馏量化系列》YOLOv5无损剪枝(附源码)
图片识字的教程
词向量:GloVe 模型详解
Struct in golang
Picture literacy tutorial
《模型輕量化-剪枝蒸餾量化系列》YOLOv5無損剪枝(附源碼)
Thesis reading (53):universal advantageous perturbations
Software stuff















