ZBLOG

how to use tcpdump to capture geneve packet?

To capture Geneve packets using tcpdump, follow these steps:

  1. Open a terminal on your system.
  2. Type the following command to start capturing traffic on the interface that you want to monitor:
sudo tcpdump -i <interface>

Replace <interface> with the name of the network interface that you want to monitor.

  1. To filter for Geneve packets only, use the following command:
sudo tcpdump -i <interface> -s0 -vvv 'udp port 6081'

This will capture all UDP packets on port 6081 (the default port used for Geneve) and print verbose output (-vvv).

  1. You can also add additional filters to capture specific types of Geneve packets. For example, to capture only Geneve encapsulated IPv4 traffic, use the following command:
sudo tcpdump -i <interface> -s0 -vvv 'udp port 6081 and (ether[12:2]=0x6558) and (ip proto 4)'

This will capture only those UDP packets on port 6081 that contain a Geneve header with an EtherType of 0x6558 and encapsulate IPv4 traffic.

  1. Once you have captured the desired traffic, press Ctrl + C in the terminal window to stop tcpdump from running.

Note: To use tcpdump effectively, you need root privileges on your system or be part of a group with sufficient permissions.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://sdn.0voice.com/?id=1492

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?