Version 7 (modified by 9 years ago) (diff) | ,
---|
How To Use Hardware Switches and Shared VLANs
These steps should allow you to run the Hardware version of the Intro to OF tutorial but with a multi-site topology.
You need 3 slices (called MYSLICE
, MYSLICE2
and MYSLICE3
below) and 4 RSpecs. If you run the controller outside of GENI on your own machine you only need two slices (MYSLICE2
and MYSLICE3
and 3 RSpecs.)
Do the steps in the following order:
1) Reserve a VM for your controller. It does not matter much which aggregate you pick for
MYAGG
. (In fact, you don't need a GENI node at all as you could run the controller on your own machine.)omni createsliver MYSLICE http://www.gpolab.bbn.com/exp/OpenFlowOVS/pox-controller.rspec -a MYAGG --useSliceMembers2) Start your controller. Log in to the VM from the last step and run:
cd /tmp/pox ./pox.py --verbose forwarding.l2_learning3) Edit the attached
max-stanford-stitched-flack.rspec
to point to the controller. The controller should be accessed via the public IP of the node from the first step. 3) Reserve a VM at Stanford connected to a VM at MAX via a stitched VLAN. These nodes will behost1
andhost2
:stitcher createsliver MYSLICE2 max-stanford-stitched-flack.rspec --useSliceMembers4) Use performOperationalAction (
poa
) to share the stitched VLAN at Stanford. (Detailed instructions)a) Make a file called
lan_options.json
containing the text below. (NOTE:stitched0
should be the name of the stitched VLAN from the previous step andofstitchedlan
should be the name you give the shared VLAN and is used by the RSpec in step (4)){ "geni_sharelan_lanname": "stitched0", "geni_sharelan_token": "ofstitchedlan" }b) Run
poa
at each aggregate you should like to share the VLAN at:omni -V 3 -a stanford-ig poa MYSLICE2 geni_sharelan --optionsfile lan_options.json omni -V 3 -a max-ig poa MYSLICE2 geni_sharelan --optionsfile lan_options.json4) Reserve a third VM (
host3
) on the shared VLAN:omni createsliver MYSLICE3 host3-on-shared-vlan.rspec -a stanford-ig --useSliceMembers5) Reserve a fourth VM (
host4
) on the shared VLAN:omni createsliver MYSLICE3 host4-on-shared-vlan.rspec -a max-ig --useSliceMembers
You should now have a controller running at an aggregate of your choice and controlling the hardware switch connecting the four VMs (two VMs at Stanford IG and two VM at MAX IG) which are all on the same shared VLAN.
You should now be able to complete the exercise as described in Hardware Intro to OpenFlow.
Attachments (5)
-
host3-on-shared-vlan.rspec (876 bytes) - added by 9 years ago.
host3 RSpec
-
host4-on-shared-vlan.rspec (876 bytes) - added by 9 years ago.
host4 RSpec
-
max-stanford-stitched.rspec (1.8 KB) - added by 9 years ago.
host1 and host 2 and stitched VLAN RSpec
-
HWSharedVLAN.png (263.7 KB) - added by 8 years ago.
png of topology
-
StitchedOF.pptx (71.6 KB) - added by 8 years ago.
pptx of topology
Download all attachments as: .zip