Questions tagged [mininet]

Mininet is a network emulator.

Mininet can be used to deploy a full network topology on your system. It runs a collection of end-hosts, switches, routers, and links on a single Linux kernel. It uses lightweight virtualization to make a single system look like a complete network, running the same kernel, system, and user code.

Resources:

636 questions
8
votes
3 answers

xterm not working in mininet

I'm using mininet version 2.1.0. My setup is such that I've to run the mininet command from a remote machine, e.g., ssh -X user@IP python mininet.py X11 forwarding seems to be fine. X forwarding does not work from the mininet shell only, but it…
IP_Engr
  • 115
  • 2
  • 2
  • 8
8
votes
5 answers

How to set bandwidth on Mininet custom topology?

I want to set bandwidth on Mininet custom topology. The python code is: #!/usr/bin/python from mininet.topo import Topo from mininet.net import Mininet from mininet.node import CPULimitedHost from mininet.link import TCLink from mininet.util import…
NWOWN
  • 399
  • 1
  • 4
  • 17
6
votes
4 answers

sending a message from controller1 to controller2

I have a topology in mininet which consists of 2 floodlight controllers (c1 and c2), a switch (s1) which is connected to c1 and 2 hosts (h1 and h2) that are connected to this switch. I'm writing a program in which when c1 receives an ICMP packet…
helen
  • 587
  • 1
  • 10
  • 26
6
votes
2 answers

how to use python scripts or (.py files) in mininet?

I am new to mininet and python. i want to execute a python script in mininet, but i don't know how can we run python scripts in mininet and where to store .py files in order to call from mininet. any idea please?
zafar malik
  • 69
  • 1
  • 3
  • 7
6
votes
4 answers

How to run wireshark on mininet?

I am trying to run wireshark on mininet using a ssh session but it does not work I have this error : error: XDG_RUNTIME_DIR not set in the environment. and also this error : (wireshark:1945): Gtk-WARNING **: cannot open display: I will…
hayfa
  • 89
  • 1
  • 1
  • 4
5
votes
2 answers

ModuleNotFoundError: No module named 'mininet'

I have installed mininet on my computer and now I want to run a python script with mininet. How should I do so? If I just use python3 star.py, I get an error that: Traceback (most recent call last): File "star.py", line 2, in from…
x89
  • 2,798
  • 5
  • 46
  • 110
5
votes
1 answer

How to open each mininet node in terminator

I tried first opening terminator then executing mininet as sudo, but i couldn't create new sessions within terminator for each mininet node in the topology. script -f MININET_NODE_TTY after xterm h1 won't work as well because the output of ip -ais…
5
votes
2 answers

How are port numbers are determined in mininet?

I have a network similar to the one in the picture below. This is the python code for the network: net.addLink(s1, s2) net.addLink(s2, s3) net.addLink(s3, s4) net.addLink(s4, s1) net.addLink(s1, h1) net.addLink(s3, h2) How would I go about…
5
votes
4 answers

What alternatives SDN controllers to POX are available?

I would like to get your advice about the best open-source SDN controller available. I want to implement and test some ideas I have in my research so I need to use a simulation such as Mininet. In fact, I am familiar with mininet and able to deal…
Friddy Joe
  • 157
  • 2
  • 11
5
votes
3 answers

NameError: name '_name_' is not defined

I have gone through the similar question in stackoverflow but couldn't find the answer close to my problem. In the code below the 3 line before the last line is giving Error - NameError: name '_name_' is not defined I have copied the below code…
Cin Sb Sangpi
  • 687
  • 3
  • 7
  • 22
5
votes
0 answers

Mininet - Make a host act as a switch

I need some help with Mininet. I know it may seem odd to try to do this, but trust me it is necessary given my circumstances. I need to start mininet with a host, and then, "manually", set that host up as an OpenFlow Switch. What I have so far is…
5
votes
1 answer

how to connect different switches to different remote controllers in mininet?

I want to connect different switches of the mininet virtual network to different remote controller and am unable to get any idea how to proceed. Please provide any method to do this? Any python example is appreciated.
arpp
  • 325
  • 1
  • 3
  • 10
5
votes
8 answers

Mininet Cannot find required executable controller

Whenever I want to run sshd.py example in mininet or some custome code I have written myself I get *** Creating network *** Adding controller *** Adding hosts: h1 h2 h3 h4 h5 *** Adding switches: s1 *** Adding links: (h1, s1) (h2, s1) (h3, s1)…
Moh Zah
  • 262
  • 1
  • 2
  • 9
4
votes
2 answers

X11 connection rejected because of wrong authentication in Mininet

I am getting this message whenever I run xterm from within mininet: mininet> xterm h1 mininet> X11 connection rejected because of wrong authentication. However, if I run it as: mininet@mininet-vm:~$ xterm It shows the window as normal. I only…
Emma
  • 109
  • 1
  • 8
4
votes
2 answers

(mininet) Configure multiple interfaces on a host

I have a scenario in which there is a server machine with two interfaces. Each of these interfaces has its own IP address. The server machine hosts an HTTP server, which should be accessible via both of the interfaces. Full python script to…
bmscicho
  • 139
  • 2
  • 11
1
2 3
42 43