wireshark 捕获过滤器抓不到东西 Capture filter does not work

最近工作中发现wireshark 的捕获过滤抓不到东西,原因在于电脑网卡开启了 802.1Q vlan tagging,具体写Capture filter要分以下两种情况:

网卡开启vlan

  • 捕获 PPPoE

vlan && pppoes && port 80

  • 捕获 IPoE

vlan && port 80

网卡关闭vlan

  • 捕获 PPPoE

pppoes && port 80

  • 捕获 IPoE

port 80

捕获过滤语法

<Protocol><Direction><Hosts><Value><Logical operations><Other expression>

Protocol:ether,ip,arp,rarp,tcp,udp等,<默认为全部协议>

Direction:src,dst,src and dst,src or dst <默认为src or dst>

Hosts:net,port,host,portrange <默认为host>

Logical operations:not,and,or <优先级最高的是not,and和or同级,运算时从左到右>

你可能感兴趣的:(wireshark)