Configuring SDN in mininet
Lab Setup
• Lab Requirements
• mininet 2.3.0
([Link]
[Link] )
• 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 [Link] [Link] [Link]
• 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 [Link] [Link] [Link]
• 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 [Link] [Link]
• no sh
• Setting the IP address in fa 0/1 use the following command
• int fa 0/1 New Settings
• ip ad [Link] [Link] 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 [Link] [Link]
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 [Link] [Link]
• 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 [Link] [Link] 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 [Link] [Link]
• no sh
Configuring RIP2 v2 in R1
Task-4.1: Configuring static routing for [Link]/24 and [Link]/24 network
• In enable mode, use sh ip route command to check the current IP routing table
• Deleting existing route for [Link]/34 and [Link]/24 network Initial Routing Table
• conf t
• no ip route [Link] [Link] [Link]
• no ip route [Link] [Link] [Link]
• Configuring RIP-2 for dynamic routing
• Go to global configuring mode
• router rip
• version 2
• network [Link]
• network [Link]
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 [Link]/24 and
[Link]/24 network
• In enable mode, use sh ip route command to check the Initial Routing Table
current IP routing table
• Putting route for [Link]/34 and [Link]/24 network
• conf t
• router rip
• version 2
• network [Link]
• network [Link]
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 [Link]/24 and [Link]/24
network
• In enable mode, use sh ip route command to check the Initial Routing Table
current IP routing table
• Putting route for [Link]/34 and [Link]/24 network
• conf t
• router rip
• version 2
• network [Link]
• network [Link]
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 [Link]
• ping [Link]
• ping [Link]
• Ping [Link]
• ping [Link]
• ping [Link]
• ping [Link]