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