question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error creating interface pair (s1-eth1,h1-eth0) in mininet

See original GitHub issue

I have created a custom topology as following and run it using mininet and connect to POX remote controller.

class CustomTopo (Topo):   
    def build(self):
        S1 = self.addSwitch('s1')
        H1 = self.addHost('h1')
        H2 = self.addHost('h2')
        self.addLink(S1, H1)
        self.addLink(S1, H2)

topo = CustomTopo()
net = Mininet(topo)
net.start()
topos = {'mytopo': CustomTopo}

It worked correctly first time, but after that I received following error in POX controller when it tried to add links:

Caught exception. Cleaning up… Exception: Error creating interface pair (s1-eth1,h1-eth0): RTNETLINK answers: File exists

What can I do to solve it?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

27reactions
Hrish1commented, May 28, 2018

try running “sudo mn -c”

and then run the script.

On Mon, May 28, 2018 at 9:23 PM, Babak Memar notifications@github.com wrote:

I have created a custom topology as following and run it using mininet and connect to POX remote controller.

class CustomTopo (Topo): def build(self): S1 = self.addSwitch(‘s1’) H1 = self.addHost(‘h1’) H2 = self.addHost(‘h2’) self.addLink(S1, H1) self.addLink(S1, H2)

topo = CustomTopo() net = Mininet(topo) net.start() topos = {‘mytopo’: CustomTopo}

It worked correctly first time, but after that I received following error in POX controller when it tried to add links:

Caught exception. Cleaning up… Exception: Error creating interface pair (s1-eth1,h1-eth0): RTNETLINK answers: File exists

What can I do to solve it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mininet/mininet/issues/804, or mute the thread https://github.com/notifications/unsubscribe-auth/AaCAbcRf2ZlmXgQ0VEHT6ifEI8FvBdHgks5t3B1igaJpZM4UQX9o .

1reaction
BabakMemarcommented, May 30, 2018

I already try it but it does not solve the problem. @Hrish1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception Error in mininet - python - Stack Overflow
@Daniel I found out that my topology create each host twice, so it can not add link between s1 and h1 for the...
Read more >
[mininet-discuss] Error creating interface pair
[mininet-discuss] Error creating interface pair ... Because I just checked it with sudo mn in mininet folder it works well Regards Uzma ...
Read more >
Error creating interface pair (s1-eth1,h1-eth0): RTNETLINK ...
Exception: Error creating interface pair (s1-eth1,h1-eth0): RTNETLINK answers: File exists solution ... and then run the script. Bunu paylaş:.
Read more >
Error creating interface pair (s2-eth5,s3-eth1): RTNETLINK ...
... when you try to rerun your mininet network. Traceback (most recent call last): File "./mynet.py", line 31, in <module> net.
Read more >
30 Mininet - An Introduction to Computer Networks
Mininet containers then are assigned virtual Ethernet interfaces (see the ... this we create addrdict , a dictionary mapping (router,interface) pairs to the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found