安装过程完全安装mininet官方给的方法即可,有几个地方需要注意的,标注如下:
我用的virtual box
VirtualBox:
0. 启动virtualbox后,先添加个host-only adapter网络 ,VirtualBox VM-->preferences-->network , 找到默认是NAT network ,边上有个Host-only network, 添加一个。 这一步不做默认的是NAT网络,eth0的IP地址是10.x.x.x, 无法从PC上ssh.
-
import 下载好的mininet image , *.ovf.
-
Select “settings,” and add an additional host-only network adapter that you can use log in to the VM image.加上这个网络后,就有两个host-only 网络,eth0 eth1, 如果不加,后面做sudo dhclient eth1 时会报错找不到eth1