Sneha
Sneha
mininet> nodes
available nodes are:
c0 h1 h2 s1
mininet> net
h1 h1-eth0:s1-eth1
h2 h2-eth0:s1-eth2
s1 lo: s1-eth1:h1-eth0 s1-eth2:h2-eth0
c0
mininet> dump
<Host h1: h1-eth0:10.0.0.1 pid=71722>
<Host h2: h2-eth0:10.0.0.2 pid=71724>
<OVSSwitch s1: lo:127.0.0.1,s1-eth1:None,s1-eth2:None pid=71729>
<OVSController c0: 127.0.0.1:6653 pid=71715>
mininet> h1 ifconfig -a
h1-eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.1 netmask 255.0.0.0 broadcast 10.255.255.255
inet6 fe80::4c2c:81ff:fe10:7a96 prefixlen 64 scopeid 0x20<link>
ether 4e:2c:81:10:7a:96 txqueuelen 1000 (Ethernet)
RX packets 34 bytes 3855 (3.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 796 (796.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
mininet> s1 ifconfig -a
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
mininet> h1 ps -a
PID TTY TIME CMD
1633 tty2 00:00:00 gnome-session-b
71702 pts/0 00:00:00 sudo
71704 pts/1 00:00:00 mn
71769 pts/2 00:00:00 ovs-testcontrol
71851 pts/3 00:00:00 ps
mininet> s1 ps -a
PID TTY TIME CMD
1633 tty2 00:00:00 gnome-session-b
71702 pts/0 00:00:00 sudo
71704 pts/1 00:00:00 mn
71769 pts/2 00:00:00 ovs-testcontrol
71855 pts/5 00:00:00 ps
mininet> h1 ping -c 1 h2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=1.75 ms
mininet> exit
*** Stopping 1 controllers
c0
*** Stopping 2 links
..
*** Stopping 1 switches
s1
*** Stopping 2 hosts
h1 h2
*** Done
completed in 608.912 seconds
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ sudo mn --test pingall --topo single,3
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2 h3
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1) (h3, s1)
*** Configuring hosts
h1 h2 h3
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Waiting for switches to connect
s1
*** Ping: testing ping reachability
h1 -> h2 h3
h2 -> h1 h3
h3 -> h1 h2
*** Results: 0% dropped (6/6 received)
*** Stopping 1 controllers
c0
*** Stopping 3 links
...
*** Stopping 1 switches
s1
*** Stopping 3 hosts
h1 h2 h3
*** Done
completed in 5.653 seconds
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ sudo mn --test pingall --topo linear,4
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2 h3 h4
*** Adding switches:
s1 s2 s3 s4
*** Adding links:
(h1, s1) (h2, s2) (h3, s3) (h4, s4) (s2, s1) (s3, s2) (s4, s3)
*** Configuring hosts
h1 h2 h3 h4
*** Starting controller
c0
*** Starting 4 switches
s1 s2 s3 s4 ...
*** Waiting for switches to connect
s1 s2 s3 s4
*** Ping: testing ping reachability
h1 -> h2 h3 h4
h2 -> h1 h3 h4
h3 -> h1 h2 h4
h4 -> h1 h2 h3
*** Results: 0% dropped (12/12 received)
*** Stopping 1 controllers
c0
*** Stopping 7 links
.......
*** Stopping 4 switches
s1 s2 s3 s4
*** Stopping 4 hosts
h1 h2 h3 h4
*** Done
completed in 6.235 seconds
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 InRelease
Hit:4 https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu jammy InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ sudo apt insatll python3-pip
E: Invalid operation insatll
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ sudo pip3 install ryu
Collecting ryu
Downloading ryu-4.34.tar.gz (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 2.0 MB/s eta 0:00:00
instead: https://pip.pypa.io/warnings/venv
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ sudo apt install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.34.1-1ubuntu1.12).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ git clone
https://github.com/mininet/mininet.git
fatal: destination path 'mininet' already exists and is not an empty directory.
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ ls
bin CONTRIBUTORS debian examples LICENSE mininet mn.1 mnexec.1
README.md util
build custom doc INSTALL Makefile mininet.egg-info mnexec mnexec.c setup.py
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet$ cd util/
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet/util$ sudo./install.sh -a
bash: sudo./install.sh: No such file or directory
sanghavi@sanghavi-HP-EliteDesk-800-G2-SFF:~/mininet/util$ sudo ./install.sh
Detected Linux distribution: Ubuntu 22.04 jammy amd64
sys.version_info(major=3, minor=10, micro=12, releaselevel='final', serial=0)