SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Static route preference on SRX

    Posted 03-14-2014 04:14

    Hi all,

     

    I have configured two static default routes. Second route must be backup and I assigned higher preference to second route. However show route shows secod route as working route.This are results of show configuration and show route 0.0.0.0:

     

    set routing-options static route 0.0.0.0/0 next-hop XXX
    set routing-options static route 0.0.0.0/0 next-hop YYY
    set routing-options static route 0.0.0.0/0 preference 10

     

    0.0.0.0/0 *[Static/10] 00:00:05
    via XXX
    > via YYY

     

    I have added preference 10 this way:

    set routing-options static route 0.0.0.0/0 next-hop YYY preference 10

    But preference 10 added for two routes. So how to add preference 10 only for second route, which will have higher preference than 1st static route and will be backup default route?

     

    Thanks

     



  • 2.  RE: Static route preference on SRX
    Best Answer

    Posted 03-14-2014 04:38

    Hi,

     

    Using qualified-next-hop should solve your problems:

     

    http://www.juniper.net/techpubs/en_US/junos13.3/topics/topic-map/policy-static-route-selection.html

     



  • 3.  RE: Static route preference on SRX

    Posted 03-14-2014 04:39

    Hi Haurt,

     

     

    can you try with below commands and check....

     

     

    #set routing-options static route 0/0 next-hop x.x.x.x
    #set routing-options static route 0/0 qualified-next-hop y.y.y.y preference 10



  • 4.  RE: Static route preference on SRX

    Posted 03-14-2014 06:03

    Thanks