sudo mn --link tc,bw=10,delay=10m
提供以下内容
$ sudo mn --link tc,bw=10
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(10.00Mbit) *** Error: RTNETLINK answers: No such file or directory
(10.00Mbit) *** Error: RTNETLINK answers: No such file or directory
(h1, s1) (10.00Mbit) *** Error: RTNETLINK answers: No such file or directory
(10.00Mbit) *** Error: RTNETLINK answers: No such file or directory
(h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...(10.00Mbit) (10.00Mbit)
*** Starting CLI:
mininet> exit
*** Stopping 1 controllers
c0
*** Stopping 2 links
..
*** Stopping 1 switches
s1
*** Stopping 2 hosts
h1 h2
*** Done
completed in 199.858 seconds
可以在Ubuntu 16中重现,但不能在Ubuntu 14中重现
如果未设置bw
,delay
,则无误。有人可以帮忙吗?
答案 0 :(得分:0)
Issue #629建议从源代码安装,而不是从Ubuntu仓库安装。
cd ~
git clone git://github.com/mininet/mininet
cd mininet
sudo make install