Hi, sorry for late reply,

You can run Ryu controller in two machine/vm/containers (just give them
different IP address) by using

If you don't have multiple machine, you can simply change OpenFlow listen
port, for example:

$ ryu-manager --ofp-tcp-listen-port 6653
$ ryu-manager --ofp-tcp-listen-port 6654

--
Yi

2017-04-19 7:38 GMT-07:00 Tao Li <[email protected]>:

> Hi Tanvir,
>
> If I understand correctly, you would like to specify the IP address of the
> hosting machine of Ryu. I think you can specify the IP by adding parameter “
> ofp-listen-host” when you start Ryu.
>
> Best regards,
> Tao
>
> On 13 Apr 2017, at 02:40, [email protected] wrote:
>
> Hi Tao
>
>
>
> Thanks for your helps.
>
>
> Let me tell you the scenario first to avoid any confusion,
>
> *Scenario: *
>
> - Two switches (S1, S2), two controllers (C1, C2) in a network
>
> - both switches are connected with both of these controllers. That means,
> S1--C1--S2, and S1--C2--S2
>
> - but controllers have no common connection between them. That means,
> C1--><-C2.
>
>
> *What do I want:*
>
> Now, I want to push rules from both of these controllers(C1, C2) into the
> same switch. So, I simply want to run two RYU controllers controlling the
> same network.
>
>
> *Problem:*
>
> I can add different IP/listening port for different RYU controllers in
> mininet script. But, I am not understanding how can I add IP information in
> RYU controller (python script)?
>
> ​It will be great help, if you kindly share some example code structure (if
> you have/know).
>
>
>
> Thank you again for your help :)
>
>  -Tanvir
>
>
> ------------------------------
> *From:* Tao Li <[email protected]>
> *Sent:* Wednesday, 12 April 2017 6:08 PM
> *To:* Ul Huque, Tanvir (Data61, Eveleigh ATP)
> *Cc:* [email protected]
> *Subject:* Re: [Ryu-devel] multiple controller scenario using RYU
>
> Hi,
>
> There is almost no difference to run multiple Ryu controller, compared
> with running a single one. You only need to configure different
> IP/listening port for multiple Ryu instances, and add such information into
> the Mininet script.
>
>
> Regards,
> Tao
>
> On 12 Apr 2017, at 08:52, [email protected] wrote:
>
> Hi
>
> I am working on multiple controllers scenario.
>
> (1) I want to run multiple controllers separately (without ONOS, or
> Zookeeper type platform) for the following Mininet topology,
> http://windysdn.blogspot.com.au/2013/10/mininet-script-for-
> multiple-controllers.html
>
> could you please tell how can I do it?
>
> Thanks
> -Tanvir
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org <http://slashdot.org/>! http://
> sdm.link/slashdot_______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>


-- 
Yi Tseng (a.k.a Takeshi)
Taiwan National Chiao Tung University
Department of Computer Science
W2CNLab

https://takeshi.tw
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to