Open vSwitch commands

There are several command-line options for Open vSwitch as it has become a very popular software-based switch for projects such as OpenStack networking and OpenFlow. There are three popular command-line tools for Open vSwitch administration:

  1. ovs-vsctl: This configures Open vSwitch parameters such as ports, adding or deleting bridges, and VLAN tagging
  2. ovs-dpctl: This configures the data path of Open vSwitch, such as showing the currently installed flows
  3. ovs-ofctl: This combines the functions of ovs-vsctl as well as ovs-dpctl but is meant for OpenFlow switches, thus the of in the name

Let's continue to use the Layer 2 switch example as before and look at some examples of the command-line tools. First up, let's look ...

Get Mastering Python Networking now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.