Certifications

Expand all | Collapse all

routing values :preference and metric

Jump to Best Answer
  • 1.  routing values :preference and metric

    Posted 01-26-2017 18:46
      |   view attached

    Hi All,

    What is the different between modified preference and metric? And which one more preferable? Please have a look at the attached picture, Why is traffic forwarded to 192.168.200.1 to access the destionation network -10.10.10.0/24?

     

    Thanks



  • 2.  RE: routing values :preference and metric
    Best Answer

    Posted 01-26-2017 19:09

    Hi,

     

    Qualified next-hops are used, when you want to configure mulitple possible next-hop addresses for a particular static route and have them treated differently. Qualified next hops allow you to associate one or more properties with a particular next-hop address. You can set an overall preference for a particular static route and then specify a different preference for the qualified next hop.

     

    In your example, for the nexthop 192.168.100.1, it is using default preference and metric of 10. However for the qualified-next-hop 192.168.200.1, the preference is set to 6. So when it comes to next-hop selection for this static route 10.10.10.0/24, it will check first the preference value and if it is same, metric will decide which nexthop will be selected.

     

    For more details, you can refer to following links:

    https://www.juniper.net/documentation/en_US/junos15.1/topics/concept/routing-protocol-static-security-route-preference-and-qualified-next-hop-understanding.html

     

    https://www.juniper.net/documentation/en_US/junos15.1/topics/example/routing-protocol-static-security-route-selection-controlling-cli.html

     

    Hope this helps,

     

    Thanks

     

    ----------------------------------------------------------------------------------------------------
    If this post was helpful, please mark this post as an "Accepted Solution".
    Kudos are always appreciated!
    ----------------------------------------------------------------------------------------------------



  • 3.  RE: routing values :preference and metric

    Posted 01-26-2017 21:46