khan
khan

Reputation: 31

Why mininet default controller always work in loop back interface 127.0.0.1

Why mininet default controller always work in loop back interface 127.0.0.1 and why ip cannot change in default controller ? If any one can help me please thank you

Upvotes: 2

Views: 2198

Answers (2)

sinhayash
sinhayash

Reputation: 2803

Two ways using command line:

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

In custom script:

from mininet.node import RemoteController
net = Mininet(topo, switch=switch, controller=RemoteController)

Upvotes: 1

Ehsan Ab
Ehsan Ab

Reputation: 679

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

Upvotes: 0

Related Questions