Changes between Version 29 and Version 30 of HowTo/ConfigureOVSStaticRouteMirroringNoController
- Timestamp:
- 07/12/17 17:45:55 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTo/ConfigureOVSStaticRouteMirroringNoController
v29 v30 5 5 This page demonstrates how to set up static IP traffic flows between two hosts connected to an OVS switch without running a separate !OpenFlow controller and by using custom !OpenFlow table rules. 6 6 7 The following RSpec is used: [https://raw.githubusercontent.com/GENI-NSF/geni-tutorials/master/OVS Ryu/openflowovs-all-xen.rspec.xml]7 The following RSpec is used: [https://raw.githubusercontent.com/GENI-NSF/geni-tutorials/master/OVSSwitch/openVSwitch-all-xen.xml] 8 8 9 This RSpec requests a network topology with 3 nodes (host1, host2, host3) connected to an OVS switch (OVS). The figure below details the connections. 9 This RSpec requests a network topology with 3 nodes (host1, host2, host3) connected to an OVS switch (OVS). The OVS node uses a `Custom Image` that will auto-configure a bridge for the 3 connections to the hosts. If you are interested in finding out how this is done see the [http://groups.geni.net/geni/wiki/HowTo/SetupOVSSwitch How to setup OVS] page. 10 11 The figure below details the connections. 10 12 11 13 {{{ … … 22 24 23 25 i. Login to the OVS host 24 ii. Download the script [https://raw.githubusercontent.com/GENI-NSF/geni-support/master/Utilities/geniovs.sh geniovs.sh] to create an OVS bridge and add all the dataplane interfaces to the bridge: 25 {{{ 26 wget https://raw.githubusercontent.com/GENI-NSF/geni-support/master/Utilities/geniovs.sh 27 bash ./geniovs.sh 28 }}} 29 iii. We want our switch to act without a separate controller thus setting it to operate as standalone. 26 ii. We want our switch to act without a separate controller thus setting it to operate as standalone. 30 27 {{{ 31 28 sudo ovs-vsctl set-fail-mode br0 standalone 32 29 }}} 33 i v. Verify all OVS settings and that the dataplane ports have been assigned to bridge by issuing the following:30 iii. Verify all OVS settings and that the dataplane ports have been assigned to bridge by issuing the following: 34 31 {{{ 35 32 sudo ovs-vsctl show … … 127 124 -- --id=@m create Mirror name=mymirror select-dst-port=@ethX,@ethY select-src-port=@ethX,@ethY output-port=@ethZ 128 125 }}} 129 A file '' '''/ tmp/InterfacesInfo''' '' was created on the OVS switch that includes all interface information before the IP was shutdown. From the file /tmp/InterfacesInfo determine ethX and ethY are the names of the interfaces connected to host1 and host2 on the OVS node. The interface126 A file '' '''/local/InterfacesInfo''' '' was created on the OVS switch that includes all interface information before the IP was shutdown. From the file /local/InterfacesInfo determine ethX and ethY are the names of the interfaces connected to host1 and host2 on the OVS node. The interface 130 127 ethZ is the interface on the OVS switch that connects to host3. 131 128