| 23 | sudo ovs-vsctl add-br br0 |
| 24 | }}} |
| 25 | iii. Prepare the interfaces to be added as ports to the OVS switch |
| 26 | * 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 |
| 27 | * Run {{{ ifconfig }}} |
| 28 | * Write down the interface names that correspond to the connections to your hosts. The correspondence is |
| 29 | * Interface with IP ''10.10.1.11'' to host1 - ethX |
| 30 | * Interface with IP ''10.10.1.12'' to host2 - ethY |
| 31 | * Interface with IP ''10.10.1.13'' to host3 - ethZ |
| 32 | * Remove the IP from your data interfaces. [[BR]] |
| 33 | [[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 : |
| 34 | {{{ |
| 35 | sudo ifconfig ethX 0 |
| 36 | sudo ifconfig ethY 0 |
| 37 | sudo ifconfig ethZ 0 |
| 38 | }}} |
| 39 | iv. Add all the data interfaces to your switch (bridge). [[BR]] |
| 40 | [[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.) |
| 41 | {{{ |
| 42 | sudo ovs-vsctl add-port br0 ethX |
| 43 | sudo ovs-vsctl add-port br0 ethY |
| 44 | sudo ovs-vsctl add-port br0 ethZ |
| 45 | }}} |
| 46 | v. Verify the three ports configured run: |
| 47 | {{{ |
| 48 | sudo ovs-vsctl list-ports br0 |
| 49 | }}} |
| 50 | vi. We want our switch to act without a seperate controller thus setting it to operate as standalone. |
| 51 | {{{ |