| 用途 | 过滤 GRE 封装的外层报文 |
|---|---|
| 语法 | ip proto gre / ip proto 47 [and host ...] |
常用示例
常用示例
tcpdump -i eth0 -nn 'ip proto gre' -c 20
tcpdump -i eth0 -nn 'ip proto gre and host 203.0.113.10'VXLAN(4789/UDP)、GENEVE(6081/UDP)是 UDP 封装,与 GRE 的协议号过滤方式不同。
GRE 是常见三层隧道封装,IP 协议号 47;用 ip proto gre 抓外层隧道包,内层报文需 Wireshark 按 GRE 协议解开查看。
| 用途 | 过滤 GRE 封装的外层报文 |
|---|---|
| 语法 | ip proto gre / ip proto 47 [and host ...] |
tcpdump -i eth0 -nn 'ip proto gre' -c 20
tcpdump -i eth0 -nn 'ip proto gre and host 203.0.113.10'