1. ovs-appctl fdb/show <bridge> ##########列出指定网桥上的MAC学习表

root@compute-0-6:~# ovs-appctl fdb/show  br-prvport  VLAN  MAC                Age2  4081  f0:b1:07:46:d1:0d   572  4081  f0:b1:07:46:cf:63   542  4081  40:a6:b7:09:ca:70   302  4081  40:a6:b7:1c:14:a0   302  4081  40:a6:b7:1c:34:20   302     0  f0:b1:07:46:cf:63   272     0  f0:b1:07:46:d1:0d   242  3204  be:35:e3:00:66:44    51  3204  02:6b:b4:de:ea:4b    22     0  66:0e:94:4d:92:a2    12  4081  66:0e:94:4d:8a:37    12  3204  36:0e:15:94:68:c2    12  4081  40:a6:b7:0a:b7:d0    12  4081  40:a6:b7:09:c0:30    12  4081  66:0e:94:56:0a:e2    12  4081  40:a6:b7:09:bb:00    12  4081  40:a6:b7:1b:b7:20    12  4081  40:a6:b7:09:bb:e0    1
LOCAL  4081  40:a6:b7:1b:b6:f0    12     0  66:0e:94:56:97:16    12  4081  40:a6:b7:1c:88:c0    12  4081  00:00:5e:00:01:01    1

2. ovs-appctl bridge/dump-flows <bridge> #######列出桥上的流

root@compute-0-6:~# ovs-appctl bridge/dump-flows br-prv
duration=6759174s, n_packets=1429823, n_bytes=135774187, priority=180008,tcp,nw_src=172.16.189.254,tp_src=6640,actions=NORMAL
duration=6759174s, n_packets=2707408, n_bytes=239794427, priority=180007,tcp,nw_dst=172.16.189.254,tp_dst=6640,actions=NORMAL
duration=6759174s, n_packets=2493771, n_bytes=149626260, priority=180006,arp,arp_spa=172.16.189.254,arp_op=1,actions=NORMAL
duration=6759174s, n_packets=2493535, n_bytes=149612100, priority=180005,arp,arp_tpa=172.16.189.254,arp_op=2,actions=NORMAL
duration=6759174s, n_packets=225519, n_bytes=9471798, priority=180002,arp,dl_src=40:a6:b7:1b:b6:f0,arp_op=1,actions=NORMAL
duration=6759174s, n_packets=0, n_bytes=0, priority=180004,arp,dl_src=36:0d:ab:e6:fb:c0,arp_op=1,actions=NORMAL
duration=6759174s, n_packets=0, n_bytes=0, priority=180003,arp,dl_dst=36:0d:ab:e6:fb:c0,arp_op=2,actions=NORMAL
duration=6759174s, n_packets=44, n_bytes=2640, priority=180001,arp,dl_dst=40:a6:b7:1b:b6:f0,arp_op=2,actions=NORMAL
duration=6759174s, n_packets=0, n_bytes=0, priority=180000,udp,in_port=LOCAL,dl_src=40:a6:b7:1b:b6:f0,tp_src=68,tp_dst=67,actions=NORMAL
duration=6759174s, n_packets=45251022979, n_bytes=23145486726335, priority=0,actions=NORMAL
table_id=254, duration=6759175s, n_packets=0, n_bytes=0, priority=2,recirc_id=0,actions=drop
table_id=254, duration=6759175s, n_packets=0, n_bytes=0, priority=0,reg0=0x1,actions=controller(reason=)
table_id=254, duration=6759175s, n_packets=0, n_bytes=0, priority=0,reg0=0x2,actions=drop
table_id=254, duration=6759175s, n_packets=0, n_bytes=0, priority=0,reg0=0x3,actions=drop

3. ovs-appctl bond/list #######列出所有bond

ovs-appctl bond/show

ovs-appctl lacp/show

ovs-appctl bond/hash 66:0e:94:4d:8a:37 #######查看bond中,某个MAC地址的hash值

4. ovs-appctl dpif/show ######## 打印datapath的汇总信息。包括openFlow的端口号,datapath的端口号,以及类型(本地端口被标识为openflow port 65534)如果指定了一个或多个datapath,将只显示指定的这些dp的信息。否则,则显示所有dp的信息

root@compute-0-6:~# ovs-appctl dpif/show
netdev@ovs-netdev: hit:66958570574 missed:28541175br-int:br-int 65534/29: (tap)tape338dd3b-a7 113/30: (system)tun0545be4ae7a 44/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.34, tos=inherit)tun0f4c33d9ff7 31/11: (gre: local_ip=10.2.0.26, packet_type=legacy_l3, remote_ip=172.16.187.3)tun118e1842f77 6/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.18, tos=inherit)tun16477381152 17/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.40, tos=inherit)tun187a3fcf0b9 27/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.10, tos=inherit)tun221d7fb2019 43/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.42, tos=inherit)tun23dc5435bb3 35/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.42, tos=inherit)tun27b4c991f32 38/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.18, tos=inherit)tun37ec6a98808 29/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.34, tos=inherit)tun3fdfd5af592 37/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.10, tos=inherit)tun40debd87f22 107/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.16, tos=inherit)tun418a6e19667 25/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.10, tos=inherit)tun45b74972445 33/11: (gre: local_ip=10.2.0.26, packet_type=legacy_l3, remote_ip=172.16.187.2)tun49acc5a29bc 32/11: (gre: local_ip=10.2.0.26, packet_type=legacy_l3, remote_ip=172.16.187.1)tun56edbb35880 34/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=172.16.135.3)tun5ba40c0d0c2 22/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.24, tos=inherit)tun6036e5ccaeb 41/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.16, tos=inherit)tun603e4dc49da 30/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=172.16.134.3)tun6a181d352db 1/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.8, tos=inherit)tun6e79d0d35d9 2/11: (gre: local_ip=10.2.0.26, packet_type=legacy_l3, remote_ip=172.16.187.4)tun6fcb07845f9 10/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.32, tos=inherit)tun9a854afd1c0 26/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.16, tos=inherit)tunaaabe12d407 36/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.32, tos=inherit)tunb3a54b42ab6 42/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.26, tos=inherit)tunc4f3fb9e561 4/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.40, tos=inherit)tunccc592cef4f 40/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.24, tos=inherit)tundb04d9fecbf 39/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.34, tos=inherit)tundff3ca1c870 21/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.42, tos=inherit)tune0705520961 28/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.24, tos=inherit)tune6a984d110a 12/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.40, tos=inherit)tunf0ac6cf85e7 19/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.18, tos=inherit)tunf3b0b231c9b 20/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.32, tos=inherit)tunf4a757142a1 5/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.0.8, tos=inherit)tunf9c49957e90 23/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.8.8, tos=inherit)tunfc5b3addd85 3/5: (vxlan: key=flow, local_ip=10.2.0.26, remote_ip=10.2.10.26, tos=inherit)vhu1d5f2410-66 72/16: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu1e2c043d-7f 138/34: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=1500, requested_rx_queues=1, requested_tx_queues=1)vhu1fcabfe9-b7 105/20: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu20e6b295-78 73/18: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu24698717-fd 106/31: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu2e989abe-01 99/24: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu349760f8-0b 136/32: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=1500, requested_rx_queues=1, requested_tx_queues=1)vhu3c14f2f3-eb 69/7: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu455be929-63 98/23: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu52272d97-de 78/14: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu5405d95e-2d 75/25: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu6180c0d3-ed 71/15: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu6f048a81-67 77/8: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu71ddfcf0-54 137/33: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=1500, requested_rx_queues=1, requested_tx_queues=1)vhu797b8131-7e 96/21: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu83018a71-04 97/22: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu8e727884-69 116/26: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhu9ae13231-73 68/6: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhua50dd1b8-4c 74/19: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhubaf3c0fe-08 70/9: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhuc3d5f1a5-f1 95/17: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhuc4e53001-39 104/10: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhuc4e7fd74-3f 117/28: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhuca01a77a-0b 100/12: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhuec1b90dd-77 115/13: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)vhuf076bf58-38 76/27: (dpdkvhostuserclient: configured_rx_queues=1, configured_tx_queues=1, mtu=2090, requested_rx_queues=1, requested_tx_queues=1)br-prv:br-prv 65534/4: (tap)dpdk0 3/3: (dpdk: configured_rx_queues=2, configured_rxq_descriptors=2048, configured_tx_queues=5, configured_txq_descriptors=2048, mtu=2140, requested_rx_queues=2, requested_rxq_descriptors=2048, requested_tx_queues=5, requested_txq_descriptors=2048, rx_csum_offload=true)dpdk1 2/2: (dpdk: configured_rx_queues=2, configured_rxq_descriptors=2048, configured_tx_queues=5, configured_txq_descriptors=2048, mtu=2140, requested_rx_queues=2, requested_rxq_descriptors=2048, requested_tx_queues=5, requested_txq_descriptors=2048, rx_csum_offload=true)p_5f4952e3-0 1/none: (patch: peer=p_5f4952e3-1)br-sdnc-sbi:br-sdnc-sbi 65534/1: (tap)p_5f4952e3-1 1/none: (patch: peer=p_5f4952e3-0)

5. ovs-appctl dpif/dump-flows <bridge> ###############打印data path模块的流,注意:并不是openflow的流

root@compute-0-6:~# ovs-appctl dpif/dump-flows br-prv
recirc_id(0),in_port(2),packet_type(ns=0,id=0),eth(src=66:0e:94:56:97:16,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=169.254.0.14,tip=169.254.0.18,op=1/0xff), packets:6351237, bytes:381074220, used:0.745s, actions:drop
recirc_id(0),in_port(3),packet_type(ns=0,id=0),eth(src=66:0e:94:4d:92:a2,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=169.254.0.15,tip=169.254.0.21,op=1/0xff), packets:6330599, bytes:379835940, used:0.751s, actions:drop
recirc_id(0),in_port(3),packet_type(ns=0,id=0),eth(src=be:35:e3:00:66:44,dst=ff:ff:ff:ff:ff:ff),eth_type(0x8100),vlan(vid=3204,pcp=0),encap(eth_type(0x0806),arp(sip=172.16.189.46,tip=172.16.189.254,op=1/0xff)), packets:831193, bytes:49871580, used:7.837s, actions:pop_vlan,1
recirc_id(0),in_port(3),packet_type(ns=0,id=0),eth(src=40:a6:b7:09:bb:e0,dst=40:a6:b7:1b:b6:f0),eth_type(0x8100),vlan(vid=4081,pcp=0),encap(eth_type(0x0800),ipv4(src=10.2.0.42/128.0.0.0,dst=10.2.0.26,proto=17,frag=no),udp(dst=4789)), packets:4698649, bytes:882707527, used:0.088s,
recirc_id(0),in_port(2),packet_type(ns=0,id=0),eth(src=40:a6:b7:1b:b7:20,dst=40:a6:b7:1b:b6:f0),eth_type(0x8100),vlan(vid=4081,pcp=0),encap(eth_type(0x0800),ipv4(src=10.2.0.18/128.0.0.0,dst=10.2.0.26,proto=17,frag=no),udp(dst=4789)), packets:416011954, bytes:452873760207, used:0.007s, actions:pop_vlan,tnl_pop(5)
recirc_id(0),in_port(3),packet_type(ns=0,id=0),eth(src=66:0e:94:4d:8a:37,dst=40:a6:b7:1b:b6:f0),eth_type(0x8100),vlan(vid=4081,pcp=0),encap(eth_type(0x0800),ipv4(src=172.16.134.3/255.255.224.0,dst=10.2.0.26,proto=17,frag=no),udp(dst=4789)), packets:56851555, bytes:9544077678, used:0.046s, actions:pop_vlan,tnl_pop(5)
recirc_id(0),in_port(3),packet_type(ns=0,id=0),eth(src=40:a6:b7:09:bb:00,dst=40:a6:b7:1b:b6:f0),eth_type(0x8100),vlan(vid=4081,pcp=0),encap(eth_type(0x0800),ipv4(src=10.2.0.16/128.0.0.0,dst=10.2.0.26,proto=17,frag=no),udp(dst=4789)), packets:140621008, bytes:36039160789, used:0.088s, actions:pop_vlan,tnl_pop(5)
recirc_id(0),in_port(3),packet_type(ns=0,id=0),eth(src=66:0e:94:4d:8a:37,dst=40:a6:b7:1b:b6:f0),eth_type(0x8100),vlan(vid=4081,pcp=0),encap(eth_type(0x0800),ipv4(src=10.2.10.34/128.0.0.0,dst=10.2.0.26,proto=17,frag=no),udp(dst=4789)), packets:3419979141, bytes:1534548259462, used:0.003s, actions:pop_vlan,tnl_pop(5)
recirc_id(0),in_port(4),packet_type(ns=0,id=0),eth(src=40:a6:b7:1b:b6:f0,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0806),arp(sip=10.2.0.26,tip=10.2.0.26,op=1/0xff,sha=40:a6:b7:1b:b6:f0), packets:0, bytes:0, used:never, actions:push_vlan(vid=4081,pcp=0),3

原文链接:https://www.cnblogs.com/reatual/p/14920472.html

[流表] ovs常规操作相关推荐

  1. Open vSwitch流表应用实战

    本文参考:Open vSwitch流表应用实战 一个通过改变流表下发而实现的互相通信实验. 实验目的: 掌握Open vSwitch下发流表操作: 掌握添加.删除流表命令以及设备通信的原理. 原理:. ...

  2. OVS中arp响应的流表的实现

    总结: 1.br-int 流表总体是按照Normal 的方式,即常规的交换机的转发方式进行转发.而br-tun 交换机则主要按照流表的方式进行转发. 2.一般情况下,VM发出的ARP请求,会在该VM的 ...

  3. Mellanox CX-5网卡支持OVS流表加速功能的调研

    女主宣言 本文主要对Mellanox CX-5网卡支持OVS流表加速功能进行了调研,简单介绍了配套软件的版本要求,并描述了整体测试的步骤,另外对其支持VF热迁移也进行了初步的调研,希望对有相同需求的同 ...

  4. Neutron系列 : Neutron OVS OpenFlow 流表 和 L2 Population(8)

    问题导读: 1.怎样使用arp_responder ? 2.怎样搭建l2pop环境? 3. ARP Responder arp_responder 的原理不复杂.Neutorn DB 中保存了所有的端 ...

  5. Mininet+OVS:如何更改SDN交换机的流表条目上限

    前言 流表是SDN交换机转发的重要环节.当一个不匹配的流量进入交换机时,交换机通过packet-in上报控制器,控制器以flow-mod应答,并在交换机中安装对应规则. OVS中提供了对于流表的支持, ...

  6. OVS 流表轨迹入门及典型场景举例【ovs-appctl ofproto/trace】

    OVS 流表轨迹入门及典型场景举例 一. 流表轨迹入门 二. 典型场景举例 三. 小技巧 一. 流表轨迹入门 在数据中心网络中,SDN控制器通过向OVS交换机下发OpenFlow流表,指导报文转发.在 ...

  7. openvswitch 流表操作(四十八)

    流表组成 每条流表规则由一些列字段组成,可以分为基础字段.匹配字段和动作字段三部分. 在打印流表时,在流表中还存在一些显示字段,如duration,idle_age等,此处把这些字段也暂时归之于基础字 ...

  8. SDN:mininet交换机流表操作

    实验条件 虚拟机vmware workstation16中使用Ubuntu系统 下载mininet的操作: 进入root用户 输入apt-get install git 输入git clone Git ...

  9. ryu--北向接口(流表的操作以及多控制器流表信息互通)

    实验目标: (1)实现网络拓扑的各个主机之间的相互通信 (2)实现各个自治域的控制器的流表获取(各个控制器的流表信息互通) (3)实现应用层对控制器的控制,进而实现对整个网络的控制 大致的实现效果如下 ...

最新文章

  1. ssm框架实现学生成绩管理系统
  2. 关于Unity -Vuforia -Android 开发 ,平台的搭建(极品菜鸟完整版)
  3. mysql什么情况会加意向锁_MySQL中的锁4-插入意向锁和自增锁
  4. 20210621 数学上的距离和空间
  5. Eclipse,以及tomcat使用时可能会遇到的几个问题
  6. Solr操作中新手常见问题
  7. Red hat6.4重新安装yum
  8. 机器学习降维-深度AI科普团队
  9. 【HTML+CSS网页设计与布局 从入门到精通】第10章-CSS
  10. paddlepaddle的使用
  11. Java自然语言处理NLP工具包
  12. Spring设置定时器配置
  13. php 判断来源 微信客户端_常见WebShell客户端的流量特征及检测思路
  14. java instant_Java Instant类
  15. 那些你所不知道的结构光技术
  16. Windows安装MySql
  17. 基于单片机的超市储物柜设计_基于80C51单片机的电子储物柜系统
  18. 设计模式之访问者模式(Vistor)
  19. 英语电影观后感之角斗士
  20. linux内核的红黑树

热门文章

  1. 中国医科大学2021年12月《护理中的人际沟通学》作业考核试题
  2. 一个屌丝程序员的青春(十三)
  3. php 3 638.00,Chroma 63800系列可编程交/直流电子负载
  4. 使用计算机搭建防火墙,电脑防火墙在哪里设置?电脑防火墙设置方法介绍
  5. 【北上广招聘】中企高呈找人:内容营销经理、SEM运营经理、KA客户经理...
  6. SAP ABAP BP MDS_CTRL_STRATEGY=============CP PPO PPO 处于非活动状态。激活 PPO 指令创建以避免转储。要激活 PPO,请维护
  7. R语言动量和马科维茨Markowitz投资组合(Portfolio)模型实现
  8. 飞桨中国行——生产制造专场
  9. 一头扎进Maven3 (二)
  10. android nfc开发 简书,Android-NFC基础