Environment Setup
The following instruction will guide you through how to setup the environment for the programming assignment on Ubuntu. We also provide an Amazon EC2 AMI image with everything set up for people would like to run the lab on EC2 (ami-96139ba6 at Oregon Region). You can find instruction on how to use EC2 AMI image below.
- sudo apt-get update
- sudo apt-get install -y git vim-nox python-setuptools flex bison traceroute
- cd ~
- git clone git://github.com/mininet/mininet
- cd mininet
- git checkout remotes/origin/class/cs244
- ./util/install.sh -fnv
- cd ~
- git clone http://github.com/noxrepo/pox
- cd ~
- git clone git://github.com/dound/ltprotocol.git
- cd ltprotocol
- sudo python setup.py install
The assignments only require t1.micro, which Amazon provides 750 free usage hours per month.
- Go to AWS Console
- Switch to "Oregon" region, you can do so by pull down the region menu on the upper-right corner. The default is N. Virginia.
- Click on "Launch an instance", then choose "Classic Wizard"
- On the "Community AMIs", search for "ami-96139ba6". You should see an image with the Manifest of "Mininet_assignments".
- Select the image, then keep clicking "Continue" on the next few page, until the page ask you to select your key pairs.
- Choose the key pair you would like to login to your EC2 instance, then click on "Continue".
- At the final page, you can find an "Launch" button. Click it and you are done!
- Then use your key pair to login to your EC2 instance.
> ssh -Y -i <Your KeyPair> ubuntu@<your EC2 domain name>
mininet@mininet-vm:~/bgp$ ./connect.sh Connecting to R1 shell Trying ::1... Connected to localhost. Escape character is '^]'.
Hello, this is Quagga (version 0.99.22.4). Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification
Password: (type password "en" (without quotes)) Now, type the "en" command to get to the admin shell: bgpd-R1> en Password: (type password "en" (without quotes)) bgpd-R1#