LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-17-2019, 04:01 PM   #1
petslack
Member
 
Registered: Apr 2009
Location: Sao Paulo, Brazil
Distribution: Slackware64-Current, Arch, OpenBSD, CentOS, Debian
Posts: 51

Rep: Reputation: 15
mininet + iproute2 5.1.0 error


It seems that mininet (I'm currently using 2.3.0d5) is not compatible with latest iproute2 version 5.1.0 and it gets the following error when trying to bring up a mininet network.

This is a simple interactive test as example:

Code:
# python
Python 2.7.16 (default, Apr  3 2019, 21:30:55)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mininet.net import Mininet
>>> from mininet.node import Controller, RemoteController, OVSController
>>> from mininet.node import CPULimitedHost, Host, Node
>>> from mininet.node import OVSKernelSwitch, UserSwitch
>>> from mininet.node import IVSSwitch
>>> from mininet.cli import CLI
>>> from mininet.log import setLogLevel, info
>>> from mininet.link import TCLink, Intf
>>> from subprocess import call
>>> net = Mininet( topo=None,
...                    build=False,
...                    ipBase='10.0.0.0/8')
>>>
>>> CORE1 = net.addSwitch('CORE1', cls=OVSKernelSwitch)
>>> SW2 = net.addSwitch('SW2', cls=OVSKernelSwitch)
>>> net.addLink(CORE1, SW2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/mininet/net.py", line 400, in addLink
    link = cls( node1, node2, **options )
  File "/usr/lib64/python2.7/site-packages/mininet/link.py", line 451, in __init__
    node1, node2, deleteIntfs=False )
  File "/usr/lib64/python2.7/site-packages/mininet/link.py", line 496, in makeIntfPair
    deleteIntfs=deleteIntfs )
  File "/usr/lib64/python2.7/site-packages/mininet/util.py", line 234, in makeIntfPair
    ( intf1, intf2, cmdOutput ) )
Exception: Error creating interface pair (CORE1-eth1,SW2-eth1): RTNETLINK answers: No such device
RTNETLINK answers: No such device

>>> quit()
NOTE: It's working properly when downgrading to iproute2 5.0.0 and older.
 
Old 06-16-2019, 11:33 PM   #2
Sfner
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by petslack View Post
It seems that mininet (I'm currently using 2.3.0d5) is not compatible with latest iproute2 version 5.1.0 and it gets the following error when trying to bring up a mininet network.

Code:
Exception: Error creating interface pair (CORE1-eth1,SW2-eth1): RTNETLINK answers: No such device
RTNETLINK answers: No such device
NOTE: It's working properly when downgrading to iproute2 5.0.0 and older.
Thank you for the workaround.
I've opened an issue on their GitHub repository, as there wasn't one already.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Iproute2-4.12.0 make error 'unknown type' challengersky Linux From Scratch 3 09-21-2017 03:22 AM
Slackware 9.1 + iproute2 package blackthunder Linux - Software 0 10-29-2003 12:04 PM
iproute2 and load balancing kulmis Linux - Networking 0 08-26-2003 12:57 PM
iptables and iproute2+tc source code thanhnx Linux - Networking 1 02-19-2003 07:39 AM
need advice about cbq/iproute2/bandwidth shaper setting Yaukuai Linux - Networking 0 08-03-2001 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration