]> git.proxmox.com Git - ovs.git/blame - INSTALL.userspace
openflowd: Update for changes to dpif and netdev.
[ovs.git] / INSTALL.userspace
CommitLineData
d377243b
BP
1 Using Open vSwitch without kernel support
2 =========================================
3
4Open vSwitch can operate, at a cost in performance, entirely in
5userspace, without assistance from a kernel module. This file
6explains how to install Open vSwitch in such a mode.
7
8The userspace-only mode of Open vSwitch is considered experimental.
9It has not been thoroughly tested.
10
11This version of Open vSwitch should be built manually with "configure"
12and "make". Debian packaging for Open vSwitch is also included, but
13it has not been recently tested, and so Debian packages are not a
14recommended way to use this version of Open vSwitch.
15
16Building and Installing
17-----------------------
18
19The requirements and procedure for building, installing, and
20configuring Open vSwitch are the same as those given in INSTALL.Linux.
21You may omit configuring, building, and installing the kernel module,
22and the related requirements.
23
24On Linux, the userspace switch additionally requires the kernel
25TUN/TAP driver to be available, either built into the kernel or loaded
26as a module. If you are not sure, check for a directory named
27/sys/class/misc/tun. If it does not exist, then attempt to load the
28module with "modprobe tun".
29
30The tun device must also exist as /dev/net/tun. If it does not exist,
31then create /dev/net (if necessary) with "mkdir /dev/net", then create
32/dev/net/tun with "mknod /dev/net/tun c 10 200".
33
e3e9370b
BP
34Using the Userspace Datapath with ovs-vswitchd
35----------------------------------------------
d377243b
BP
36
37To use ovs-vswitchd in userspace mode, give the bridge a name that
38begins with "netdev:" in the configuration file. For example:
39
40 bridge.netdev:br0.port=eth0
41 bridge.netdev:br0.port=eth1
42 bridge.netdev:br0.port=eth2
43
44ovs-vswitchd will create a TAP device as the bridge's local interface,
45named the same as the bridge minus the "netdev:" prefix, as well as
46for each configured internal interface.
47
e3e9370b
BP
48Using the Userspace Datapath with ovs-openflowd
49-----------------------------------------------
50
51To use ovs-openflowd in userspace mode, specify a datapath name that
52begins with "netdev:", and specify --ports with the names of the ports
53that should be included in the datapath as argument. For example:
54
55 ovs-openflowd netdev:br0 --ports=eth0,eth1,eth2
56
57ovs-openflowd will create a TAP device as the bridge's local
58interface, named the same as the bridge minus the "netdev:" prefix.
59
d377243b
BP
60Bug Reporting
61-------------
62
63Please report problems to bugs@openvswitch.org.