| 86 | |
| 87 | === 3.1a Configure OVS === |
| 88 | i. Write down the interface names that correspond to the connections to your hosts (use ifconfig). The correspondence is: |
| 89 | * '''h1_if''': Interface with IP ''10.10.1.11'' to host1 - ethX |
| 90 | * '''h2_if''': Interface with IP ''10.10.1.12'' to host2 - ethY |
| 91 | * '''h3_if''': Interface with IP ''10.10.1.13'' to host3 - ethZ |
| 92 | ii. In the OVS node run: |
| 93 | {{{ |
| 94 | wget http://www.gpolab.bbn.com/experiment-support/NFVApps/ovs-firewall-conf.sh ; chmod +x ovs-nat-conf.sh |
| 95 | sudo ./ovs-firewall-conf.sh <h1_if> <h2_if> <h3_if> <controller_ip> |
| 96 | }}} |
| 97 | |
| 98 | === 3.1b Configure hosts === |
| 99 | The hosts in your topology are all in the same subnet, 10.10.1.0/24. We will move host3 to a different subnet: |
| 100 | i. '''host3''': Assign 128.128.128.128 to host3. |
| 101 | {{{ |
| 102 | sudo ifconfig eth1 128.128.128.128/24 |
| 103 | }}} |
| 104 | |
| 105 | ii. '''host1, host2''': Setup routes at `host1` and `host1` to 128.128.128.0/24 subnet: |
| 106 | {{{ |
| 107 | sudo route add -net 128.128.128.0 netmask 255.255.255.0 gw 10.10.1.100 |
| 108 | }}} |
| 109 | |
| 110 | === 3.2 Test reachability === |