安装ovs python库:
cd openvswitch-2.6.1/python
python ./setup.py install
安装依赖:
yum install -y python-netifaces
手册:
man ovs-tcpdump
ovs-tcpdump -i port tcpdump options...
原理:
ovs-tcpdump creates switch mirror ports in the ovs-vswitchd daemon and executes tcpdump to listen against those ports.
When the tcpdump instance exits, it then cleans up the mirror port it created
在ovs的指定port上抓包:
ovs-tcpdump -i br-int -w br-int.pcap
手册:
man ovs-ofctl
查看流表:
ovs-ofctl dump-flows br-tun
查看port收发包情况:
ovs-ofctl dump-ports br-tun
Copyright @2011-2019 All rights reserved. 转载请添加原文连接,合作请加微信lijiaocn或者发送邮件: [email protected],备注网站合作
友情链接: Some Online Tools Develop by Me 系统软件 程序语言 运营经验 水库文集 网络课程 微信网文