Routing

last person joined: 2 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Automatic BGP Peering

    Posted 08-23-2017 05:31

    Hello,

     

    Kindly I am trying to build route injector, which importing routes from route servers via iBGP, and advertise routes to my core routers via eBGP.

     

    The issue here that I need to peer with more than 100 route servers, and I need that to be done automatically if I can, not via going each time -in case we have new route server- to route injector and write that manually.

     

    So my question is: can we define BGP neighbour as regular expression maybe? so for example I will peer with neighbours whose their addresses: "<10.10.0.[1-100]>"? or is there any other idea?

     

    Best Regards,

    Mou



  • 2.  RE: Automatic BGP Peering
    Best Answer

    Posted 08-23-2017 05:47

    Hello,

    "passive" + "allow" knobs under BGP group is the solution:

     

    set protocols bgp group RTSVRS peer-as 65530
    set protocols bgp group RTSVRS local-address 203.0.113.1
    set protocols bgp group RTSVRS passive
    set protocols bgp group RTSVRS allow 10.10.0.0/25 ## will allow 10.10.0.0 thru 10.10.0.127

    Please note BGP authentication is not supported with "passive" knob.

    HTH

    Thx

    Alex



  • 3.  RE: Automatic BGP Peering

    Posted 08-23-2017 06:05

    awesome, thanks man

     

    Just to complete the idea if someone reads this:

    We can't use "allow" with "authentication" enabled.

    https://www.juniper.net/documentation/en_US/junos12.1x46/topics/reference/configuration-statement/allow-edit-protocols-bgp.html