tcpdump 的使用

001:

tcpdump  host 192.168.1.100

tcpdump: no suitable device found

权限问题

002:

sudo tcpdump  host 192.168.1.100

tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes

网卡eth0没有绑定ip,查看一下:

ifconfig -a

ech0下确实没有绑定ip,而wlan0绑定了,使用它

003:

sudo tcpdump -i wlan0  host 192.168.1.100
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 65535 bytes

现在就开始监听数据包了,如果没看到效果,试着刷新一下页面,引起有请求。



参考:

http://bbs.csdn.net/topics/390452213


你可能感兴趣的:(Linux,开发工具,网卡,网络工具,linux)