Changes between Version 7 and Version 8 of Documentation/fSDN/aSwitchImage


Ignore:
Timestamp:
Oct 18, 2013, 10:50:49 PM (11 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/fSDN/aSwitchImage

    v7 v8  
    1 = Installation and Usage of Open vSwitch =
     1== Installation and Usage of Open vSwitch ==
    22This page describes how to install and use OpenVSwitch (OVS). OVS is a software switch implementation designed to run on Linux. More information about Open vSwitch can be found at their [http://openvswitch.org/ website].
    33
    4 == Contents ==
     4=== Contents ===
    55 [#install I. Installation] [[BR]]
    66  [#src 1.1 from source] [[BR]]
     
    1313 [#cite III. References] [[BR]]
    1414----
    15 = I Installation = #install
     15=== I Installation === #install
    1616OVS can be installed either from source or from binaries. [#src Section 1.1] covers how to build from source, and [#bin section 1.2] covers install from binaries.   
    1717
    18 === Prerequisites ===
     18==== Prerequisites ====
    1919OVS should install/work with relatively little effort on Ubuntu (or perhaps other Linuxes as well). The following installation/operation steps were successfully done on Ubuntu 10.10 through 12.04.
    2020
    21 == 1.1 Method 1: from source == #src
     21=== 1.1 Method 1: from source === #src
    2222The steps followed in this section are based on the contents of INSTALL.Linux, included with the OVS tarball and also found [http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL;hb=HEAD here](also attached at the end of this page for your convenience). It should be found under the OVS root directory.     
    2323
    24 == 1.1.1 Getting the source and dependencies ==
     24==== 1.1.1 Getting the source and dependencies ====
    2525 1. If your Ubuntu install is still fresh, run 'apt-get update'. If this fails, repeat after replacing all instances of 'apt:9999' with 'us.archive.ubuntu.com' in /etc/apt/sources.list .
    2626 1. Install dependencies:
     
    4747    }}}
    4848
    49 === 1.1.2 Some Sanity Checks. ===
     49==== 1.1.2 Some Sanity Checks. ====
    5050If things don't go well, here are some things worth checking:
    5151
     
    8181 * In general, `dmesg` can be used to check for various anomalies when things e.g. insmod fail silently. 
    8282
    83 == 1.2 Method 2: from binaries == #bin
     83=== 1.2 Method 2: from binaries === #bin
    8484Binaries are easier to set up, but lag in OVS version and support a narrower range of architectures and kernel versions.
    8585 1. Install the openvswitch packages. Do not use the Ubuntu repositories since the install the incorrect versions of the package; Download the
     
    101101
    102102----
    103 = II Running OVS. = #run
     103=== II Running OVS. === #run
    104104OVS has three main components that must be initialized:
    105105 * openvswitch_mod.ko, the OVS kernel module
     
    108108The daemon configures itself using the data provided by the database; `ovs-vsctl` is used to modify the contents of the database in order to configure the OVS switch at runtime.
    109109
    110 == 2.1 Initialization == #init
     110=== 2.1 Initialization === #init
    111111 1. Load openVswitch kernel module
    112112    {{{
     
    137137 The 'unix:...db.sock' specifies that the process attach to the socket opened by `ovsdb`. 
    138138
    139 == 2.2 Configuring OVS == #conf
     139=== 2.2 Configuring OVS === #conf
    140140Once OVS is running, virtual switches may be created and configured. In general, a virtual switch is comprised of a bridge interface (usually named br''x''), and one or more interfaces associated with it. A single vswitchd can control multiple virtual switches with arbitrary number of ports each.   
    141141 
    142 === 2.2.1 Creating virtual switches ===
     142==== 2.2.1 Creating virtual switches ====
    143143The following steps create a bridge interface (br0) and associate an interface to it:
    144144{{{
     
    155155 ovs-vsctl add-port br0 eth0.222 tag=222
    156156}}}
    157 === 2.2.2 Network configuration ===
     157==== 2.2.2 Network configuration ====
    158158For an OVS switch to behave as a plain vanilla switch, both bridge interface and associated network interfaces must be up and configured with IP layer information. The bridge interface can be configured with tools such as `ifconfig` (or even DHCP) like any other *nic interface. Its configurations may even be stored in /etc/network/interfaces for persistence:
    159159 {{{
     
    171171 }}}
    172172
    173 == 2.3 OVS with KVM == #kvm
     173=== 2.3 OVS with KVM === #kvm
    174174OVS can be used with KVM. The instructions for setting this up can be found [http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.KVM;hb=HEAD here], or in the root directory of the source as INSTALL.KVM. A use case is documented in this separate [http://orbit-lab.org/wiki/Internal/VMHostSetup wiki entry].     
    175175
    176 == 2.4 OVS with !OpenFlow == #of
     176=== 2.4 OVS with !OpenFlow === #of
    177177OVS switches may be run as !OpenFlow switches. The following steps describe how to run OVS in !OpenFlow mode.
    178178 
     
    211211
    212212----
    213 = III References = #cite
     213== III References == #cite
    214214The following links were referenced but aren't relevant overall; this is just for citation.
    215215