Changes between Version 10 and Version 11 of HowTo/ConfigureOVSStaticRouteMirroringNoController
- Timestamp:
- 06/21/17 15:46:44 (7 years ago)
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 = 2 2 3 3 This howto demonstrates how to set up static IP traffic between two hosts … … 20 20 21 21 Later 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.22 for 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. 23 23 This could be used for network monitoring setups. 24 24 … … 34 34 * Run {{{ ifconfig }}} 35 35 * 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 - ethX37 * Interface with IP ''10.10.1. 2'' to host2 - ethY38 * Interface with IP ''10.10.1. 3'' to host3 - ethZ36 * 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 39 39 * Remove the IP from your data interfaces. [[BR]] 40 40 [[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 : … … 116 116 117 117 == Setting up mirroring behavior == 118 === Setting up mirroring of traffic from host1 and host2 to host3 ===119 118 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) === 120 Mirroring 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 121 the monitoring traffic to be sent to. This is done using {{{actions=output:#.}}} 122 123 For example if we want ports 1 and 2 to be monitored by port 3, the following flows need to be added. 124 {{{ 125 ovs-ofctl add-flow br0 in_port=1,actions=normal,output:3 126 }}} 127 {{{ 128 ovs-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 132 It 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. 123 133 {{{ 124 134 ovs-vsctl -- set Bridge br0 mirrors=@m \ … … 133 143 === Verifying mirroring behavior === 134 144 135 To observe the mirroring behavior 3terminal windows will need145 Using either mirroring method it is useful to verify the behavior. To observe the mirroring behavior three terminal windows will need 136 146 to be opened. 137 147