Assignment 7 Solution

$35.00 $24.00

  Instructions : You have to upload the code along with the outputs for this assignment in a tar le using the lab submission website on or before 11.00. The submission le name should be assign7.tgz.   Problem 1. Write a python code in Mininet to create the topology as shown in the gure 1,…

You’ll get a: . zip file solution

 

 
Categorys:

Description

5/5 – (2 votes)

 

Instructions : You have to upload the code along with the outputs for this assignment in a tar le using the lab submission website on or before 11.00. The submission le name should be assign7.tgz.

 

Problem 1. Write a python code in Mininet to create the topology as shown in the gure 1, where hosts h1 and h2 are connected to routers r1 and r2 respectively. You need to do a static con guration of the forwarding tables in the hosts and routers so that the hosts are able to ping each other.

 

A code for a similar topology ( gure 2) is uploaded with the name MininetVM.ova. You can use VirtualBox to run the VM. The credentials of the user are, userName : mininet, password: mininet. Further, to run the code, follow these steps:

 

open Terminal

 

cd /Desktop/cs358 lab7 ./run pox.sh

 

open another Terminal cd /Desktop/cs358 lab7 ./run mininet.sh

 

open a third terminal

 

cd /Desktop/cs358 lab7/router

 

 

 

 

 

 

h

 

Figure 1: A switching network

 

 

 

1

 

 

h

 

Figure 2: A switching network

 

 

./sr -v sw1 -r rtable topoa1 open fourth terminal

 

cd /Desktop/cs358 lab7/router ./sr -v sw2 -r rtable topoa2

You need to submit a documentation of the available code.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2