OVS (Open vSwitch) Commands

  • ovs-vsctl – utility to manage configuration state in ovsdb-server
    •             bridge management
    •             port management
    •             controller management
    •             failure mode management
  • ovs-appctl – send commands to ovs-vswitchd
  • ovs-dpctl – Tool to manage datapaths in the kernel directly.
    •             Direct management only reallu required when there is no ovs-vswitchd
    •             Mostly useful for inspecting kernel vs user flows
  • ovs-ofctl – for working with openflow


ovs-vsctl showshow openvswitch switches and ports


ovs-appctl bridge/dump-flowsDumps all flows, including hidden
ovs-appctl dpif/dump-flowsDumps datapath flows for a spefic bridge
ovs-appctl ofproto/trace <switch_name> in_port=1Trace packet process for traffic coming in on port_1 of given switch


ovs-dpctl dump-flowsDumps kernel table entries


ovs-ofctl dump-flowsDumps OF flows (excluding hidden flows)
Rick Donato

Want to become a networking expert?

Here is our hand-picked selection of the best courses you can find online:
Cisco CCNA 200-301 Certification Gold Bootcamp
Complete Cyber Security Course – Network Security
Internet Security Deep Dive course
Python Pro Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial