Hi,
On 2015年06月09日 04:07, Bryan Valencia wrote:
> Thank you very much for your answer.
>
> Yes, I understand, I know that the "routing" really going on in the
> controller, but I'm using the command:
>
> "curl http/ localhost:8080 /router/0000000000000001"
>
> in the xterm c0, which means I'm checking it on the controller.
>
> The problem is that the book shows this:
>
> [
> {
> "internal_network" [
> {
> "route": [
> {
> "route_id": 1,
> "destination" "0.0.0.0/0 <http://0.0.0.0/0>"
> "gateway", "172.16.30.1"
> }
> ],
> "address": [
> {
> "address_id": 1,
> "address", "172.16.20.1/24 <http://172.16.20.1/24>"
> },
> {
> "address_id": 2,
> "address", "172.16.30.30/24 <http://172.16.30.30/24>"
> }
> ]
> }
> ],
> "switch_id": "0000000000000001"
> }
> ]
>
> But I get this:
>
>
> [
> {
> "internal_network" [
> {
> "address": [
> {
> "address_id": 1,
> "address", "172.16.20.1/24 <http://172.16.20.1/24>"
> },
> {
> "address_id": 2,
> "address", "172.16.30.30/24 <http://172.16.30.30/24>"
> }
> ]
> }
> ],
> "switch_id": "0000000000000001"
> }
> ]
>
> No part of "route".This outputs shows that "Configuring the Default Route" could not be done correctly... On my environment, rest_router.py works fine. # Start mininet with UserSwitch(ofsoftswitch13) $ sudo mn --topo linear,3 --mac --switch user --controller remote [sudo] password for ryu: *** Creating network *** Adding controller Unable to contact the remote controller at 127.0.0.1:6633 *** Adding hosts: h1 h2 h3 *** Adding switches: s1 s2 s3 *** Adding links: (h1, s1) (h2, s2) (h3, s3) (s1, s2) (s2, s3) *** Configuring hosts h1 h2 h3 *** Starting controller *** Starting 3 switches s1 s2 s3 *** Starting CLI: mininet> h1 ip addr del 10.0.0.1/8 dev h1-eth0 mininet> h1 ip addr add 172.16.20.10/24 dev h1-eth0 mininet> mininet> h2 ip addr del 10.0.0.2/8 dev h2-eth0 mininet> h2 ip addr add 172.16.10.10/24 dev h2-eth0 mininet> mininet> h3 ip addr del 10.0.0.3/8 dev h3-eth0 mininet> h3 ip addr add 192.168.30.10/24 dev h3-eth0 # Input the commands on Ryu-book # (Please check the attached file) bash ./13_single_tenant_commands.sh # Set default rout on each host and do ping mininet> h1 ip route add default via 172.16.20.1 mininet> mininet> h2 ip route add default via 172.16.10.1 mininet> mininet> h3 ip route add default via 192.168.30.1 mininet> mininet> h2 ping 192.168.30.10 PING 192.168.30.10 (192.168.30.10) 56(84) bytes of data. 64 bytes from 192.168.30.10: icmp_seq=1 ttl=62 time=10.0 ms 64 bytes from 192.168.30.10: icmp_seq=2 ttl=62 time=0.675 ms 64 bytes from 192.168.30.10: icmp_seq=3 ttl=62 time=0.728 ms 64 bytes from 192.168.30.10: icmp_seq=4 ttl=62 time=0.716 ms 64 bytes from 192.168.30.10: icmp_seq=5 ttl=62 time=1.04 ms ^C --- 192.168.30.10 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4001ms rtt min/avg/max/mdev = 0.675/2.646/10.069/3.713 ms mininet> Thanks, Iwase > > When I try to ping between two hosts he says: > > Destination Host Unreacheable. > > Thank you. > > 2015-06-08 11:50 GMT-05:00 Ronaldo Afonso <[email protected] > <mailto:[email protected]>>: > > Hi Bryan, > > I've done that same exercise too but using Open vSwitch and It worked > just fine. > > I'm studying Ryu and what I can tell you is that you will not see any > routes on the switch. I mean, you'll not be able to see those routes using > some command like: ip route show. > > The routes are in the controller. The think is, every time a packet is > received by the switch (being it an Open vSwitch or not), the switch will > pass that packet to the controller and the controller will do the "routing". > > Well, as I told you ... I'm learning all that SDH stuff and I did that > same exercise from the book. I had the same felling as you. After sending > those commands to the controller I wanted to check out the switches for the > routes, and although the routing was working I couldn't find any configured > routes in the switches. > > Does it make sense to you? > > Thanks ... > > 2015-06-08 12:42 GMT-03:00 Bryan Valencia <[email protected] > <mailto:[email protected]>>: > > Thank you so much for your help. > > I'm doing a router exercise from Book RYU > (http://osrg.github.io/ryu-book/en/Ryubook.pdf) page 113 , but I'm using > ofsoftswitch13 and not Open vSwitch. When I try start the RYU controller, I > get this warning message: > > Imágenes integradas 1 > > I think the reason is I didn't do this: > > Imágenes integradas 2 > Because I think that if ofsoftswitch13 is for OpenFlow 1.3, this is > not necesary, moreover I don't know to do this for this Software Switch. > > Then I ran all the other steps to configure gateway and static > routes. At the end I couldn't ping between hosts. > > There is a difference between the book and what I did. The book shows > this: > > Imágenes integradas 4 > > But I got this: > > Imágenes integradas 3 > > The switches doesn't show the "router" configurations. > > I want to ask whether the reason why I have this error is because I > am using the ofsoftswitch13 and not Open vSwitch or what could be wrong? > > Thank you very much. > > > -- > Bryan Valencia Suárez > Estudiante de Ingeniería de Sistemas y Telecomunicaciones > Cel: 312 709 1360 <tel:312%20709%201360> > Universidad Católica de Pereira > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Ryu-devel mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/ryu-devel > > > > > -- > Ronaldo Afonso > 11 9 5252 0484 > www.ronaldoafonso.com.br <http://www.ronaldoafonso.com.br> > > > > > -- > Bryan Valencia Suárez > Estudiante de Ingeniería de Sistemas y Telecomunicaciones > Cel: 312 709 1360 > Universidad Católica de Pereira > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel >
13_single_tenant_commands.sh
Description: application/shellscript
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
