Skip to content

Instantly share code, notes, and snippets.

@djoreilly
Last active October 24, 2025 08:59
Show Gist options
  • Save djoreilly/c5ea44663c133b246dd9d42b921f7646 to your computer and use it in GitHub Desktop.
Save djoreilly/c5ea44663c133b246dd9d42b921f7646 to your computer and use it in GitHub Desktop.
OVS cheat sheet

ovs-vsctl list interface ovs-vsctl -- --columns=ofport,name list Interface ovs-vsctl get interface vhub656c3cb-23 name

ovs-vsctl set port vlan1729 tag=1729 ovs-vsctl get port vlan1729 tag ovs-vsctl remove port vlan1729 tag 1729

not sure this is best ovs-vsctl set interface vlan1729 mac='5c:b9:01:8d:3e:9d'

ovs-ofctl -O OpenFlow13 dump-flows br-int | cut -d',' -f3,6,7-

ovs-ofctl show br-int | egrep "^ [0-9]"

ovs-ofctl add-flow brbm priority=1,in_port=11,dl_src=00:05:95:41:ec:8c/ff:ff:ff:ff:ff:ff,actions=drop ovs-ofctl --strict del-flows brbm priority=0,in_port=11,dl_src=00:05:95:41:ec:8c

ovs-appctl fdb/show brbm

ovs-appctl ofproto/trace br-int in_port=6

history ovsdb-tool -mm show-log /etc/openvswitch/conf.db

DPDK ovs-ofctl dump-ports br-int ovs-appctl dpctl/dump-flows ovs-appctl dpif-netdev/pmd-stats-show ovs-appctl dpif-netdev/pmd-rxq-show

Debug log

     ovs-appctl vlog/list | grep dpdk
     ovs-appctl vlog/set dpdk:file:dbg
@miladjahandideh
Copy link

Tnx, Pls add the OVN commands cheat sheet.

@mrezagerami
Copy link

Thanks

@TaylorTrz
Copy link

Thanks, this helps me a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment