1 README.Debian for openvswitch-switch
2 ---------------------------------
4 * The switch must be configured before it can be used. Edit
5 /etc/default/openvswitch-switch, then start the switch manually with
6 "/etc/init.d/openvswitch-switch start".
8 * To use the Linux kernel-based switch implementation, you will need
9 to build and install the Open vSwitch kernel module. To do so, install
10 the openvswitch-datapath-source package, then follow the instructions
11 given in /usr/share/doc/openvswitch-datapath-source/README.Debian
13 * This package does not yet support the userspace datapath-based
14 switch implementation.
16 -- Ben Pfaff <blp@nicira.com>, Mon, 30 Aug 2010 09:51:19 -0700
18 Debian network scripts integration
19 ----------------------------------
20 This package lets a user to optionally configure Open vSwitch bridges
21 and ports from /etc/network/interfaces. Please refer to the interfaces(5)
22 manpage for more details regarding /etc/network/interfaces.
24 The stanzas that configure the OVS bridges should begin with "allow-ovs"
25 followed by name of the bridge. Here is an example.
28 The stanzas that configure the OVS ports should begin with
29 "allow-${bridge-name}" followed by name of the port. Here is an example.
32 The following OVS specific "command" options are supported:
34 - ovs_type: This can either be OVSBridge, OVSPort, OVSIntPort or OVSBond
35 depending on whether you configure a bridge, port, an internal port or
36 a bond. This is a required option.
38 - ovs_ports: This option specifies all the ports that belong to a bridge.
40 - ovs_bridge: This options specifies a bridge to which a port belongs.
41 This is a required option for a port.
43 - ovs_bonds: This option specifies the list of physical interfaces to be
46 - ovs_options: This option lets you add extra arguments to a ovs-vsctl
47 command. See examples.
49 - ovs_extra: This option lets you run additional ovs-vsctl commands,
50 separated by "--" (double dash). Variables can be part of the "ovs_extra"
51 option. You can provide all the standard environmental variables
52 described in the interfaces(5) man page. You can also pass shell
55 More implementation specific details can be seen in the examples.
59 ex 1: A standalone bridge.
67 ex 2: A bridge with one port.
75 iface eth0 inet manual
79 ex 3: A bridge with multiple physical ports.
87 iface eth0 inet manual
92 iface eth1 inet manual
96 ex 4: A bridge with an OVS internal port.
101 netmask 255.255.255.0
106 iface vlan100 inet manual
110 ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)
115 iface br2 inet static
117 netmask 255.255.255.0
122 iface bond0 inet manual
126 ovs_options bond_mode=balance-tcp lacp=active
128 ex 6: Create and destroy bridges.
130 ifup --allow=ovs $list_of_bridges
131 ifdown --allow=ovs $list_of_bridges
133 -- Gurucharan Shetty <gshetty@nicira.com>, Fri, 04 May 2012 12:58:19 -0700