]> git.proxmox.com Git - ovs.git/blame - vswitchd/ovs-vswitchd.8.in
docs: Make SSL manpage fragments less specific to OpenFlow.
[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"
064af421
BP
8.ds PN ovs\-vswitchd
9.
10.SH NAME
f30f26be 11ovs\-vswitchd \- Open vSwitch daemon
064af421
BP
12.
13.SH SYNOPSIS
14.B ovs\-vswitchd
76343538 15\fIdatabase\fR
064af421
BP
16.
17.SH DESCRIPTION
f30f26be
JP
18A daemon that manages and controls any number of Open vSwitch switches
19on the local machine.
064af421 20.PP
76343538
BP
21The mandatory \fIdatabase\fR argument specifies the
22\fBovsdb\-server\fR from which \fBovs\-vswitchd\fR's configuration
23should be retrieved. It takes one of the following forms:
6f61c75b 24.so ovsdb/remote-active.man
064af421 25.PP
76343538
BP
26\fBovs\-vswitchd\fR retrieves its configuration from \fIdatabase\fR at
27startup. It sets up Open vSwitch datapaths and then operates
28switching across each bridge described in its configuration files. As
29the database changes, \fBovs\-vswitchd\fR automatically updates its
30configuration to match.
31.PP
32Upon receipt of a SIGHUP signal, \fBovs\-vswitchd\fR reopens its log
33file, if one was specified on the command line.
064af421 34.PP
f30f26be
JP
35\fBovs\-vswitchd\fR switches may be configured with any of the following
36features:
064af421
BP
37.
38.IP \(bu
39L2 switching with MAC learning.
40.
41.IP \(bu
42NIC bonding with automatic fail-over and source MAC-based TX load
43balancing ("SLB").
44.
45.IP \(bu
46802.1Q VLAN support.
47.
48.IP \(bu
49Port mirroring, with optional VLAN tagging.
50.
51.IP \(bu
52NetFlow v5 flow logging.
53.
54.IP \(bu
d1ae8299 55sFlow(R) monitoring.
72b06300
BP
56.
57.IP \(bu
064af421
BP
58Connectivity to an external OpenFlow controller, such as NOX.
59.
60.PP
61Only a single instance of \fBovs\-vswitchd\fR is intended to run at a time.
f30f26be 62A single \fBovs\-vswitchd\fR can manage any number of switch instances, up
064af421
BP
63to the maximum number of supported Open vSwitch datapaths.
64.PP
f30f26be 65\fBovs\-vswitchd\fR does all the necessary management of Open vSwitch datapaths
064af421
BP
66itself. Thus, external tools, such \fBovs\-dpctl\fR(8), are not needed for
67managing datapaths in conjunction with \fBovs\-vswitchd\fR, and their use
68to modify datapaths when \fBovs\-vswitchd\fR is running can interfere with
69its operation. (\fBovs\-dpctl\fR may still be useful for diagnostics.)
70.PP
71An Open vSwitch datapath kernel module must be loaded for \fBovs\-vswitchd\fR
5fca1acd 72to be useful. Please refer to the \fBINSTALL.Linux\fR file included in the
064af421
BP
73Open vSwitch distribution for instructions on how to build and load
74the Open vSwitch kernel module.
75.PP
76.SH OPTIONS
77.IP "\fB--fake-proc-net\fR"
78Causes \fBovs\-vswitchd\fR to simulate some files in \fB/proc/net/vlan\fR
79and \fB/proc/net/bonding\fR that some legacy software expects to
80exist. This option should only be used if such legacy software is
81actually in use. It requires the \fBbrcompat_mod.ko\fR kernel module
82to be loaded.
83.
84.so lib/daemon.man
6f61c75b
BP
85.so lib/ssl.man
86.so lib/ssl-bootstrap.man
064af421
BP
87.so lib/vlog.man
88.so lib/common.man
89.so lib/leak-checker.man
90.
b16fdafe
BP
91.SH "RUNTIME MANAGEMENT COMMANDS"
92\fBovs\-appctl\fR(8) can send commands to a running
93\fBovs\-vswitchd\fR process. The currently supported commands are
94described below. The command descriptions assume an understanding of
76343538 95how to configure Open vSwitch.
b16fdafe
BP
96.SS "BRIDGE COMMANDS"
97These commands manage bridges.
98.IP "\fBfdb/show\fR \fIbridge\fR"
99Lists each MAC address/VLAN pair learned by the specified \fIbridge\fR,
100along with the port on which it was learned and the age of the entry,
101in seconds.
cdd35cff
JP
102.
103.IP "\fBbridge/dump-flows\fR \fIbridge\fR"
104Lists all flows in \fIbridge\fR, including those normally hidden to
105commands such as \fBovs-ofctl dump-flows\fR. Flows set up by mechanisms
106such as in-band control and fail-open are hidden from the controller
107since it is not allowed to modify or override them.
b16fdafe
BP
108.SS "BOND COMMANDS"
109These commands manage bonded ports on an Open vSwitch's bridges. To
110understand some of these commands, it is important to understand a
111detail of the bonding implementation called ``MAC hashing.'' Instead
112of directly assigning Ethernet source addresses to slaves, the bonding
113implementation computes a function that maps an 48-bit Ethernet source
114addresses into an 8-bit value (a ``MAC hash'' value). All of the
115Ethernet addresses that map to a single 8-bit value are then assigned
116to a single slave.
117.IP "\fBbond/list\fR"
118Lists all of the bonds, and their slaves, on each bridge.
064af421 119.
b16fdafe
BP
120.IP "\fBbond/show\fR \fIport\fR"
121Lists all of the bond-specific information about the given bonded
122\fIport\fR: updelay, downdelay, time until the next rebalance. Also
123lists information about each slave: whether it is enabled or disabled,
124the time to completion of an updelay or downdelay if one is in
125progress, whether it is the active slave, the MAC hashes assigned to
126the slave, and the MAC learning table entries that hash to each MAC.
127.IP "\fBbond/migrate\fR \fIport\fR \fIhash\fR \fIslave\fR"
128Assigns a given MAC hash to a new slave. \fIport\fR specifies the
129bond port, \fIhash\fR either the MAC hash to be migrated (as a decimal
130number between 0 and 255) or an Ethernet address to be hashed, and
131\fIslave\fR the new slave to be assigned.
132.IP
133The reassignment is not permanent: rebalancing or fail-over will
134cause the MAC hash to be shifted to a new slave in the usual
135manner.
136.IP
137A MAC hash cannot be migrated to a disabled slave.
138.IP "\fBbond/set-active-slave\fR \fIport\fR \fIslave\fR"
139Sets \fIslave\fR as the active slave on \fIport\fR. \fIslave\fR must
140currently be enabled.
141.IP
142The setting is not permanent: a new active slave will be selected
143if \fIslave\fR becomes disabled.
144.IP "\fBbond/enable-slave\fR \fIport\fR \fIslave\fR"
145.IQ "\fBbond/disable-slave\fR \fIport\fR \fIslave\fR"
146Enables (or disables) \fIslave\fR on the given bond \fIport\fR, skipping any
147updelay (or downdelay).
148.IP
149This setting is not permanent: it persists only until the carrier
150status of \fIslave\fR changes.
e0644b61
IC
151.IP "\fBbond/hash\fR \fImac\fR"
152Returns the hash value which would be used for \fImac\fR.
064af421 153.
b16fdafe 154.so lib/vlog-unixctl.man
064af421
BP
155.SH "SEE ALSO"
156.BR ovs\-appctl (8),
064af421 157.BR ovs\-brcompatd (8),
76343538 158.BR ovsdb\-server (1),
5fca1acd 159\fBINSTALL.Linux\fR in the Open vSwitch distribution.