tcpdump 速成指南
其他参考:tcpdump 的基本用法 1. 抓取指定网卡上的数据 tcpdump 默认抓系统第一块网卡,-i 参数可以指定网卡,any 表示抓所有网卡:
|
1 2 |
tcpdump -i eth0 # 抓取 eth0 上的数据 tcpdump -i any # 抓取所有网卡上的数据 |
2. 抓取指定 IP 的数据 抓取来自 eth0 网卡上 IP 为 192.168.10.1 的数据: ... 阅读更多
其他参考:tcpdump 的基本用法 1. 抓取指定网卡上的数据 tcpdump 默认抓系统第一块网卡,-i 参数可以指定网卡,any 表示抓所有网卡:
|
1 2 |
tcpdump -i eth0 # 抓取 eth0 上的数据 tcpdump -i any # 抓取所有网卡上的数据 |
2. 抓取指定 IP 的数据 抓取来自 eth0 网卡上 IP 为 192.168.10.1 的数据: ... 阅读更多