Go to the folder of mininet and create a file xyz.py. Then write the code for the corresponding topology and run it as sudo python xyz.py. src: github.com/PrincetonUniversity/Coursera-SDN/tree/master/assignments/mininet-topology
Hi everybody, I'm traying to change mininet link properties but i can't. Anyone know some way to do it? For example after add "net.addLink(h1, s4, 0, 3, bw=100, delay='5ms', loss=0, max_queue_size=1000, use_htb=True )" in python script. There are any command to change the delay or the bandwidth with mininet running? mininet>---- Thanks
I need help with a network engineering assignment. Any chance you made a simpe switcth in python that, Key Task 1 Modify simple_switch.py to include logic to block IP traffic between host 2 and host 3. Key Task 2 Extend simple_switch.py to count all traffic going to and originating at host 1. Key Task 3 Create a rule in simple_switch.py that routes messages to the controller for topology maintenance.
Just save it anywhere and run it from the same directory .Ex" /home/mydir$ sudo python mycode.py " If you are using virtualbox, install xterm. run xming , run putty with x11 forwarding enabled. Now it will automatically catch any window like gedit or miniedit or wireshark.
'+fedora 2 1 What is the solution of 'Mininet must be run as root'? The user name and password for Mininet VM is mininet. I tried 'sudo' with command and used VM machine with sudo too.
Which Distribution are you using, if you are using Fedora, you need to be a real root user, which can be done as, for fedora/redhat/centos $ su - enter your root password and run mininet root@fedora21~#mn --topo=linear,2 --mac if you are using ubuntu, ubuntu has already sudo users enabled $ sudo mn on running above command, if the mininet complains, try to login as root user and run mininet $ sudo su - root@fedora21~#mn I think this will solve the problem
I am running ONOS-byon from "github.com/bocon13/onos-byon/blob/master/topos/onosnet.py".....by ./startmn.sh......but getting a message "Need to provide a topology and list of controllers".......Please tell me how do I resolve it.
good afternoon friend your videos very educational, it has served me well but I would like to know if you have knowledge miniedit, I would be helpful if you could raise a tutorial for installation and management.
man you explain stuff better than any professor
Thank you for existing
how can I learn all types of creating custom topologies?
💖
Sir we are going to implement bidirectional forward detection algorithms in mininet plz help us how to implement bfd program in mininet
How can I simulate a wireless connection such as base station and satellite?
dpctl show tcp:127.0.0.1:6634 is not working it responds "ovs-ofctl: 'add-flow' command takes at most 2 arguments
"
You mentioned a "opneflow tutorial" but It seems not part of these 41 videos. Am I wrong?
How can I implement my phishing ml detection on mininet to detect phishing at the edge of the network
PLEASE help me if used Mininet which Editor Language ?
I want to run my own topology but I don't know what folder to store it or how to execute it. What should I do?
Go to the folder of mininet and create a file xyz.py. Then write the code for the corresponding topology and run it as sudo python xyz.py.
src: github.com/PrincetonUniversity/Coursera-SDN/tree/master/assignments/mininet-topology
Hi everybody,
I'm traying to change mininet link properties but i can't.
Anyone know some way to do it?
For example after add "net.addLink(h1, s4, 0, 3, bw=100, delay='5ms', loss=0, max_queue_size=1000, use_htb=True )" in python script.
There are any command to change the delay or the bandwidth with mininet running?
mininet>----
Thanks
Hi, had you found any solution? I want to do the same.
I need help with a network engineering assignment. Any chance you made a simpe switcth in python that,
Key Task 1
Modify simple_switch.py to include logic to block IP traffic between host 2 and host 3.
Key Task 2
Extend simple_switch.py to count all traffic going to and originating at host 1.
Key Task 3
Create a rule in simple_switch.py that routes messages to the controller for topology maintenance.
u need help?
Hello guys. Could you help me?
Is it possible run a python script inside the mininet's prompt? I mean during runtime.
Thanks
Did you figure this out??
Currently struggling with how to do this as well right now
I can’t seem to access the python script I wrote
Or I’m looking for how to access it via the virtual machine
Please help anyone
how to store .py files and how to open the python interface in xterm?
Palash Bista I want to know that too :/
Just save it anywhere and run it from the same directory .Ex" /home/mydir$ sudo python mycode.py "
If you are using virtualbox, install xterm. run xming , run putty with x11 forwarding enabled. Now it will automatically catch any window like gedit or miniedit or wireshark.
Could you please tell me : How can i run the script when the python file is in the OS outside Virtual Machine?
+Sugan Shakya Bro yesto garda huncha hola, from your host machine where your file resides do
cat mininet_topo.py | ssh mininet@ python
Thank you. Ma try garchhu.
'+fedora 2 1 What is the solution of 'Mininet must be run as root'? The user name and password for Mininet VM is mininet. I tried 'sudo' with command and used VM machine with sudo too.
Which Distribution are you using, if you are using Fedora, you need to be a real root user, which can be done as,
for fedora/redhat/centos
$ su -
enter your root password and run mininet
root@fedora21~#mn --topo=linear,2 --mac
if you are using ubuntu, ubuntu has already sudo users enabled
$ sudo mn
on running above command, if the mininet complains, try to login as root user and run mininet
$ sudo su -
root@fedora21~#mn
I think this will solve the problem
+fedora 2 1 Thank you.
I am running ONOS-byon from "github.com/bocon13/onos-byon/blob/master/topos/onosnet.py".....by ./startmn.sh......but getting a message "Need to provide a topology and list of controllers".......Please tell me how do I resolve it.
good afternoon
friend your videos very educational, it has served me well but I would like to know if you have knowledge miniedit, I would be helpful if you could raise a tutorial for installation and management.
th-cam.com/video/yNmv7GiHIKE/w-d-xo.html
Where are we supposed to store the .py files?
Mahima Vuppuluri Hi, you may store it anywhere. When you want to run it, just go to that directory and python it
I had the same question. What do you mean by "go to that directory and python it?"
/home/mydir$ sudo python mycode.py
You can follow steps on this page: www.wikihow.com/Create-and-Edit-Text-File-in-Linux-by-Using-Terminal
when i run sudo python filename.py , I am getting the error:
cannot import name createLink.
Can you please help me out? What am I missing.
+shashwath V see the file that he actually runs seconds later you will see that they are different