Mininet
mn -c 清除配置信息(当出错的时候可能配置资源未释放)
sudo mn --custom file.py --topo mytopo
file.py 在 /mininet/custom 目录下,如果不是,则就要给出绝对路径
mininet命令
网络构建参数
–topo
–custom
–switch
定义使用的ovs,默认OVSK(OpenVSwitch)
–controller
sudo mn --controller=remote,–ip=[controller ip],–port=[port] (6653/6633)
–mac 自动设置设备的mac,
让MAC及IP地址从小到大排序,使其易读性更高
内部交互命令
net
nodes
links
pingall
py 拓展拓扑
查看py帮助信息
py help(s1)
py help(h1)
py dir (s1) 也可以看可以使用哪些函数
py 修改host ip
mininet可视化
/mininet/examples/miniedit.py
异常Exception: Error creating interface pair (s11-eth2,s12-eth2): RTNETLINK answers: File exists
解决:mn -c 清除配置信息