当前位置:网站首页>如何通过netstat命令分析网络情况
如何通过netstat命令分析网络情况
2022-06-10 05:42:00 【黄佳俊、】
windows系统中DOS的netstat命令,能够十分详细的展示当前通信的状态。该命令对于通信流量的统计,以及查找异常程序等,都有十分重要的作用。
使用netstat -r查看当前系统路由表
netstat -ano回车.可以查看本机开放的全部端口.-a 显示所有socket,包括正在监听的。
-n 以数字形式显示地址和端口号。
-r 显示核心路由表,格式同“route -e”。
-t 显示当前连接卸载状态。
-v 显示正在进行的工作。
-p proto 显示proto指定的协议的连接。
-b 显示在创建每个连接或侦听端口时涉及的可执行程序。
-e 显示以太网统计。此选项可以与 -s 选项结合使用。
-f 显示外部地址的完全限定域名(FQDN)。
-o 显示拥有的与每个连接关联的进程PID。
-q 显示所有连接、侦听端口和绑定的非侦听 TCP 端口。
-s 显示每个协议的统计。
-x 显示 NetworkDirect 连接、侦听器和共享端点。
-y 显示所有连接的 TCP 连接模板。无法与其他选项结合使用。
执行命令netstat -a,可以展示当前所有的连接与开放的侦听端口。这些连接包括正在进行连接的,以及准备释放的连接。

2
如果上述命令的外部地址以主机名显示不方便查看,则可以执行命令netstat -n。这样外部地址就会以IP地址来显示。

3
执行命令netstat -b,可以查询当前的连接是什么应用程序所建立的。该命令,常常用于排查异常程序;比如有木马建立了异常连接,通过该命令可以查询到木马程序的存在。

4
也可以将命令后面的参数同时使用,这样所显示的信息更为全面,更利于实际的分析。

5
执行命令netstat -es可以展示IPv4和IPv6及ICMP的网络通信情况。比如TCP发出的数据包统计,TCP接收的数据包统计等信息。

6
如果只想看TCP的情况,则可以执行命令netstat -ps TCP。同理UDP和ICMP也是如此执行。

边栏推荐
- 冒泡排序bubble_sort
- Flink 系例 之 TimeWindow
- [how much management knows] Chinese "other", English "other", Japanese "other"
- 深证通mr-消息中间件简单使用
- leetcode 1332. Remove palindromic subsequences
- 浏览器安装这款插件瞬间漂亮多了,有类似苹果手机一样的自定义组件功能
- The browser is much more beautiful when installing this plug-in. It has the same custom component function as apple mobile phone
- Talking about thread pool with pictures and texts
- An analysis of DuPont analysis: the financial situation of East China Construction Group Co., Ltd
- [stacking | fast scheduling] Top-k problem
猜你喜欢

自注意力机制中的位置编码

数字化浪潮来临,如何实现业务敏捷交付和科技持续治理?揭秘蚂蚁 BizStack

Paper reading (54):deepfool: a simple and accurate method to four deep neural networks

Flutter file operation

Initial experience of using XXL job

《模型輕量化-剪枝蒸餾量化系列》YOLOv5無損剪枝(附源碼)

ArcGIS应用(十九)Arcgis 统计分析计算多波段图像最大值、最小值、平均值等

【软件工程导论】知识点汇总 | 适用于考试复习 | 轻松通过考试
向 CODING 推送代码出现 Permission denied 的解决方法

Hevc HM learning 02
随机推荐
QT configures opencv-4.5.1 and runs the program
matlab中不同随机数的生成
Display常用英文缩写
Simple and interesting Snake growth game -- greedy snake
[stacking | fast scheduling] Top-k problem
CANape XCP on CAN工程创建
Paper reading (54):deepfool: a simple and accurate method to four deep neural networks
自注意力机制中的位置编码
Ant group's all-in-one privacy computing machine has obtained double certification, and 83 indicators meet the requirements
MySQL在InnoDB引擎下使用where in 导致锁升级
Win10 installation process
How do you do if your English is too poor? Write a "100 word chop" software to recite words for yourself
MTK platform sensor arch introduction -kernel
Use of redis
What's new in the latest version of Camtasia 2022
Three principles of layout design
Watermarks of Flink
Convert an array of objects to a two-dimensional array
With the advent of the digital wave, how to achieve agile business delivery and sustainable technology governance? Uncover the ant bizstack
The R language catools package divides the data, randomforest package constructs the random forest model, uses the predict function to carry out model prediction and reasoning on the test data set, an





