0% found this document useful (0 votes)
960 views2 pages

Open vSwitch Command Reference

This document provides an overview of the Open vSwitch implementation and summarizes common Open vSwitch commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
960 views2 pages

Open vSwitch Command Reference

This document provides an overview of the Open vSwitch implementation and summarizes common Open vSwitch commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Overview of Open vSwitch: Provides a visual layout of the Open vSwitch implementation elements and basic operation overview.
  • OVS-appctl Command Reference: Includes commands used for interacting with Open vSwitch daemons and performing various application-level operations.
  • OVS-vsctl Command Reference: Lists common ovs-vsctl commands used for configuring and managing Open vSwitch instances, such as adding bridges and ports.
  • OVS-dpctl Command Reference: Contains commands for low-level datapath control in Open vSwitch systems.
  • OVS-ofctl Command Reference: Details ovs-ofctl commands related to flow manipulation and querying in Open vSwitch environments.

Open vSwitch Cheat Sheet

An overview of Openvswitch implementation

+---------+ +-----------+
|ovs-ofctl| |sFlow Trend|
+----^----+ +-----^-----+
| |
Remote
+------------------------------------------------------------------------------------
-----------+
| |
| sFlow |
| | +---------+ +----------+ +---------+
+------------+
| | |ovs-dpctl| |ovs-appctl| |ovs-vsctl| |ovsdb-
client|
| | +----+----+ +------^---+ +-----+---+ +-------
^----+
| | | Command | | Config |
DB operation
| | +----v---------------v--+ Unix socket +----v---------------v-+
| +--+ +---------------> |
|OpenFlow | ovsdb-vswitchd | | ovsdb-server |
+----------+
+---------------+ <---------------+ |
|ovsdb-tool|
+-----^------------+----+ Apply changes +------------^---------+
+----+-----+
| | |
|
| | |
|
| | +-----v-----+
|
upcall(netlink)| |netlink | ovsdb
<----------+
| | +-----------+
+------------------------------------------------------------------------------------
-----------+
| |
Kernel space
+-----+------------v------+
|Openvswitch kernel module|
+-------------------------+

ovs-vsctl
ovs-vsctl V
ovs-vsctl show
ovs-vsctl list-br
ovs-vsctl list-ports <bridge>
ovs-vsctl add-br <bridge>
ovs-vsctl add-port <bridge> <interface>
ovs-vsctl set-controller <bridge> tcp:<IP>:<port> tcp:<IP>:<port>
ovs-vsctl get-controller <bridge>
ovs-vsctl del-controller <bridge>
ovs-vsctl set-fail-mode <bridge> standalone
ovs-vsctl set-fail-mode <bridge> secure
ovs-vsctl get-fail-mode <bridge>

ovs-ofctl
ovs-ofctl dump-flows <bridge>
ovs-ofctl del-flows <bridge>

ovs-dpctl

ovsappctl

You might also like