]> git.proxmox.com Git - ovs.git/blame - vswitchd/ovs-vswitchd.8.in
tests: Fix broken interface-reconfigure tests.
[ovs.git] / vswitchd / ovs-vswitchd.8.in
CommitLineData
7d9809ef
BP
1.\" -*- nroff -*-
2.de IQ
3. br
4. ns
5. IP "\\$1"
6..
f30f26be 7.TH ovs\-vswitchd 8 "June 2009" "Open vSwitch" "Open vSwitch Manual"
812560d7 8.\" This program's name:
064af421 9.ds PN ovs\-vswitchd
812560d7
BP
10.\" SSL peer program's name:
11.ds SN ovs\-controller
064af421
BP
12.
13.SH NAME
f30f26be 14ovs\-vswitchd \- Open vSwitch daemon
064af421
BP
15.
16.SH SYNOPSIS
80df177a 17\fBovs\-vswitchd \fR[\fIdatabase\fR]
064af421
BP
18.
19.SH DESCRIPTION
299a244b 20A daemon that manages and controls any number of Open vSwitch switches
f30f26be 21on the local machine.
064af421 22.PP
80df177a
BP
23The \fIdatabase\fR argument specifies how \fBovs\-vswitchd\fR connects
24to \fBovsdb\-server\fR. The default is \fBunix:@RUNDIR@/db.sock\fR.
25The following forms are accepted:
6f61c75b 26.so ovsdb/remote-active.man
c9f3f37a 27.so ovsdb/remote-passive.man
064af421 28.PP
76343538
BP
29\fBovs\-vswitchd\fR retrieves its configuration from \fIdatabase\fR at
30startup. It sets up Open vSwitch datapaths and then operates
31switching across each bridge described in its configuration files. As
32the database changes, \fBovs\-vswitchd\fR automatically updates its
33configuration to match.
34.PP
35Upon receipt of a SIGHUP signal, \fBovs\-vswitchd\fR reopens its log
36file, if one was specified on the command line.
064af421 37.PP
299a244b 38\fBovs\-vswitchd\fR switches may be configured with any of the following
f30f26be 39features:
064af421
BP
40.
41.IP \(bu
42L2 switching with MAC learning.
43.
44.IP \(bu
45NIC bonding with automatic fail-over and source MAC-based TX load
46balancing ("SLB").
47.
48.IP \(bu
49802.1Q VLAN support.
50.
51.IP \(bu
52Port mirroring, with optional VLAN tagging.
53.
54.IP \(bu
55NetFlow v5 flow logging.
56.
57.IP \(bu
d1ae8299 58sFlow(R) monitoring.
72b06300
BP
59.
60.IP \(bu
064af421
BP
61Connectivity to an external OpenFlow controller, such as NOX.
62.
63.PP
64Only a single instance of \fBovs\-vswitchd\fR is intended to run at a time.
f30f26be 65A single \fBovs\-vswitchd\fR can manage any number of switch instances, up
064af421
BP
66to the maximum number of supported Open vSwitch datapaths.
67.PP
f30f26be 68\fBovs\-vswitchd\fR does all the necessary management of Open vSwitch datapaths
064af421
BP
69itself. Thus, external tools, such \fBovs\-dpctl\fR(8), are not needed for
70managing datapaths in conjunction with \fBovs\-vswitchd\fR, and their use
71to modify datapaths when \fBovs\-vswitchd\fR is running can interfere with
72its operation. (\fBovs\-dpctl\fR may still be useful for diagnostics.)
73.PP
74An Open vSwitch datapath kernel module must be loaded for \fBovs\-vswitchd\fR
5fca1acd 75to be useful. Please refer to the \fBINSTALL.Linux\fR file included in the
064af421
BP
76Open vSwitch distribution for instructions on how to build and load
77the Open vSwitch kernel module.
78.PP
79.SH OPTIONS
4e312e69 80.IP "\fB\-\-mlockall\fR"
86a06318
BP
81Causes \fBovs\-vswitchd\fR to call the \fBmlockall()\fR function, to
82attempt to lock all of its process memory into physical RAM,
83preventing the kernel from paging any of its memory to disk. This
84helps to avoid networking interruptions due to system memory pressure.
85.IP
86Some systems do not support \fBmlockall()\fR at all, and other systems
87only allow privileged users, such as the superuser, to use it.
88\fBovs\-vswitchd\fR emits a log message if \fBmlockall()\fR is
89unavailable or unsuccessful.
90.
a7ff9bd7
BP
91.ds DD \
92\fBovs\-vswitchd\fR detaches only after it has connected to the \
93database, retrieved the initial configuration, and set up that \
94configuration.
064af421 95.so lib/daemon.man
ac300505 96.SS "Public Key Infrastructure Options"
6f61c75b
BP
97.so lib/ssl.man
98.so lib/ssl-bootstrap.man
064af421
BP
99.so lib/vlog.man
100.so lib/common.man
101.so lib/leak-checker.man
102.
b16fdafe
BP
103.SH "RUNTIME MANAGEMENT COMMANDS"
104\fBovs\-appctl\fR(8) can send commands to a running
105\fBovs\-vswitchd\fR process. The currently supported commands are
106described below. The command descriptions assume an understanding of
76343538 107how to configure Open vSwitch.
9e15c889
BP
108.SS "GENERAL COMMANDS"
109.IP "\fBexit\fR"
110Causes \fBovs\-vswitchd\fR to gracefully terminate.
b674c3f9
JP
111.IP "\fBcoverage/log\fR"
112Logs coverage counters at level warn.
e8fe3026
EJ
113.IP "\fBqos/show\fR \fIinterface\fR"
114Queries the kernel for Quality of Service configuration and statistics
115associated with the given \fIinterface\fR.
ae75dae3 116.IP "\fBcfm/show\fR [\fIinterface\fR]"
20c8e971 117Displays detailed information about Connectivity Fault Management
ae75dae3
JP
118configured on \fIinterface\fR. If \fIinterface\fR is not specified,
119then displays detailed information about all interfaces with CFM
120enabled.
b16fdafe
BP
121.SS "BRIDGE COMMANDS"
122These commands manage bridges.
f0a3aa2e
AA
123.IP "\fBfdb/flush\fR \fIbridge\fR"
124Flushes \fIbridge\fR MAC address learning table.
b16fdafe
BP
125.IP "\fBfdb/show\fR \fIbridge\fR"
126Lists each MAC address/VLAN pair learned by the specified \fIbridge\fR,
127along with the port on which it was learned and the age of the entry,
128in seconds.
fa05809b
BP
129.IP "\fBbridge/reconnect\fR [\fIbridge\fR]"
130Makes \fIbridge\fR drop all of its OpenFlow controller connections and
131reconnect. If \fIbridge\fR is not specified, then all bridges drop
132their controller connections and reconnect.
133.IP
134This command might be useful for debugging OpenFlow controller issues.
cdd35cff 135.
4e312e69 136.IP "\fBbridge/dump\-flows\fR \fIbridge\fR"
cdd35cff 137Lists all flows in \fIbridge\fR, including those normally hidden to
4e312e69 138commands such as \fBovs\-ofctl dump\-flows\fR. Flows set up by mechanisms
cdd35cff
JP
139such as in-band control and fail-open are hidden from the controller
140since it is not allowed to modify or override them.
b16fdafe
BP
141.SS "BOND COMMANDS"
142These commands manage bonded ports on an Open vSwitch's bridges. To
143understand some of these commands, it is important to understand a
be02e7c3
EJ
144detail of the bonding implementation called ``source load balancing''
145(SLB). Instead of directly assigning Ethernet source addresses to
146slaves, the bonding implementation computes a function that maps an
14748-bit Ethernet source addresses into an 8-bit value (a ``MAC hash''
148value). All of the Ethernet addresses that map to a single 8-bit
149value are then assigned to a single slave.
b16fdafe
BP
150.IP "\fBbond/list\fR"
151Lists all of the bonds, and their slaves, on each bridge.
064af421 152.
c33a8a25
EJ
153.IP "\fBbond/show\fR [\fIport\fR]"
154Lists all of the bond-specific information (updelay, downdelay, time
155until the next rebalance) about the given bonded \fIport\fR, or all
156bonded ports if no \fIport\fR is given. Also lists information about
157each slave: whether it is enabled or disabled, the time to completion
158of an updelay or downdelay if one is in progress, whether it is the
159active slave, the hashes assigned to the slave. Any LACP information
160related to this bond may be found using the \fBlacp/show\fR command.
161.
b16fdafe 162.IP "\fBbond/migrate\fR \fIport\fR \fIhash\fR \fIslave\fR"
be02e7c3
EJ
163Only valid for SLB bonds. Assigns a given MAC hash to a new slave.
164\fIport\fR specifies the bond port, \fIhash\fR the MAC hash to be
165migrated (as a decimal number between 0 and 255), and \fIslave\fR the
166new slave to be assigned.
b16fdafe
BP
167.IP
168The reassignment is not permanent: rebalancing or fail-over will
169cause the MAC hash to be shifted to a new slave in the usual
170manner.
171.IP
172A MAC hash cannot be migrated to a disabled slave.
4e312e69 173.IP "\fBbond/set\-active\-slave\fR \fIport\fR \fIslave\fR"
b16fdafe
BP
174Sets \fIslave\fR as the active slave on \fIport\fR. \fIslave\fR must
175currently be enabled.
176.IP
177The setting is not permanent: a new active slave will be selected
178if \fIslave\fR becomes disabled.
4e312e69
BP
179.IP "\fBbond/enable\-slave\fR \fIport\fR \fIslave\fR"
180.IQ "\fBbond/disable\-slave\fR \fIport\fR \fIslave\fR"
b16fdafe
BP
181Enables (or disables) \fIslave\fR on the given bond \fIport\fR, skipping any
182updelay (or downdelay).
183.IP
184This setting is not permanent: it persists only until the carrier
185status of \fIslave\fR changes.
672d18b2 186.IP "\fBbond/hash\fR \fImac\fR [\fIvlan\fR] [\fIbasis\fR]"
e58de0e3 187Returns the hash value which would be used for \fImac\fR with \fIvlan\fR
672d18b2 188and \fIbasis\fR if specified.
064af421 189.
5dab8ece 190.IP "\fBlacp/show\fR [\fIport\fR]"
6aa74308
EJ
191Lists all of the LACP related information about the given \fIport\fR:
192active or passive, aggregation key, system id, and system priority. Also
193lists information about each slave: whether it is enabled or disabled,
194whether it is attached or detached, port id and priority, actor
5dab8ece
JP
195information, and partner information. If \fIport\fR is not specified,
196then displays detailed information about all interfaces with CFM
197enabled.
6aa74308 198.
7aa697dd 199.so ofproto/ofproto-unixctl.man
b16fdafe 200.so lib/vlog-unixctl.man
cc01d0bb 201.so lib/stress-unixctl.man
064af421
BP
202.SH "SEE ALSO"
203.BR ovs\-appctl (8),
064af421 204.BR ovs\-brcompatd (8),
76343538 205.BR ovsdb\-server (1),
5fca1acd 206\fBINSTALL.Linux\fR in the Open vSwitch distribution.