Hi Adarsh,
On 2015年01月21日 16:05, Adarsh Kirnelli Rangaiah wrote:
> Hi all,
>
> Any help in resolving this will be greatly appreciated.
>
> I'm using the RYU controller with rest_router.py application to set address
> of interface and configure static rules onto pica8 switch in OVS mode. I have
> attached the network topology.
>
> I have used the following REST APIs:
>
> To set the address for interfaces
>
> curl -X POST -d
> {"address":"10.0.2.1/24"}'http://10.0.20.15:8080/router/5e3e486e7302024e
> curl -X POST -d
> {"address":"10.0.3.1/24"}'http://10.0.20.15:8080/router/5e3e486e7302024e
>
> To configure routes
>
> curl -X POST -d '{"destination":"10.0.1.11/24", "gateway": "10.0.2.22"}'
> http://10.0.20.15:8080/router/5e3e486e7302024e
> curl -X POST -d '{"destination":"10.0.2.0/24", "gateway": "10.0.2.22"}'
> http://10.0.20.15:8080/router/5e3e486e7302024e
> curl -X POST -d '{"destination":"10.0.3.0/24", "gateway": "10.0.3.41"}'
> http://10.0.20.15:8080/router/5e3e486e7302024e
I guess the static route settings to the network "10.0.2.0/24" and
"10.0.3.0/24" are not necessary,
because pica8 switch belongs to the network "10.0.2.0/24" and "10.0.3.0/24".
# Set static route
curl -X POST -d '{"destination":"10.0.1.0/24", "gateway": "10.0.2.22"}'
http://10.0.20.15:8080/router/5e3e486e7302024e
Or, how about configuring the default route as following.
# Set default route
curl -X POST -d '{"gateway": "10.0.2.22"}'
http://localhost:8080/router/5e3e486e7302024e
Thanks
>
> Please let me know if i have used the right commands to configure?
>
> With these configuration i was able to ping 10.0.2.1 and 10.0.3.1 from PC1.
> But i'm NOT able to Ping from PC1 to PC4.
>
> The pica8 sends ARP request to PC4 but the ARP reply from PC4 is not
> processed.
> As a result the route table is not updated and the ICMP echo request is not
> sent from pica8.
>
>
> Please let me know what have i missed here.
>
> Thanks in advance.
>
> Regards
> Adarsh KR
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel