Version 21 (modified by 10 years ago) (diff) | ,
---|
IPv4 Routing Assignment
Overview:In this experiment you will learn how to set up static routing with the route command. We will orchestrate this experiment in LabWiki and use the ping command to verify connectivity. We will use the following network topology for this experiment: |
|
Prerequisites:For this tutorial you need :
|
Tools:All the tools will already be installed on your nodes. For your reference we are going to use: |
|
Where to get help:
|
1. Verify your Environment Setup:
This exercise assumes you have already setup your account at the GENI Portal. In particular ensure that:- You can login to the GENI Portal
- You are a member of a GENI Project (there is at least one project listed under the ''Projects'' tab)
- You have setup your ssh keys (there is at least one key listed under the ''Profile->SSH Keys'' tab)
2. Setup the Topology:
- Login to the GENI Portal
- Reserve resources from an InstaGENI rack using the RSpec called ECE3743Node from the Portal
3. LabWiki Plan
- Click on the "LabWiki" button on the Slice page
- You will be asked to login with openID. Please accept and your browser will then show the three panels of LabWiki; Plan, Prepare and Execute
- Type in ipfwd_tutorial in the search bar of the Plan column and you will see a nice set of instructions on how to run this experiment. This window also serves as a nice place to save your experiment results (graphs) and submit it as an assignment. To edit this document which is in [http://daringfireball.net/projects/markdown/ Markdown] format, click and drag the icon in the top left corner to the Prepare window. Note: By default, this script is read-only. You will have to create your own copy for editing. You can do this in the Prepare column by clicking on the little wheel in the top left corner and selecting 'Wiki' as script type
4. Test connectivity using ping
- In the search bar of the Prepare column, type in "step1_threenode.oedl" and select it. Click and drag the icon in the leftmost corner over to the Execute column
- Select your slice from the dropdown list and click on the "Start Experiment" at the bottom of the Execute panel Action:Click and drag the graph over to your Markdown
5. Setup the routing
The goal of this exercise is to setup the routing as indicated in Figure 1; i.e. packets from A sent 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 route commandQuestions:
- Setup the routing from A to 192.68.2.12 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?
6. Test routing using ping
- In the search bar of the Prepare column, type in "step3_threenode.oedl" and select it. Click and drag the icon in the leftmost corner over to the Execute column
- Select your slice from the dropdown list and click on the "Start Experiment" at the bottom of the Execute panel Action:Click and drag the graph over to your Markdown
4. Cleanup
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 them. In order to cleanup your slice :- In Jacks, press the Delete button in the top of your canvas
- Select Delete at used managers and confirm your selection.
What to hand in:
- Drag the graphs into your Markdown and include answers to the questions above in the same document.
- When you are ready to submit your assignment, i.e, verified that the required routing is in place, Click on the Share Page button at the top left corner of the Plan column. This sends a link to your grader to evaluate your output.
Tips
- If you have trouble with your assignment, look carefully in the logs on the Execute panel. It gives you an output similar to one you will see in bash shell and you will be able to figure out why your script doesn't work as expected.
- If you get a "Command not found " error when executing standard commands like
ifconfig
addsbin
to your path:export PATH=$PATH:/sbin
- 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.
- In order to enable IP forwarding of packets on a node you have to execute the following command:
sudo sh -c 'echo 1 > /proc/sys/net/ipv4/ip_forward'
- A new slice will always be in its initial state with NO routing set up!
- A useful tool to debug the packet flow is tcpdump. In order to install it run:
sudo apt-get install tcpdump
Attachments (2)
- 3nodeprepare.png (772.3 KB) - added by 10 years ago.
- iproutegraph.png (674.2 KB) - added by 10 years ago.
Download all attachments as: .zip