OpenVSwitch的使用

作者:李佶澳  更新时间:2017/10/28 12:38:10

  项目    ovs  本页

目录

摘要

openvswitch

抓包 ovs-tcpdump

安装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

流表 ovs-ofctl

手册:

man ovs-ofctl

查看流表:

ovs-ofctl dump-flows br-tun

查看port收发包情况:

ovs-ofctl dump-ports br-tun

文献

关注加微信,一般不闲聊(直接说事)

QQ交流群

区块链实践互助QQ群:576555864

Kubernetes实践互助QQ群:947371129

Prometheus实践互助QQ群:952461804

Kong/Envoy实践互助QQ群:952503851

Ansible实践互助QQ群:955105412

Copyright @2011-2019 All rights reserved. 转载请添加原文连接,合作请加微信lijiaocn或者发送邮件: [email protected],备注网站合作

友情链接:  微信公众号精选文章  发现知识星球