20 | | == 2.1 Setup OpenFlow Switches == |
21 | | - 2.1.1 Login to VM and get the public IP by executing ''ifconfig'' |
22 | | - 2.1.2 Login to nodes VM, VM-0, VM-1, VM-2 and execute the following script |
23 | | {{{ |
24 | | #!/bin/bash |
25 | | ovs-vsctl add-br test |
26 | | ovs-vsctl add-port test eth1 |
27 | | ovs-vsctl add-port test eth2 |
28 | | ovs-vsctl add-port test eth3 |
29 | | ovs-vsctl set-controller test tcp:<IP.OF.CONTROLLER>:6633 |
30 | | ovs-vsctl set-fail-mode test secure |
31 | | }}} |
32 | | |
33 | | Replace IP.OF.CONTROLLER above with the public IP address of VM. [[BR]] |
34 | | |
| 20 | == 2.1 Setup OpenFlow Controllers == |
| 21 | |
| 22 | * '''2.1.1''' Check that all interfaces on the `switch` and on the `aggregator` are configured: Issue `/sbin/ifconfig` and make sure eth1, eth2, eth3 are up and assigned with valid IP addresses. [[BR]] |
| 23 | [[Image(GENIExperimenter/Tutorials/Graphics:warning-icon-hi.png,2%)]] You may not be able to see all interfaces up immediately when node "Switch" is ready; wait for some more time (about 1 min) then try "ifconfig" again. |
| 24 | |
| 25 | * '''2.1.2''' Setup the `switch` and the `aggregator` |
| 26 | |
| 27 | On the Aggregator Node run |
| 28 | {{{ |
| 29 | sudo bash |
| 30 | source /etc/profile.d/rvm.sh |
| 31 | trema run /tmp/aggregator/aggregator.rb >& /tmp/trema.run & |
| 32 | }}} |
| 33 | |
| 34 | On the Switch Node run |
| 35 | {{{ |
| 36 | sudo bash |
| 37 | source /etc/profile.d/rvm.sh |
| 38 | }}} |
| 39 | [[Image(GENIExperimenter/Tutorials/Graphics:4NotesIcon_512x512.png,3%)]] We have already installed and configured the OVS switch, if you want to take a look at the configuration and understand more look at the output of these commands |
| 40 | {{{ |
| 41 | ovs-vsctl list-br |
| 42 | ovs-vsctl list-ports br0 |
| 43 | ovs-vsctl show br0 |
| 44 | ovs-ofctl show br0 |
| 45 | }}} |