First, the question
Follow the Mininet official website to install from the source code installation procedure, run the commandsudo mn --link tc,bw=10,提示说*** Error: RTNETLINK answers: No such file or directory。
Second, reason analysis and solution
and mininet the use of TC to establish and modify interface properties. According to [1], the main is link.py code in the TC Qdisc del has a problem. The associated code actually has the master branch in the merge, but it is not used in 2.2.1.
So just switch the source code to master branch and reinstall.
Iv. reference materials
[1] Tcintf:don ' t delete a non-existing root qdisc by Oliviertilmans Pull Request #603 • Mininet/mininet
[2] Mininet problem with Ubuntu 16.0 • Issue #629 · Mininet/mininet
[3]16.04-mininet Link Error: ' * * * error:rtnetlink answers:no such file or directory '-Ask Ubuntu
Mininet * * * error:rtnetlink answers:no such file or directory problems and solutions