I follow the steps described in "Ryu SDN fraework, release 1.0" chapter 9.
1)build an environment on Mininet:
ryu@ryu-vm:~$ sudo mn --topo linear,3 --mac --switch ovsk --controller remote -x
2)Set the version of OpenFlow to be used in each router to 1.3.
switch: s1 (root):
root@ryu-vm:~# ovs-vsctl set Bridge s1 protocols=OpenFlow13
switch: s2 (root):
root@ryu-vm:~# ovs-vsctl set Bridge s2 protocols=OpenFlow13
switch: s3 (root):
root@ryu-vm:~# ovs-vsctl set Bridge s3 protocols=OpenFlow13
3)delete the IP address that is assigned automatically on each host
and set a new IP address.
host: h1:
root@ryu-vm:~# ip addr del 10.0.0.1/8 dev h1-eth0
root@ryu-vm:~# ip addr add 172.16.20.10/24 dev h1-eth0
host: h2:
root@ryu-vm:~# ip addr del 10.0.0.2/8 dev h2-eth0
root@ryu-vm:~# ip addr add 172.16.10.10/24 dev h2-eth0
host: h3:
root@ryu-vm:~# ip addr del 10.0.0.3/8 dev h3-eth0
root@ryu-vm:~# ip addr add 192.168.30.10/24 dev h3-eth0
4)Start rest_router on xterm of controller.
controller: c0 (root):
root@ryu-vm:~# ryu-manager ryu.app.rest_router
In this step i got the error mensage attachments.

By the other hands
i started the rest_router in another sesion:
ubuntu@sdnhubvm:~/ryu$ ./bin/ryu-manager ryu/app/rest_router.py
and show the mensage for a successful connection between the router
and Ryu, next:

5)Set the address for each router:
ubuntu@sdnhubvm:~/ryu$ curl -X POST -d ´{"address":"172.16.20.1/24"}’
http://localhost:8080/router
/0000000000000001
[{"switch_id": "0000000000000001",
"command_result": [{
"result": "success",
"details": "Add address [address_id=1]"}]}]
ubuntu@sdnhubvm:~/ryu$ curl -X POST -d ’{"address":
"172.16.30.30/24"}’ http://localhost:8080/router
/0000000000000001
[{"switch_id": "0000000000000001",
"command_result": [{
"result": "success",
"details": "Add address [address_id=2]"}]}]
And the rest of address describe in the chapter.

6)Register as the default gateway on each host.
host: h1:
root@ryu-vm:~# ip route add default via 172.16.20.1
host: h2:
root@ryu-vm:~# ip route add default via 172.16.10.1
host: h3:
root@ryu-vm:~# ip route add default via 192.168.30.1
7)Set the default route for each router.
ubuntu@sdnhubvm:~/ryu$ curl -X POST -d ’{"gateway": "172.16.30.1"}’
http://localhost:8080/router
/0000000000000001
[{"switch_id": "0000000000000001",
"command_result": [{
"result": "success",
"details": "Add route [route_id=1]"
}]}]

And the rest of address describe in the chapter.

8)for s2 router, set a static route to the host (192.168.30.0/24)
under router s3
root@ryu-vm:~# curl -X POST -d ’{"destination": "192.168.30.0/24", "gateway":
"192.168.10.20"}’ http://localhost:8080/router/0000000000000002
[{
"switch_id": "0000000000000002",
"command_result": [
{"result": "success",
"details": "Add route [route_id=2]"}]}]

9)Checking the contents of the setting of each router and every things ok.
And the host can communicate
successfully!!!!

BUT
if i create a enviroment with Miniedit, when start the enviroment and
try to start a xterm for the conrtoller output: "c0 is not in network"
and the rest of configuration (list before) i made from another
terminal sucessful but when i chek  the contents of the setting of
each router only the address was added.
and the controller shows a new log mensaje, and the routers are
disconnected randomly. the pings don´t work.

thanks, sorry for the delay , I had problem with internet



2015-05-21 22:11 GMT-04:00, Yusuke Iwase <[email protected]>:
> Hi,
>
> On 2015年05月22日 02:43, Lia Lia wrote:
>> hello
>>
>> i´m cheking "Ryu SDN fraework, release 1.0" and i work with firewall
>> dscribed in chapter 9 ok.
>>
>> But
>>
>> I´m trying to simulate an SDN enviroment in Mininet with ryu
>> controller and use a router(switch OpenFlow) that can be set using
>> REST.
>>
>> I´m trying to use the router described in "Ryu SDN fraework, release
>> 1.0" chapter 10
>>
>> i follow all the steps correctly,
>
> Specifically, what commands did you input?
> And could you send us the results of them?
>
> Thanks,
> Iwase
>
>>
>>  when i´m configuring the address, the default route and the static
>> routes i get all the result like the picture show BUT
>>
>> when i verifying the setting in each router with:
>>
>> curl http://localhost:8080/router/0000000000000001
>>
>> curl http://localhost:8080/router/0000000000000003
>>
>> curl http://localhost:8080/router/0000000000000002
>>
>> only shows the "address" setings, don´t show the "route" setting
>> (route_id, destination, gateway)
>>
>> And of course the host can´t ping each another
>>
>> what i make wrong?
>>
>> If you have another idea about make a router with ryu, please.
>>
>> Please help me, thanks
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to