在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.
- 写一个脚本运行监听或监视
- 解析输出
- “然后做一些处理”
如果你不想使用OpenFlow消息但数据包可以使用wireshark from the command line。