Search code examples
ubuntubackground-processmininet

How to run mininet in ubuntu in background?


I want to run mininet in ubuntu in background but when I do this:

ubuntu:~$ sudo mn &

I am unable to type any shell command, when I press Enter, the mininet topology exits.

How to run it completely in the background?


Solution

  • I had the same problem. I realized since Mininet needs a terminal, I could use screen to create a virtual session and run Mininet there. Then I would just close that terminal and Mininet will keep running in the background inside the shell created by screen. I needed this since I was running long tests on a remote machine and I couldn't risk keeping a terminal open on SSH from my machine.