ovs trace
ovs只支持出方向trace,不支持入方向trace。
方法1

ovs-appctl ofproto/trace br-int in_port=0af80797dfb2_h,icmp,nw_src=10.244.0.14,nw_dst=10.244.0.5

方法2
保存抓包结果
tcpdump -i 0af80797dfb2_h src 10.244.0.14 and dst 10.244.0.5 -nevvv -w test.pcap
根据抓包内容来查询流表
ovs-pcap test.pcap
ovs-appctl ofproto/trace br-int in_port=0af80797dfb2_h xxx


参考资料
openvswitch 通过ofproto/trace trace跟踪数据包匹配的流表
浙公网安备 33010602011771号