Changes between Version 5 and Version 6 of GENIExperimenter/Tutorials/OpenFlowOVS-Floodlight/DesignSetup
- Timestamp:
- 10/30/16 00:39:31 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/OpenFlowOVS-Floodlight/DesignSetup
v5 v6 137 137 * Your OVS bridge will be a Layer 2 switch and your ports do not need IP addresses. Before we remove them let's keep some information 138 138 * Run {{{ ifconfig }}} 139 * Write down the interface names that correspond to the connections to your hosts. The correspondence is 140 * Interface with IP ''10.10.1.11'' to host1 - ethX 141 * Interface with IP ''10.10.1.12'' to host2 - ethY 142 * Interface with IP ''10.10.1.13'' to host3 - ethZ 143 * Remove the IP from your data interfaces. [[BR]] 144 [[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 : 139 * Write down the interface that corresponds to the connection to the Floodlight Controller. It will have an IP of 192.168.1.1. This is the control plane interface. 140 * Write down the interface names that correspond to the connections to your hosts. You will see three interfaces with IP's '''10.10.*.*''', one for each host. These are the data plane interfaces. 141 * Remove the IP from your data interfaces. [[BR]] 142 [[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` and the '''control plane interface''' (your interface names may vary) run : 145 143 {{{ 146 144 sudo ifconfig ethX 0 … … 149 147 }}} 150 148 iv. Add all the data interfaces to your switch (bridge). [[BR]] 151 [[Image(GENIExperimenter/Tutorials/Graphics:warning-icon-hi.png, 2%)]] Be careful ''' not to add interface eth0'''. This is the control interface. The other three interfaces are your data interfaces. (Use the same interfaces as you used in the previous step.)149 [[Image(GENIExperimenter/Tutorials/Graphics:warning-icon-hi.png, 2%)]] Be careful ''' not to add interface eth0'''. This is the control interface. So now that we know the names of our three '''10.10.*.*''' interfaces, we can add them as ports to our bridge. These three interfaces are your data interfaces. 152 150 {{{ 153 151 sudo ovs-vsctl add-port br0 ethX … … 173 171 }}} 174 172 175 i. Login to your controller 176 ii. Find the control interface IP of your controller, use ''ifconfig'' and note down the IP address of `eth0`. 177 iii. In order to point our software !OpenFlow switch to the controller, in the ''ovs'' terminal window, run: 173 174 i. In order to point our software !OpenFlow switch to the controller, in the ''ovs'' terminal window, run: 178 175 {{{ 179 sudo ovs-vsctl set-controller br0 tcp: <controller_ip>:6633176 sudo ovs-vsctl set-controller br0 tcp:192.168.1.2:6653 180 177 }}} 181 i . Set your switch to `fail-safe-mode`. For more info read the [#standalonevssecuremode standalone vs secure mode section]. Run:178 ii. Set your switch to `fail-safe-mode`. For more info read the [#standalonevssecuremode standalone vs secure mode section]. Run: 182 179 {{{ 183 180 sudo ovs-vsctl set-fail-mode br0 secure 184 181 }}} 185 vi. Trust but verify. You can verify your OVS settings by issuing the following:182 iii. Trust but verify. You can verify your OVS settings by issuing the following: 186 183 {{{ 187 184 sudo ovs-vsctl show