Mininet-WIFI安装和简单使用
安装
git clone https://github.com/intrig-unicamp/mininet-wifi
cd mininet-wifi
sudo util/install.sh -Wlnfv
安装时如果提醒需要升级pip,不要按照提示上的命令升级。亲测没用,百度上的方法都ok。
简单使用
创建一个最简单的拓扑sta1<->ap1<->sta2
mn --wifi
在第一次创建是遇到一个问题:
Traceback most recent call last):
File "/usr/local/bin/mn", line 4, in
import'pkg_resources').run_script'mininet-wifi===2.2.0d1', 'mn')
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 719, in run_script
self.requirerequires)[0].run_scriptscript_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1504, in run_script
execcode, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/mininet_wifi-2.2.0d1-py2.7.egg/EGG-INFO/scripts/mn", line 24, in
from mininet.wifi.clean import cleanup_wifi
ImportError: No module named wifi.clean
在Mininet-WIFI的Github上找到解决方法:
mininet-wifi$ sudo rm -r /usr/local/lib/python2.7/dist-packages/mininet*
mininet-wifi$ sudo make install
安装后无论使用普通版的Mininet还是Mininet-wifi提示符都是:
mininet-wifi>