在openvswitch拦截数据包

在openvswitch拦截数据包

问题描述:

我想拦截从控制器到达交换机的数据包(例如泛光灯),然后对这些数据包进行一些处理。我怎么去解决这个问题?我应该从哪里开始有一个好地方?在openvswitch拦截数据包

感谢

如何窥探和监控命令记录here

snoop switch Connects to switch and prints to the console all OpenFlow messages received.

monitor switch Connects to switch and prints to the console all OpenFlow messages received.

  1. 写一个脚本运行监听或监视
  2. 解析输出
  3. “然后做一些处理”

如果你不想使用OpenFlow消息但数据包可以使用wireshark from the command line