没有多个网卡的话,直接使用 any 代替 eth0 这种就好了
这时候需要知道自己的网卡号(这么获取):
Everytime he runs /sbin/ifconfig -a | less
, this is what comes up:
或者直接使用:
[root@149 ~]# tcpdump -D
1.nflog (Linux netfilter log (NFLOG) interface)
2.nfqueue (Linux netfilter queue (NFQUEUE) interface)
3.usbmon1 (USB bus number 1)
4.usbmon2 (USB bus number 2)
5.enp4s0
6.any (Pseudo-device that captures on all interfaces)
7.lo