1

为什么 mininet 默认控制器总是在环回接口 127.0.0.1 中工作,为什么 ip 在默认控制器中不能更改?如果有人可以帮助我,请谢谢

4

2 回答 2

1

使用命令行的两种方式:

--controller remote,ip=value
--controller=remote --ip=value --port=value

在自定义脚本中:

from mininet.node import RemoteController
net = Mininet(topo, switch=switch, controller=RemoteController)
于 2015-07-19T06:00:21.903 回答
0

Here is the general form:

$ sudo mn --topo single,3 --mac --switch ovsk --controller remote,ip=<controller_ip>

Here is an example:

$ sudo mn --topo single,3 --mac --switch ovsk --controller remote,ip=192.168.206.2

Here is an example of another form:

sudo mn --controller=remote --ip=127.0.0.1 --port=6633 --mac --topo=linear

Source: https://github.com/mininet/openflow-tutorial/wiki/Create-a-Learning-Switch

于 2015-07-17T20:36:03.320 回答