INSTALLING MININET ON CENTOS 7

INSTALLING MININET ON CENTOS 7

OPERATING SYSTEM : CENTOS 7 

PREREQUISITE : INSTALL EPEL REPOSITORY

(1) System Should be fully updated and Install gcc

# yum update -y
# yum install gcc* git

(2) Install the Python-pip

# yum install python-pip -y

(3) Install python pyflakes

# pip install pyflakes

(4) Install python Pexpect

# pip install pexpect

(5) Install python nose

# pip install nose

(5) Install python scapy

# pip install scapy

(6) Download Mininet from github

# git clone https://github.com/AOSL/MININET_CENTOS7.git

(7) Now Install The Mininet

     # cd MININET_CENTOS7
     # rpm -Uvh rdo-release.rpm
     # cd mininet/util
     # chmod 777 install.sh
util]# ./install.sh

[END OUTPUT}

make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/root/oflops/doc'
Enjoy Mininet!

(8) Start the openvswitch service and enable it

systemctl start openvswitch
systemctl enable openvswitch

(9) Run the Mininet from Terminal

mn

[OUTPUT]
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Starting CLI:
mininet>

(10) Run the Wireshark and Select s1-eth1,s2-eh2 and press the start button

wireshark &



(11) Now Test the Connnetion using Mininet

mininet> pingall

*** Ping: testing ping reachability
h1 -> h2
h2 -> h1
*** Results: 0% dropped (2/2 received)




FOR INSTALLATION VIDEO PLEASE VISIT AOSL YOU TUBE CHANNEL  

INSTALLATION VIDEO


For Queries and Feedback
FELL FREE TO MAIL ME AT : abhishek.verma7@gmail.com

10 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thanks for the post. It is works for me. Only issue I have encounter during installation is 404 error on URL http://mirror.centos.org/centos/7/cloud/x86_64/openstack-newton/repodata/repomd.xml. I have update /etc/yum.repos.d/remote.repo as [root@mininet6 util]# cat /etc/yum.repos.d/rdo-release.repo
    [openstack-train]
    name=OpenStack Train Repository
    baseurl=http://mirror.centos.org/centos/7/cloud/$basearch/openstack-train/
    gpgcheck=0
    enabled=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Cloud
    [root@mininet6 util]#yum clean all

    *************

    ReplyDelete