// 安装 tcpdump 调试工具
yum install tcpdump
// 安装 net-tools 调试工具
yum install net-tools
有了这个 tcpdump 后我们可以在服务器端抓包了:
tcpdump -i ens33 -S port 80 -c 10000
-i : 网卡名称,可以通过 ifconfig 命令找到对应的网卡名称
-S: 使用绝对序列号
port: 监听的端口号
-c : 抓取数据包的数量
// 安装 tcpdump 调试工具
yum install tcpdump
// 安装 net-tools 调试工具
yum install net-tools
有了这个 tcpdump 后我们可以在服务器端抓包了:
tcpdump -i ens33 -S port 80 -c 10000
-i : 网卡名称,可以通过 ifconfig 命令找到对应的网卡名称
-S: 使用绝对序列号
port: 监听的端口号
-c : 抓取数据包的数量
本文标题:centos7 网络调试
本文链接:https://www.haomeiwen.com/subject/bowoertx.html
网友评论