mininet icon indicating copy to clipboard operation
mininet copied to clipboard

pingall fails with default installation on Ubuntu 20.04

Open jacobperron opened this issue 5 years ago • 5 comments

Expected/Desired Behavior:

Calling pingall with default topology succeeds without packet loss.

Actual Behavior:

Emulated hosts cannot reach each other. 100% packet loss.

Detailed Steps to Reproduce the Behavior:

$ sudo mn
*** 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> pingall
*** Ping: testing ping reachability
h1 -> X 
h2 -> X 
*** Results: 100% dropped (0/2 received)

Additional Information:

I installed mininet with:

sudo apt install mininet

I also tried running with the --test option and the process hangs at "Waiting for switches to connect":

$ sudo mn --test pingall
*** 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 ...
*** Waiting for switches to connect

jacobperron avatar Jun 29 '20 23:06 jacobperron

@jacobperron - Did you get anywhere with this? I'm hitting the same thing with the package installed from apt. I even tried cloning the repo and using the install script, but I'm hitting a linking error during the make of oflops.

jlax47 avatar Aug 14 '20 04:08 jlax47

@jlax47 I ended up using the install script. I ran the following commands in a Docker container:

apt install -y git iputils-ping
git clone http://github.com/mininet/mininet.git
cd mininet
util/install.sh -fnv

I didn't notice any linking errors.

jacobperron avatar Aug 14 '20 16:08 jacobperron

Ping @lantz ... this project seems pretty quiet, you were the last committer, so I'm wondering if you have any idea if anyone is working on making sure mininet can work on modern Ubuntu's?

jeffallen avatar Nov 26 '20 10:11 jeffallen

@jlax47 With the changes in #980, I am able to install it from source into Ubuntu 20.04, and your repro case works for me.

My own existing Mininet-based topology still has problems only on 20.04 (still debugging that), but the minimal test you showed at least works.

jeffallen avatar Nov 26 '20 14:11 jeffallen

can this then be closed @jeffallen then?

cheriimoya avatar Feb 02 '22 19:02 cheriimoya