1——[email protected] : ~$ sudo passwd root(创建root)

2——[email protected]:~$ su root
3——[email protected]:/home/jackson# apt-get update
4——[email protected]:/home/jackson# apt-get upgrade
5——[email protected]:/home/jackson# apt-get install git
6——–[email protected]:/home/jackson#git clone git://github.com/mininet/mininet
7——[email protected]:/home/jackson# cd mininet
[email protected]:/home/jackson/mininet# cat INSTALL

8——[email protected]:/home/jackson/mininet# install.sh -a mininet/util/install.sh –a
9——E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 –fix-missing 的选项再试试?
[email protected]:/home/jackson/mininet#
[email protected]:/home/jackson/mininet# apt-get update—fix-missing
10—[email protected]:/home/jackson# mn -version
程序“mn”尚未安装。 您可以使用以下命令安装:
apt install mininet
[email protected]:/home/jackson# apt install mininet
11——[email protected]:/home/jackson# sudo mn –test pingall(测试mininet)
10—使用su root的退出方法:
1.输入su 用户名,回车。
两软件链接:sudo mn –controller=remote,ip=192.168.0.120,port=6633 –switch ovsk,protocols=OpenFlow10 (成功的)

sudo mn –custom /home/lyx/fattree.py –topo mytopo –controller=remote,ip=218.193.113.249,port=6633 –switch ovsk,protocols=OpenFlow10

mininet笔记

相关文章: