| 1 | [[PageOutline]] |
| 2 | = IPv4 Routing Assignment = |
| 3 | |
| 4 | {{{ |
| 5 | #!html |
| 6 | <table border="0" > |
| 7 | <tr> |
| 8 | <td width="350" valign="top"> |
| 9 | <h3 align="left"> <u>Overview: </u> </h3> |
| 10 | In this experiment you will learn how to set up static routing with the <em>route</em> command. We will use the following network topology for this experiment: |
| 11 | <br> |
| 12 | <img border="0" src="http://groups.geni.net/geni/attachment/wiki/GENIEducation/SampleAssignments/IPRouting/Procedure/routetopology.png?format=raw" alt="route topology" align="center" width="350" title="route topology" /> |
| 13 | </td> |
| 14 | <td> <pre> </pre> </td> |
| 15 | <td width="350" valign="top"> |
| 16 | <h3 align="left"> <u>Prerequisites: </u></h3> |
| 17 | For this tutorial you need : |
| 18 | <ul> |
| 19 | <li> <b> access to the <a href="https://portal.geni.net"> GENI Experimenter Portal </a></b> and be a <b> member of a GENI project </b>. <br/>Please see the <a href="http://groups.geni.net/geni/wiki/SignMeUp"> Sign Me Up page for more information. </a></li> |
| 20 | <li> <b>be familiar with reserving resources in GENI based on an rspec</b>. <br/>If you are not familiar you should first do the <a href="http://groups.geni.net/geni/wiki/GENIExperimenter/Tutorials/RunHelloGENI"> Hello GENI </a> or <a href="http://groups.geni.net/geni/wiki/GENIEducation/SampleAssignments/LabZero/Procedure"> Lab0 </a> </li> |
| 21 | <li> be familiar with <b><a href="http://groups.geni.net/geni/wiki/HowTo/LoginToNodes" > logging in to GENI resources </a> </b> </li> |
| 22 | <li> be familiar with <b> IPv4 addressing and routing </b> </li> |
| 23 | </ul> |
| 24 | |
| 25 | </td> |
| 26 | </tr> |
| 27 | <tr> |
| 28 | <td width="350" valign="top"> |
| 29 | <h3 align="left"> <u>Tools: </u></h3> |
| 30 | All the tools will already be installed at your nodes. For your reference we are going to use: |
| 31 | <ul><li><a href="http://www.hscripts.com/tutorials/linux-commands/route.html"> the route linux command </a> </li> </ul> |
| 32 | |
| 33 | </td> |
| 34 | |
| 35 | <td> <pre> </pre> </td> |
| 36 | <td width="350" valign="top"> |
| 37 | <h3 align="left"> <u>Where to get help: </u></h3> |
| 38 | <ul> |
| 39 | <li> Take a look at the Tips section in the end of the exercise </li> |
| 40 | <li> Contact your TA and/or Professor for help. If you are doing this exercise outside the context of a course, please email <a href="mailto:help@geni.net?Subject=Help%20with%20ECE375%20tutorial"> help@geni.net </a> </li> |
| 41 | </ul> |
| 42 | </td> |
| 43 | </tr> |
| 44 | </table> |
| 45 | }}} |
| 46 | ---- |
| 47 | |
| 48 | {{{ |
| 49 | #!html |
| 50 | <table border="0" cellpadding="0" cellspacing="0"> |
| 51 | <tr> |
| 52 | <td valign="top" align="left"> |
| 53 | <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/design.png?format=raw" width="150" alt="Design/Setup"></a> |
| 54 | </td> |
| 55 | <td> |
| 56 | <h3><u>1. Verify your Environment Setup: </u></h3> |
| 57 | This exercise assumes you have already setup your account at the GENI Portal. In particular ensure that: |
| 58 | <ol> |
| 59 | <li> You can login to the <a href="https://portal.geni.net"> GENI Portal </a></li> |
| 60 | <li> You are a member of a GENI Project (there is at least a project listed under the ''Projects'' tab. </li> |
| 61 | <li> You have setup your ssh keys (there is at least one key listed under the ''Profile->SSH Keys'' tab. </li> |
| 62 | </ol> |
| 63 | <h3><u> 2. Setup the Topology: </u></h3> |
| 64 | <ol> |
| 65 | <li> Login to the <a href="https://portal.geni.net"> GENI Portal </a> </li> |
| 66 | <li> Reserve resources within this slice using the <a href="http://www.gpolab.bbn.com/experiment-support/IPRouting/EG-3nodes-mesh.rspec"> EG-3nodes-mesh </a>rspec</li> |
| 67 | </ol> |
| 68 | |
| 69 | |
| 70 | </td> |
| 71 | </tr> |
| 72 | </table> |
| 73 | }}} |
| 74 | '''Action:'' Take a screenshot of your slice when all the nodes are ready and include it in your write up''' |
| 75 | ---- |
| 76 | |
| 77 | {{{ |
| 78 | #!html |
| 79 | <table border="0" cellpadding="0" cellspacing="0"> |
| 80 | <tr> |
| 81 | <td valign="top" align="left"> |
| 82 | <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/execute.png?format=raw" height="150" alt="Execute"></a> |
| 83 | </td> |
| 84 | <td> |
| 85 | <h3><u> 3. Setup the routing </u></h3> |
| 86 | The goal of this exercise is to setup the routing as indicated in Figure 1; i.e. packets from A send to IP address 192.168.2.12 on node C should be routed via node B. In order to create this routing behavior you will need to modify the routing tables in your nodes using the linux |
| 87 | <a href ="http://www.hscripts.com/tutorials/linux-commands/route.html"> route command </a> |
| 88 | <h4> Questions: </h4> |
| 89 | <ol> |
| 90 | <li> <b>What happens when you a traceroute from A to IP address 192.168.2.2? Why? </b> <br/>Include the output of the traceroute in your writeup</li> |
| 91 | <li> <b>Setup the routing from A to 192.68.2.2 so that it goes through B. Was it enough to just modify the routing tables? What else did you need to change in order for the traffic to flow? </b> <br/>In your writeup include all the commands you ran and a screenshot of the routing configuration</li> |
| 92 | <li> <b>What happens when you a traceroute from A to IP address 192.168.2.2 after you setup the static routes? </b> <br/>In your writeup include a screenshot of the traceroute output.</li> |
| 93 | </ol> |
| 94 | |
| 95 | </td> |
| 96 | </tr> |
| 97 | </table> |
| 98 | }}} |
| 99 | ---- |
| 100 | {{{ |
| 101 | #!html |
| 102 | <table border="0" cellpadding="0" cellspacing="0"> |
| 103 | <tr> |
| 104 | <td valign="top" align="left"> |
| 105 | <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/finish.png?format=raw" width="150" alt="Finish"></a> |
| 106 | </td> |
| 107 | <td> |
| 108 | |
| 109 | <h3><u> 4. Cleanup </u></h3> |
| 110 | After you are done with the exercise and you have captured everything requested for the writeup, you should release your resources so that other experimenters can use |
| 111 | them. In order to cleanup your slice : |
| 112 | <ol type="a"> |
| 113 | <li>In Flack, press the <b>Delete</b> button in the bottom of your canvas </li> |
| 114 | <li> Select <b>Delete at used managers</b> and <b>confirm</b> your selection. </li> |
| 115 | </ol> |
| 116 | Wait and after a few moments all the resources will have been released and you will have an empty canvas again. Notice that your slice is still there. There is no way to delete a slice, it will be removed automatically after its expiration date, but remember that a slice is just an empty container so it doesn't take up any resources. |
| 117 | <h3><u> What to hand in: </u></h3> |
| 118 | <ol> |
| 119 | <li> A screenshot of your slice when all the nodes are ready.</li> |
| 120 | <li> The answers to questions 1-3. </li> |
| 121 | <li> Screenshots of the output of the traceroute command invoked on Node A for IP 192.168.2.2 <b>before</b> and <b>after</b> the setup of static routes. </li> |
| 122 | <li> Screenshots of the route table of Nodes A, B and C </li> |
| 123 | </ol> |
| 124 | </td> |
| 125 | </tr> |
| 126 | </table> |
| 127 | }}} |
| 128 | |
| 129 | |
| 130 | = Tips = |
| 131 | [[BR]] |
| 132 | [[Image(GENIExperimenter/Tutorials/Graphics:tip.png, 20, left)]]Remember that you can use “ifconfig” to determine which Ethernet interface (e.g., eth0) is bound to what IP address at each of the nodes. |
| 133 | |
| 134 | [[Image(GENIExperimenter/Tutorials/Graphics:tip.png, 20, left)]]In order to enable forwarding of packets on node B you have to execute the following command: |
| 135 | {{{ |
| 136 | echo 1 > /proc/sys/net/ipv4/ip_forward |
| 137 | }}} |
| 138 | |
| 139 | [[Image(GENIExperimenter/Tutorials/Graphics:tip.png, 20, left)]] A new slice will always be in its initial state with NO routing set up! |
| 140 | ---- |
| 141 | |
| 142 | [[Image(GENIExperimenter/Tutorials/Graphics:tip.png, 40, left)]] |
| 143 | = Tips = |
| 144 | * Remember that you can use “ifconfig” to determine which Ethernet interface (e.g., eth0) is bound to what IP address at each of the nodes. |
| 145 | * In order to enable forwarding of packets on node B you have to execute the following command: |
| 146 | {{{ |
| 147 | echo 1 > /proc/sys/net/ipv4/ip_forward |
| 148 | }}} |
| 149 | * A new slice will always be in its initial state with NO routing set up! |