Changes between Version 10 and Version 11 of HowTo/ConfigureOVSStaticRouteMirroringNoController


Ignore:
Timestamp:
06/21/17 15:46:44 (7 years ago)
Author:
joshua.fasching@raytheon.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/ConfigureOVSStaticRouteMirroringNoController

    v10 v11  
    1 = Configure OVS switch to allow IP traffic between certain hosts and enable packet mirroring without independent Controller =
     1= How to set up static flows in OVS =
    22
    33This howto demonstrates how to set up static IP traffic between two hosts
     
    2020
    2121Later in the howto we will discuss how to setup the OVS switch to allow
    22 for host3 to observe the traffic between host1 and host2 using the Mirror feature of the OVS switch.
     22for host3 to observe the traffic between host1 and host2 using OpenFlow table rules. An alternative method using the Mirror feature of the OVS switch is also presented if only mirroring is required.
    2323This could be used for network monitoring setups.
    2424
     
    3434     * Run  {{{ ifconfig }}}
    3535     * Write down the interface names that correspond to the connections to your hosts. The correspondence is
    36        * Interface with IP ''10.10.1.1'' to host1  - ethX
    37        * Interface with IP ''10.10.1.2'' to host2 - ethY
    38        *  Interface with IP ''10.10.1.3'' to host3 - ethZ
     36       * Interface with IP ''10.10.1.11'' to host1  - ethX
     37       * Interface with IP ''10.10.1.12'' to host2 - ethY
     38       *  Interface with IP ''10.10.1.13'' to host3 - ethZ
    3939    * Remove the IP from your data interfaces. [[BR]]
    4040     [[Image(GENIExperimenter/Tutorials/Graphics:warning-icon-hi.png, 2%)]]  Be careful '''not to bring down eth0'''. This is the control interface, if you bring that interface down you ''' won't be able to login''' to your host. For all interfaces other than `eth0` and ` l0` (your interface names may vary) run :
     
    116116
    117117== Setting up mirroring behavior ==
    118 === Setting up mirroring of traffic from host1 and host2 to host3 ===
    119118
    120 This is done with a single command to ovs-vsctl. It can be done
    121 independent of the previous steps if only mirroring is of interest
    122 to the user.
     119=== Setting up mirroring of traffic from host1 and host2 to host3 (using ovs-ofctl) ===
     120Mirroring can be setup by adding flows to the OpenFlow table that take for {{{in_port}}} the port we want monitored, and by specifying the output port in which we want
     121the monitoring traffic to be sent to. This is done using {{{actions=output:#.}}}
     122
     123For example if we want ports 1 and 2 to be monitored by port 3, the following flows need to be added.
     124{{{
     125ovs-ofctl add-flow br0 in_port=1,actions=normal,output:3
     126}}}
     127{{{
     128ovs-ofctl add-flow br0 in_port=2,actions=normal,output:3
     129}}}
     130=== Setting up mirroring of traffic from host1 and host2 to host3 (using ovs-vctl) ===
     131
     132It is possible to setup mirroring without ever adding any flows to the OpenFlow database. It can be done independently of setting up the static IP flows. This is done with a single command to ovs-vsctl.
    123133{{{
    124134ovs-vsctl -- set Bridge br0 mirrors=@m \
     
    133143=== Verifying mirroring behavior ===
    134144
    135 To observe the mirroring behavior 3 terminal windows will need
     145Using either mirroring method it is useful to verify the behavior. To observe the mirroring behavior three terminal windows will need
    136146to be opened.
    137147