Configuring SDN in mininet
Lab Setup
• Lab Requirements
• mininet 2.3.0
(https://github.com/mininet/mininet/releases/download/2.3.0/mininet-2.3.0-
210211-ubuntu-16.04.7-server-amd64-ovf.zip )
• Any Linux distribution with ssh client installed
Lab Objective
To be familiar with SDN technology
• Task-1: Run mininet VM in VMWare Workstation and get console access using
ssh
• Task-2: Be familiar with mn command with different options
Get familiar with mininet
• Defining switch
• Defining external controller
• Defining link
• Defining topology
• Defining IP Block
• Getting internet access from SDN environment
Practice Network Setup
Task-2: Get the console access in every device
• Right Click on every devices and click on Console
Configuring IP Settings in PC-1
Task-3.1: Setting up the IP, subnet mask and default gateway in
PC-1
• Right Click on PC-1 and click on Console
• Use ? and press enter to see available commands
• Use show command to check the current IP settings
• Setting the IP address use the following command
• ip 10.10.10.2 255.255.255.0 10.10.10.1
• To verify the new setting use show command again
Configuring IP Settings in PC-2
Task-3.1: Setting up the IP, subnet mask and default gateway in
PC-2
• Right Click on PC-2 and click on Console
• Use ? and press enter to see available commands Initial Settings
• Use show command to check the current IP settings
• Setting the IP address use the following command
• ip 20.20.20.2 255.255.255.0 20.20.20.1
• To verify the new setting use show command again
New Settings
Configuring IP Settings and RIP2 in R1
Task-3.1: Setting up the IP, subnet mask and default gateway in R1
• Right Click on R1 and click on Console
• Use sh ip in br (show ip interface brief)command to
check the current IP settings Initial Settings
• Setting the IP address in fa 0/0 use the following command
• conf t
• int fa 0/0
• ip ad 10.10.10.1 255.255.255.0
• no sh
• Setting the IP address in fa 0/1 use the following command
• int fa 0/1 New Settings
• ip ad 1.1.1.1 255.255.255.0 To verify the new setting use do show
• no sh ip int br command
Configuring IP Settings in R2
Task-3.1: Setting up the IP, subnet mask and default gateway in R2
• Right Click on R2 and click on Console
Initial Settings
• Use sh ip in br (show ip interface brief)command to check the
current IP settings
• Setting the IP address in fa 0/0 use the following command
• conf t
• int fa 0/0
• ip ad 1.1.1.2 255.255.255.0
New Settings
• no sh
To verify the new setting use do show
• Setting the IP address in fa 0/1 use the following command
ip int br command
• int fa 0/1
• ip ad 2.2.2.2 255.255.255.0
• no sh
Configuring IP Settings in R3
Task-3.1: Setting up the IP, subnet mask and default gateway in R3
• Right Click on R3 and click on Console
Initial Settings
• Use sh ip in br (show ip interface brief)command to check the
current IP settings
• Setting the IP address in fa 0/0 use the following command
• conf t
• int fa 0/0
• ip ad 2.2.2.3 255.255.255.0 New Settings
• no sh
To verify the new setting use do show
• Setting the IP address in fa 0/1 use the following command ip int br command
• int fa 0/1
• ip ad 20.20.20.1 255.255.255.0
• no sh
Configuring RIP2 v2 in R1
Task-4.1: Configuring static routing for 2.2.2.0/24 and 20.20.20.0/24 network
• In enable mode, use sh ip route command to check the current IP routing table
• Deleting existing route for 2.2.2.0/34 and 20.20.20.0/24 network Initial Routing Table
• conf t
• no ip route 2.2.2.0 255.255.255.0 1.1.1.2
• no ip route 20.20.20.0 255.255.255.0 1.1.1.2
• Configuring RIP-2 for dynamic routing
• Go to global configuring mode
• router rip
• version 2
• network 1.1.1.0
• network 10.10.10.0
New Routing table
To check the new routing table use do
show ip route command again
Configuring RIP2 v2 in R2
Task-4.2: Configuring static routing for 10.10.10.0/24 and
20.20.20.0/24 network
• In enable mode, use sh ip route command to check the Initial Routing Table
current IP routing table
• Putting route for 2.2.2.0/34 and 20.20.20.0/24 network
• conf t
• router rip
• version 2
• network 1.1.1.0
• network 2.2.2.0
New Routing table
To check the new routing table use
do show ip route command again
Configuring RIP2 v2 in R3
Task-4.3: Configuring static routing for 10.10.10.0/24 and 1.1.1.0/24
network
• In enable mode, use sh ip route command to check the Initial Routing Table
current IP routing table
• Putting route for 2.2.2.0/34 and 20.20.20.0/24 network
• conf t
• router rip
• version 2
• network 2.2.2.0
• network 20.20.20.0
New Routing table
To check the new routing table use
do show ip route command again
Reachability Checking
Task-5: Checking reachability of all routers and PC-2 from PC-1
• Go to enable mode and execute the following commands
• ping 10.10.10.1
• ping 1.1.1.1
• ping 1.1.1.2
• Ping 2.2.2.2
• ping 2.2.2.3
• ping 20.20.20.1
• ping 20.20.20.2