Routing

last person joined: 3 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.  generate default route after bgp full table learnt

    Posted 01-19-2015 08:45

    Hi,

     

    in our configuration a default route is generated only when ebgp session is established. The default route is then redistributed to the internal network by ospf. The configuration looks like this:

    policy-options {
           policy-statement PROD_UPSTREAMv4_EXISTS {
                 term 1 {
                     from {
                           protocol bgp;
                           neighbor 64.1.1.5;
                     }
                     then accept;
                 }
                then reject;
           }
    }
    routing-options {
           generate {
                 route 0.0.0.0/0 {
                       policy PROD_UPSTREAMv4_EXISTS;
                       discard;
                 }
            }
    }

     

    The configuration is working as it should but there is one problem. For MX80 it takes about 13 minutes to learn the full table by bgp and after that the routes are installed into the forwarding-table. So what we really want is that the default route is not generated when the bgp session is established but after having learnt the full table and the routes have been installed to the forwarding-table so the the traffic can be routed to the upstream before the default route is distributed by ospf.

     

    Any best practice how to solve this problem.

     

    Best regards

    Joerg



  • 2.  RE: generate default route after bgp full table learnt
    Best Answer

    Posted 01-19-2015 10:48

    you can probably use "set protocols ospf overload timeout 900" and ospf will advertise max metric for all routes for 15 mins..

    if you have another ospf speaker advertising default..traffic will go that way

     

    https://www.juniper.net/documentation/en_US/junos11.4/topics/topic-map/ospf-overload-mode.html



  • 3.  RE: generate default route after bgp full table learnt

    Posted 01-20-2015 00:03

    Thanks for the suggestion. ospf overload timeout should work for most cases. It will only not work for the rare case that all bgp peers on this device go down at the same time. Perfect would be a timeout for the generate entry or for the policy.

     

    regards

    joerg



  • 4.  RE: generate default route after bgp full table learnt

    Posted 01-26-2015 09:04

    I've tested, it seemed does not work.



  • 5.  RE: generate default route after bgp full table learnt

    Posted 01-28-2015 01:21

    Which test did you do exactly? Do you have any more information on your tests?

     

    We did not have the chance to test this.