Hi,

> All routers are same AS number.

This means Ryu and other routers are connected with the iBGP(internal BGP)
peering, right? On the iBGP, generally the received routes from other iBGP peers
will not be advertised in order to avoid network loops. If you need to advertise
the iBGP routers to other iBGP peers, please configure Ryu as a Route Reflector
(or use different AS number on other routers for external BGP peering).

To configure route reflector, please enable "is_route_reflector_client" option.
http://ryu.readthedocs.io/en/latest/library_bgp_speaker_ref.html#ryu.services.protocols.bgp.bgpspeaker.BGPSpeaker.neighbor_add

Thanks,
Iwase


On 2018年05月30日 23:30, knet solutions wrote:

Hi,

I am building RYU SDN BGP Speaker as transit Router. The topology is as below,

All routers are same AS number.

Traditional BGP Router1-----------------RYU BGP Speaker---------------------- Traditional BGP Router2


Here
1. RYU BGP Speaker establishes neigbors with BGP Router1 and BGP Router2.
2. RYU BGP Speaker exchanges defined routes (prefix_add ) to BGP Router1 and BGP Router2.
3. RYU BGP Speaker learned routes from BGP Router1 and BGP Router2.

But,  RYU BGP Speaker is not  exchanging the routes learned from BGP Router1 to BGP Router2 and  vice versa.

How do we make it distribute routes from Router1 to Router2??? Any help is appreciated.



I just used only below code snippet for RYU BGP Stuff

         self.bgp_speaker = BGPSpeaker(local_as_number, router_id,
                                       ssh_console=True, ssh_port=4999,
                                       ssh_host='localhost',
best_path_change_handler=self.best_path_change_handler )
         self.bgp_speaker.neighbor_add(neighbor1_id, neighbor_as_number)
         self.bgp_speaker.neighbor_add(neighbor2_id, neighbor_as_number)

         self.bgp_speaker.prefix_add(prefix="10.2.1.0/24 <http://10.2.1.0/24>")


--
*/Regards,
/*
*/Knet solutions./*

https://github.com/knetsolutions/KNet
http://knet-topology-builder.readthedocs.io/
http://knetsolutions.in/



------------------------------------------------------------------------------
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
Ryu-devel@lists.sourceforge.net
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
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to