Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.
[sliver-openvswitch.git] / vswitchd / ovs-vswitchd.conf.5.in
1 .\" -*- nroff -*-
2 .de TQ
3 .  br
4 .  ns
5 .  TP "\\$1"
6 ..
7 .de IQ
8 .  br
9 .  ns
10 .  IP "\\$1"
11 ..
12 .de ST
13 .  PP
14 .  RS -0.15in
15 .  I "\\$1"
16 .  RE
17 .  PP
18 ..
19 .TH ovs\-vswitchd.conf 5 "April 2009" "Open vSwitch" "OpenVSwitch Manual"
20 .
21 .SH NAME
22 ovs\-vswitchd.conf \- configuration file for \fBovs\-vswitchd\fR
23 .
24 .SH DESCRIPTION
25 This manual page describes the syntax for the configuration file used 
26 by \fBovs\-vswitchd\fR(8), the virtual switch daemon.
27 .PP
28 The configuration file is based on key-value pairs, which are given
29 one per line in the form \fIkey\fB=\fIvalue\fR.  Each \fIkey\fR
30 consists of one or more parts separated by dots,
31 e.g. \fIpart1\fB.\fIpart2\fB.\fIpart3\fR.  Each \fIpart\fR may consist
32 only of the English letters, digits, and the special characters
33 \fB_-@$:+\fR.  White space within \fIvalue\fR  and at the beginning of a
34 line is significant, but is otherwise ignored.
35 .PP
36 If a single key is specified more than once, that key has multiple
37 values, one value for each time the key is specified.  The ordering of
38 key-value pairs, and the ordering of multiple values for a single key,
39 within a configuration file is not significant.
40 .PP
41 Blank lines, lines that consist only of white space, and lines that
42 begin with \fB#\fR (optionally preceded by white space) are ignored.
43 Keep in mind that programs that modify the configuration file, such as 
44 \fBovs\-brcompatd\fR and \fBovs-cfg-mod\fR, may alter the order of
45 elements and 
46 strip comments and blank lines.
47 .PP
48 The following subsections describe how key-value pairs are used to
49 configure \fBovs\-vswitchd\fR.
50 .SS "Bridge Configuration"
51 A bridge (switch) with a given \fIname\fR is configured by specifying
52 the names of its network devices as values for key
53 \fBbridge.\fIname\fB.port\fR.  (The specified \fIname\fR may not begin
54 with \fBdp\fR or \fBnl:\fR followed by a digit.)
55 .PP
56 The names given on \fBbridge.\fIname\fB.port\fR must be the names of
57 existing network devices, except for ``internal ports.''  An internal
58 port is a simulated network device that receives traffic only
59 through the virtual switch and switches any traffic sent it through
60 virtual switch.  An internal port may configured with an IP address,
61 etc. using the usual system tools (e.g. \fBifconfig\fR, \fBip\fR).  To
62 designate network device \fInetdev\fR as an internal port, add
63 \fBiface.\fInetdev\fB.internal=true\fR to the configuration file.
64 \fBovs\-vswitchd\fR will honor this configuration setting by automatically
65 creating the named internal port.
66 .PP
67 A bridge with a given \fIname\fR always has an internal port with the
68 same \fIname\fR, called the ``local port.''  This network device may
69 be included
70 in the bridge, by specifying it as one of the values for key
71 \fBbridge.\fIname\fB.port\fR, or it may be omitted.  If it is
72 included, then its MAC address is by default the lowest-numbered MAC
73 address among the other bridge ports, ignoring other internal ports
74 and bridge ports that are
75 used as port mirroring destinations (see \fBPort Mirroring\fR, below).  To
76 use a specific MAC address instead, set \fBbridge.\fIname\fB.mac\fR to
77 a MAC address in the format
78 \fIxx\fB:\fIxx\fB:\fIxx\fB:\fIxx\fB:\fIxx\fB:\fIxx\fR, where each
79 \fIx\fR is a hex digit.  If no valid MAC address can be determined
80 either of these ways, then a MAC address is randomly generated.
81 .PP
82 The following syntax defines a bridge named \fBmybr\fR, configured
83 with network devices \fBeth0\fR, \fBeth1\fR, and \fBeth2\fR:
84 .RS
85 .nf
86
87 bridge.mybr.port=eth0
88 bridge.mybr.port=eth1
89 bridge.mybr.port=eth2
90
91 .fi
92 .RE
93 .SS "802.1Q VLAN support"
94 A bridge port may be configured either as a trunk port or as belonging
95 to a single, untagged VLAN.  These two options are mutually exclusive,
96 and a port must be configured in one way or the other.
97 .ST "Trunk Ports"
98 By default, bridge ports are trunk ports that carry all VLANs.  To
99 limit the VLANs that a trunk port carries, define
100 \fBvlan.\fIport\fB.trunks\fR to one or more integers between 0 and
101 4095 designating VLANs.  Only frames that have an 802.1Q header with
102 one of the listed VLANs are accepted on a trunk port.  If 0 is
103 included in the list, then frames without an 802.1Q header are also
104 accepted.  Other frames are discarded.
105 .PP
106 The following syntax makes network device \fBeth0\fR a trunk port that
107 carries VLANs 1, 2, and 3:
108 .PP
109 .RS
110 .nf
111
112 vlan.eth0.trunks=1
113 vlan.eth0.trunks=2
114 vlan.eth0.trunks=3
115         
116 .fi
117 .RE
118 .ST "Untagged VLAN Ports"
119 A bridge port may be configured with an implicit, untagged VLAN.  
120 Define key
121 \fBvlan.\fIport\fB.tag\fR to an integer value \fIvid\fR between 0 and
122 4095, inclusive, to designate the named \fIport\fR as a member
123 of 802.1Q VLAN \fIvid\fR.  When \fIport\fR is assigned a VLAN tag this
124 way, frames arriving on trunk ports will be forwarded to \fIport\fR
125 only if they are tagged with VLAN \fIvid\fR, and frames arriving on
126 other VLAN ports will be forwarded to \fIport\fR only if their
127 \fIvid\fR values are equal.  Frames forwarded to \fIport\fR will not
128 have an 802.1Q header.
129 .PP
130 When \fIvid\fR is 0, frames arriving on trunk ports without an 802.1Q
131 VLAN header will also be forwarded to \fIport\fR.
132 .PP
133 When a frame with a 802.1Q header that indicates a nonzero VLAN is
134 received on an implicit VLAN port, it is discarded.
135 .PP
136 The following syntax makes network device \fBeth0\fR a member of VLAN
137 101:
138 .PP
139 .RS
140 .nf
141
142 vlan.eth0.tag=101
143         
144 .fi
145 .RE
146 .SS "Network Device Bonding"
147 Bonding allows multiple ``slave'' network devices to be treated as if
148 they were a single virtual ``bonded'' network device.  It is useful for
149 load balancing and fail-over.
150 .PP
151 \fBovs\-vswitchd\fR supports ``source load balancing'' (SLB) bonding, which
152 assigns flows to slaves based on source MAC address, with periodic
153 rebalancing as traffic patterns change.  This form of bonding does not
154 require 802.3ad or other special support from the upstream switch to
155 which the slave devices are connected.
156 .PP
157 To configure bonding, create a virtual bonding device by specifying
158 the slave network device names as values for
159 \fBbonding.\fIname\fB.slave\fR, then specify \fIname\fR as a bridge
160 port.  The chosen \fIname\fR should not be the name of any real
161 network device on the host system.
162 .PP
163 By default, bonding interfaces are enabled or disabled immediately
164 when a carrier is detected or dropped on the underlying network
165 device.  To insert a delay when carrier comes up or goes down before
166 enabling or disabling an interface, set the value of
167 \fBbonding.\fIname\fB.updelay\fR or
168 \fBbonding.\fIname\fB.downdelay\fR, respectively, to a positive
169 integer, interpreted in milliseconds.
170 .PP
171 The following syntax bonds \fBeth0\fR and \fBeth1\fR into a bonding
172 device named \fBbond0\fR, which is added to bridge \fBmybr\fR along
173 with physical network devices \fBeth2\fR and \fBeth3\fR:
174 .PP
175 .RS
176 .nf
177
178 bridge.mybr.port=bond0
179 bridge.mybr.port=eth2
180 bridge.mybr.port=eth3
181
182 bonding.bond0.slave=eth0
183 bonding.bond0.slave=eth1
184         
185 .fi
186 .RE
187 .SS "Port Mirroring (SPAN and RSPAN)"
188 \fBovs\-vswitchd\fR may be configured to send selected frames to special
189 ``mirrored'' ports, in addition to their normal destinations.  Mirroring
190 traffic may also be referred to as SPAN or RSPAN, depending on the
191 mechanism used for delivery.
192 .PP
193 Up to 32 instances of port mirroring may be configured on a given
194 bridge.  Each must be given a name that is unique within the bridge.
195 The keys associated with port mirroring instance \fIpmname\fR for
196 bridge \fIbrname\fR begin with \fBmirror.\fIbrname\fB.\fIpmname\fR.
197 .PP
198 The selection of the frames to mirror and the form in which they
199 should be output is configured separately for each port mirroring
200 instances, through a subsection of
201 \fBmirror.\fIbrname\fB.\fIpmname\fR, named \fBselect\fR, and
202 \fBoutput\fR, respectively.
203 .ST "Selecting Frames to Mirror"
204 The values for the following keys, if specified, limit the frames that
205 are chosen for mirroring.  If none of these keys is specified, then
206 all frames received by the bridge are mirrored.  If more than one of
207 these keys is specified, then a frame must meet all specified criteria
208 to be mirrored.
209 .TP
210 \fBmirror.\fIbrname\fB.\fIpmname\fB.select.src-port=\fIport\fR
211 .TQ
212 \fBmirror.\fIbrname\fB.\fIpmname\fB.select.dst-port=\fIport\fR
213 .TQ
214 \fBmirror.\fIbrname\fB.\fIpmname\fB.select.port=\fIport\fR
215 Frame received on \fIport\fR, output to \fIport\fR, or either received
216 on or output to \fIport\fR, respectively.  \fIport\fR must be part of
217 the bridge \fIbrname\fR; that is, it must be listed on
218 \fBbridge.\fIbrname\fB.port\fR.
219 .TP
220 \fBmirror.\fIbrname\fB.\fIpmname\fB.select.vlan=\fIvid\fR
221 .
222 \fIvid\fR must be an integer between 0 and 4095, inclusive.  A nonzero
223 \fIvid\fR selects frames that belong to VLAN \fIvid\fR, that is,
224 frames that arrived on a trunk port tagged with VLAN \fIvid\fR or on a
225 port that is configured as part of VLAN \fIvid\fR (see \fB802.1Q VLAN
226 tagging\fR, above).  A \fIvid\fR of zero selects frames that do not
227 belong to a VLAN, that is, frames that arrived on a trunk port without
228 a VLAN tag or tagged with VLAN 0.
229 .ST "Mirror Output"
230 The values of the following keys determine how frames selected for
231 mirroring are output.  Only one of the keys may be specified.
232 .TP
233 \fBmirror.\fIbrname\fB.\fIpmname\fB.output.port=\fIport\fR
234 .
235 Causes the selected frames to be sent out \fIport\fR, which must be
236 part of the bridge \fIbrname\fR; that is, it must be listed on
237 \fBbridge.\fIbrname\fB.port\fR.
238 .IP
239 Specifying a \fIport\fR in this way reserves that port exclusively for
240 mirroring.  No frames other than those selected for mirroring will be
241 forwarded to \fIport\fR, and any frames received on \fIport\fR will be
242 discarded.  This type of mirroring may be referred to as SPAN.
243 .TP
244 \fBmirror.\fIbrname\fB.\fIpmname\fB.output.vlan=\fIvid\fR
245 .
246 Causes the selected frames to be sent on the VLAN numbered \fIvid\fR,
247 which must be an integer between 0 and 4095, inclusive.  The frames
248 will be sent out all ports that trunk VLAN \fIvid\fR, as well as any
249 ports with implicit VLAN \fIvid\fR.  When a mirrored frame is sent out
250 a trunk port, the frame's VLAN tag will be set to \fIvid\fR, replacing
251 any existing tag; when it is sent out an implicit VLAN port, the frame
252 will not be tagged.  This type of mirroring may be referred to as
253 RSPAN.
254 .ST "Example"
255 The following \fBovs\-vswitchd\fR configuration copies all frames received
256 on \fBeth1\fR or \fBeth2\fR to \fBeth3\fR.
257 .PP
258 .RS
259 .nf
260
261 bridge.mybr.port=eth1
262 bridge.mybr.port=eth2
263 bridge.mybr.port=eth3
264
265 mirror.mybr.a.select.src-port=eth1
266 mirror.mybr.a.select.src-port=eth2
267 mirror.mybr.a.output.port=eth3
268         
269 .fi
270 .RE
271 .SS "Port Rate-Limiting"
272 Traffic policing and shaping are configured on physical ports.  Policing
273 defines a hard limit at which traffic that exceeds the specified rate is
274 dropped.  Shaping uses queues to delay packets so that egress traffic
275 leaves at the specified rate.
276
277 .ST "Ingress Policing"
278 The rate at which traffic is allowed to enter through a particular
279 physical port can be configured with ingress policing.  The rate is 
280 specified in kilobits (1000 bits) per second with a maximum burst size 
281 specified in kilobits (1000 bits).  The burst size should be at least
282 the size of the port's MTU. 
283
284 A port may be configured to enforce ingress policing by defining the
285 key \fBport.\fIname\fB.ingress.policing-rate\fR with an integer
286 indicating the rate.  The port \fIname\fR will only allow traffic to be
287 received at the rate specified in kilobits per second.  If the rate is zero 
288 or the key is not defined, then ingress policing is disabled.
289
290 If ingress policing is enabled, then the burst rate may be set by defining 
291 the key \fBport.\fIname\fB.ingress.policing-burst\fR with an integer 
292 indicating the burst rate in kilobits.  If the key is not supplied or is 
293 zero, then the default burst is 10 kilobits.
294
295 .PP
296 The following syntax limits port \fBeth1\fR to receiving traffic at
297 \fB512\fR kilobits per second with a burst of \fB20\fR kilobits:
298 .PP
299 .RS
300 .nf
301
302 port.eth1.ingress.policing-rate=512
303 port.eth1.ingress.policing-burst=20
304
305 .fi
306 .SS "NetFlow v5 Flow Logging"
307 NetFlow is a protocol that exports a number of details about terminating 
308 IP flows, such as the principals involved and duration.  A bridge may be 
309 configured to send NetFlow v5 records to NetFlow collectors when flows 
310 end.  To enable, define the key \fBnetflow.\fIbridge\fB.host\fR for each 
311 collector in the form \fIhost\fB:\fIport\fR.  Records from \fIbridge\fR 
312 will be sent to each \fIhost\fR on UDP \fIport\fR.
313
314 The NetFlow messages will use the datapath index for the engine type and id.  
315 This can be overridden with the \fBnetflow.\fIbridge\fB.engine-type\fR and 
316 \fBnetflow.\fIbridge\fB.engine-id\fR, respectively.  Each takes a value
317 between 0 and 255, inclusive. 
318
319 Many NetFlow collectors do not expect multiple virtual switches to be
320 sending messages from the same host, and they do not store the engine
321 information which could be used to disambiguate the traffic.  To prevent
322 flows from multiple switches appearing as if they came on the interface,
323 add \fBnetflow.\fIbridge\fB.add-id-to-iface=true\fR to the configuration
324 file.  This will place the least significant 7 bits of the engine id
325 into the most significant bits of the ingress and egress interface fields 
326 of flow records.  By default, this behavior is disabled.
327
328 The following syntax sends NetFlow records for \fBmybr\fR to the NetFlow
329 collector \fBnflow.example.com\fR on UDP port \fB9995\fR:
330 .PP
331 .RS
332 .nf
333
334 netflow.mybr.host=nflow.example.com:9995
335
336 .fi
337 .RE
338 .SS "Remote Management"
339 A \fBovs\-vswitchd\fR instance may be remotely managed by a controller that
340 supports the OpenFlow Management Protocol, such as NOX.  This
341 functionality is enabled by setting the key \fBmgmt.controller\fR to one 
342 of the following values:
343 .
344 .TP
345 \fBssl:\fIhost\fR[\fB:\fIport\fR]
346 The specified SSL \fIport\fR (default: 6633) on the given remote
347 \fIhost\fR.  SSL must be configured when this form is used (see \fBSSL
348 Configuration\fR, below).
349 .
350 .TP
351 \fBtcp:\fIhost\fR[\fB:\fIport\fR]
352 The specified TCP \fIport\fR (default: 6633) on the given remote
353 \fIhost\fR.
354 .PP
355 The maximum time between attempts to connect to the controller may be
356 specified in integral seconds with the \fBmgmt.max-backoff\fR key.  The
357 default maximum backoff is 15 seconds, and the minimum value is 1
358 second.
359
360 An inactivity probe may be configured with the \fBmgmt.inactivity-probe\fR
361 key.  If \fBovs\-vswitchd\fR does not communicate with the controller for the
362 specified number of seconds, it will send a probe.  If a response is not
363 received for an additional amount of that time, \fBovs\-vswitchd\fR assumes
364 the connection has been broken and attempts to reconnect.  The default
365 is 15 seconds, and the minimum value is 5 seconds.
366
367 A management id may be specified with the \fBmgmt.id\fR key.  It takes
368 an id in the form of exactly 12 hexadecimal digits.  If one is not
369 specified, a random id is generated each time \fBovs\-vswitchd\fR is started.
370 .fi
371 .RE
372 .SS "OpenFlow Controller Connectivity"
373 \fBovs\-vswitchd\fR can perform all configured bridging and switching
374 locally, or it can be configured to connect a given bridge to an
375 external OpenFlow controller, such as NOX.  Its behavior depends on
376 the \fBbridge.\fIname\fB.controller\fR setting:
377 .
378 .TP
379 \fI\[la]unset\[ra]\fR
380 When the key is not set, the behavior depends on whether remote 
381 management is configured.  If management is configured, then the switch 
382 will connect to the controller specified on \fBmgmt.controller\fR.  If 
383 management is not configured, the switch will perform all configured 
384 bridging and switching locally.
385 .
386 .TP
387 \fI\[la]empty\[ra]\fR
388 Setting an empty string value disables controller connectivity.  The
389 switch will perform all configured bridging and switching locally.
390 .
391 .TP
392 \fBdiscover\fR
393 Use controller discovery to find the local OpenFlow controller.
394 Refer to \fBsecchan\fR(8) for information on how to configure a DHCP
395 server to support controller discovery.  The following additional
396 options control the discovery process:
397 .
398 .RS
399 .TP
400 \fBbridge.\fIname\fB.controller.accept-regex=\fIregex\fR
401 A POSIX extended regular expression against which the discovered
402 controller location is validated.  Only controllers whose names match
403 the regular expression will be accepted.
404 .IP
405 The default regular expression is \fBssl:.*\fR, meaning that only SSL
406 controller connections will be accepted, when SSL is configured (see
407 \fBSSL Configuration\fR), and \fB.*\fR otherwise, meaning that any
408 controller will be accepted.
409 .IP
410 The regular expression is implicitly anchored at the beginning of the
411 controller location string, as if it begins with \fB^\fR.
412 .TP
413 \fBbridge.\fIname\fB.controller.update-resolv.conf=\fBtrue\fR|\fBfalse\fR
414 By default, or if this is set to \fBtrue\fR, \fBovs\-vswitchd\fR overwrites
415 the system's \fB/etc/resolv.conf\fR with domain information and DNS
416 servers obtained via DHCP.  If this setting is \fBfalse\fR,
417 \fBovs\-vswitchd\fR will not modify \fB/etc/resolv.conf\fR.
418 .IP
419 \fBovs\-vswitchd\fR will only modify \fBresolv.conf\fR if the DHCP response
420 that it receives specifies one or more DNS servers.
421 .RE
422 .
423 .TP
424 \fBssl:\fIhost\fR[\fB:\fIport\fR]
425 The specified SSL \fIport\fR (default: 6633) on the given remote
426 \fIhost\fR.  SSL must be configured when this form is used (see \fBSSL
427 Configuration\fR, below).
428 .
429 .TP
430 \fBtcp:\fIhost\fR[\fB:\fIport\fR]
431 The specified TCP \fIport\fR (default: 6633) on the given remote
432 \fIhost\fR.
433 .
434 .TP
435 \fBunix:\fIfile\fR
436 The Unix domain server socket named \fIfile\fR.
437 .PP
438 The datapath ID used by the bridge to identify itself to the remote
439 controller may be specified as \fBbridge.\fIname\fB.datapath-id\fR,
440 in the form of exactly 12 hexadecimal digits.  If the datapath ID
441 is not specified, then it defaults to the bridge's MAC address (see
442 \fBBridge Configuration\fR, above, for information on how the bridge's
443 MAC address is chosen).
444 .ST "Local Port Network Configuration"
445 When an external controller is configured, but controller discovery is
446 not in use, the following additional settings are honored:
447 .TP
448 \fBbridge.\fIname\fB.controller.in-band=\fBtrue\fR|\fBfalse\fR
449 By default, or if this is set to \fBtrue\fR, \fBovs\-vswitchd\fR connects
450 to the controller in-band.  If this is set to \fBfalse\fR,
451 \fBovs\-vswitchd\fR connects to the controller out-of-band.  Refer to
452 \fBsecchan\fR(8) for a description of in-band and out-of-band control.
453 .IP "\fBbridge.\fIname\fB.controller.ip=\fIip\fR"
454 If specified, the IP address to configure on the bridge's local port.
455 .IP "\fBbridge.\fIname\fB.controller.netmask=\fInetmask\fR"
456 When an IP is specified, the corresponding netmask.  The default is
457 255.255.255.0 for a Class C IP address, 255.255.0.0 for Class B, and
458 255.0.0.0 for Class A.
459 .IP "\fBbridge.\fIname\fB.controller.gateway=\fIip\fR"
460 When an IP is specified, the corresponding IP gateway.  There is no
461 default gateway.
462 .ST "Controller Failure Settings"
463 The following additional settings take effect when any remote
464 controller is configured:
465 .IP "\fBbridge.\fIname\fB.controller.inactivity-probe=\fIsecs\fR"
466 This optional setting may be set to \fIsecs\fR, a number of seconds.
467 The minimum value of \fIsecs\fR is 5 seconds.  The default is taken
468 from \fBmgmt.inactivity-probe\fR (see above).
469 .IP
470 When the virtual switch is connected to the controller, it waits for a
471 message to be received from the controller for \fIsecs\fR seconds
472 before it sends a inactivity probe to the controller.  After sending
473 the inactivity probe, if no response is received for an additional
474 \fIsecs\fR seconds, the secure channel assumes that the connection has
475 been broken and attempts to reconnect.
476 .IP
477 Changing the inactivity probe interval also changes the interval
478 before entering standalone mode (see below).
479 .IP "\fBbridge.\fIname\fB.controller.fail-mode=\fBstandalone\fR|\fBsecure\fR"
480 .IQ "\fBmgmt.fail-mode=standalone\fR|\fBsecure\fR"
481 When a controller is configured, it is, ordinarily, responsible for
482 setting up all flows on the virtual switch.  Thus, if the connection to
483 the controller fails, no new network connections can be set up.  If
484 the connection to the controller stays down long enough, no packets
485 can pass through the switch at all.
486 .IP
487 The first of these that is set takes effect.
488 If the value is \fBstandalone\fR, \fBovs\-vswitchd\fR will take over
489 responsibility for setting up
490 flows when no message has been received from the controller for three
491 times the inactivity probe interval (see above).  In this mode,
492 \fBovs\-vswitchd\fR causes the datapath to act like an ordinary
493 MAC-learning switch.  \fBovs\-vswitchd\fR will continue to retry connecting
494 to the controller in the background and, when the connection succeeds,
495 it discontinues its standalone behavior.
496 .IP
497 If this option is set to \fBsecure\fR, or if neither of these settings
498 is set, \fBovs\-vswitchd\fR will not set up flows on its own when the
499 controller connection fails.
500 .IP "\fBbridge.\fIname\fB.controller.max-backoff=\fIsecs\fR"
501 Sets the maximum time between attempts to connect to the controller to
502 \fIsecs\fR, which must be at least 1.  The actual interval between
503 connection attempts starts at 1 second and doubles on each failing
504 attempt until it reaches the maximum.  The default maximum backoff
505 time is taken from \fBmgmt.max-backoff\fR.
506 .ST "Controller Rate-Limiting"
507 These settings configure how the virtual switch applies a ``token
508 bucket'' to limit the rate at which packets in unknown flows are
509 forwarded to the OpenFlow controller for flow-setup processing.  This
510 feature prevents a single bridge from overwhelming a controller.
511 .IP "\fBbridge.\fIname\fB.controller.rate-limit=\fIrate\fR"
512 .IQ "\fBmgmt.rate-limit=\fIrate\fR"
513 Limits the maximum rate at which packets will be forwarded to the
514 OpenFlow controller to \fIrate\fR packets per second.  A rate specified
515 explicitly for \fIname\fR overrides a value configured using the
516 \fBmgmt.rate-limit\fR key.
517 .IP
518 If neither one of these settings is set, then the bridge does not
519 limit the rate at which packets are forwarded to the controller.
520 .IP "\fBbridge.\fIname\fB.controller.burst-limit=\fIburst\fR"
521 .IQ "\fBmgmt.burst-limit=\fIburst\fR"
522 Sets the maximum number of unused packet credits that the bridge will
523 allow to accumulate during the time in which no packets are being
524 forwarded to the OpenFlow controller to \fIburst\fR (measured in
525 packets).  The default \fIburst\fR is one-quarter of the \fIrate\fR
526 specified in the rate-limit setting.
527 .IP
528 A burst specified explicitly for \fIname\fR overrides a value configured 
529 using the \fBmgmt.burst-limit\fR key.  This option takes effect only 
530 when a rate-limit is specified.
531 .ST "Remote Command Execution Settings"
532 These settings configure the commands that remote OpenFlow connections
533 are allowed to invoke using (e.g.) \fBovs\-ofctl execute\fR.  To be
534 permitted, a command name must be whitelisted and must not be
535 blacklisted.  When the whitelist and blacklist permit a command name,
536 \fBovs\-vswitchd\fR looks for a program with the same name as the command
537 in the commands directory (see below).  Other directories are not
538 searched.
539 .IP "\fBbridge.\fIname\fB.controller.commands.acl=\fIglob\fR"
540 Whitelists commands whose names match shell glob pattern \fIglob\fR,
541 allowing those commands to be invoked by the remote controller.
542 .IP
543 By default, no commands are whitelisted, so this setting is mandatory
544 if any remote command execution is to be allowed.
545 .IP "\fBbridge.\fIname\fB.controller.commands.acl=\fB!\fR\fIglob\fR"
546 Blacklists commands whose names match shell glob pattern \fIglob\fR,
547 prohibiting those commands from being invoked by the remote
548 controller.  Command names that include characters other than upper-
549 and lower-case English letters, digits, and the underscore and hyphen
550 characters are blacklisted unconditionally.
551 .IP "\fBbridge.\fIname\fB.controller.commands.dir=\fIdirectory\fR"
552 Sets the directory searched for remote command execution to
553 \fIdirectory\fR.  The default directory is
554 \fB@pkgdatadir@/commands\fR.
555 .SS "SSL Configuration"
556 When \fBovs\-vswitchd\fR is configured to connect over SSL for management or
557 for controller connectivity, the following settings are required:
558 .TP
559 \fBssl.private-key=\fIprivkey.pem\fR
560 Specifies a PEM file containing the private key used as the virtual
561 switch's identity for SSL connections to the controller.
562 .TP
563 \fBssl.certificate=\fIcert.pem\fR
564 Specifies a PEM file containing a certificate, signed by the
565 certificate authority (CA) used by the controller and manager, that
566 certifies the virtual switch's private key, identifying a trustworthy
567 switch.
568 .TP
569 \fBssl.ca-cert=\fIcacert.pem\fR
570 Specifies a PEM file containing the CA certificate used to verify that
571 the virtual switch is connected to a trustworthy controller.
572 .PP
573 These files are read only once, at \fBovs\-vswitchd\fR startup time.  If
574 their contents change, \fBovs\-vswitchd\fR must be killed and restarted.
575 .PP
576 These SSL settings apply to all SSL connections made by the virtual
577 switch.
578 .ST "CA Certificate Bootstrap"
579 Ordinarily, all of the files named in the SSL configuration must exist
580 when \fBovs\-vswitchd\fR starts.  However, if \fBssl.bootstrap-ca-cert\fR
581 is set to \fBtrue\fR, then \fBovs\-vswitchd\fR will attempt to obtain the
582 CA certificate from the controller on its first SSL connection and
583 save it to the named PEM file.  If it is successful, it will
584 immediately drop the connection and reconnect, and from then on all
585 SSL connections must be authenticated by a certificate signed by the
586 CA certificate thus obtained.
587 .PP
588 \fBThis option exposes the SSL connection to a man-in-the-middle
589 attack obtaining the initial CA certificate\fR, but it may be useful
590 for bootstrapping.
591 .PP
592 This option is only useful if the controller sends its CA certificate
593 as part of the SSL certificate chain.  The SSL protocol does not
594 require the controller to send the CA certificate, but
595 \fBcontroller\fR(8) can be configured to do so with the
596 \fB--peer-ca-cert\fR option.
597 .SS "OpenFlow Management Connections"
598 By default, each bridge \fIname\fR listens for OpenFlow management
599 connections on a Unix domain socket named
600 \fB@RUNDIR@/\fIname\fB.mgmt\fR.  This socket can be used to perform
601 local OpenFlow monitoring and administration, e.g., \fBovs\-ofctl dump-flows
602 unix:@RUNDIR@/\fIname\fB.mgmt\fR to display the flows currently set up
603 in bridge \fIname\fR.
604 .PP
605 If \fBbridge.\fIname\fB.openflow.listeners\fR is set to one or more
606 values, \fBovs\-vswitchd\fR instead listens on the specified connection
607 methods.  Acceptable connection methods include:
608 .RS
609 .IP "\fBpunix:\fIfile\fR"
610 Listens for connections on the Unix domain server socket named \fIfile\fR.
611 .IP "\fBpssl:\fR[\fIport\fR]"
612 Listens for SSL connections on \fIport\fR (default: 6633).  SSL must
613 be configured when this form is used (see \fBSSL Configuration\fR,
614 above).
615 .IP "\fBptcp:\fR[\fIport\fR]"
616 Listens for TCP connections on \fIport\fR (default: 6633).
617 .RE
618 To entirely disable listening for management connections, set
619 \fBbridge.\fIname\fB.openflow.listeners\fR to the single value
620 \fBnone\fR.
621
622 .SS "OpenFlow Controller Connection Snooping"
623 By default, each bridge \fIname\fR listens for OpenFlow controller
624 connection snooping connections on a Unix domain socket named
625 \fB@RUNDIR@/\fIname\fB.snoop\fR.  A client that connects to this
626 socket, e.g., \fBovs\-ofctl monitor unix:@RUNDIR@/\fIname\fB.snoop\fR, will
627 receive a copy of every OpenFlow message sent by the switch to the
628 controller, or vice versa, on the primary OpenFlow controller
629 connection.
630 .PP
631 If \fBbridge.\fIname\fB.openflow.snoops\fR is set to one or more
632 values, \fBovs\-vswitchd\fR instead listens on the specified connection
633 methods.  The acceptable connection methods are the same as for
634 OpenFlow management connections (see above).
635 .PP
636 To entirely disable controller connection snooping, set
637 \fBbridge.\fIname\fB.openflow.snoops\fR to the single value
638 \fBnone\fR.
639 .SH "SEE ALSO"
640 .BR ovs\-brcompatd (8),
641 .BR ovs\-cfg\-mod (8),
642 .BR ovs\-vswitchd (8)