tcpdump 过滤掉 arp 和所有 stp 数据包

问题描述

我需要使用 tcpdump 在接口上捕获并过滤掉所有 arp 和 stp/rstp 数据包。 我试过这个命令,它确实过滤掉了 arp,但我仍然看到 rstp 数据包:

@Component({ selector: 'app-root',template: ` <div *ngIf="bugs$ | async"> bugs: {{ (bugs$ | async).bugs }} </div> ` }) export class AppComponent { constructor(private store: Store<any>) { this.store.dispatch( addBugAction({ x: 100,y: 200 }) ); setTimeout(() => { const bugs$ = this.store.pipe(select('selectBugs')); bugs$.subscribe(console.log); },1000); } }

也试过这个,还是看到rstp包

tcpdump -n -i ens224 not arp and not stp

我做错了什么?

我已经阅读了这篇文章,但它在 tcpdump 的上下文中没有帮助,寻找特定的语法: how to filter rtsp packets from a pcap file

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)