Question about route-map logic


The sample as below

match ip add ACCESS-LIST

set ip next-hop verify-availability track 1

set ip next-hop

track 1 just monitor icmp-echo sla

The testing result shows if the routing to is up the second "set" won't override the first "set". However if the rouitng to down, the second "set" will take place.

So, what's the relationship between the first "set" and the second "set"? AND or OR?



  • areu sure that statement is working? can duouble check route map

  • i'm sure, because i followed ine rsv5 workbook and the difference is INE uses ip next-hop default and i just use ip next-hop

  • there is difference betwen having default and not having default

    with default = RIB first but do not use default route, then PBR if RIB fails

    without default =PBR first then RIB

    AND does not make sense with multiple set statements; I think when tracking object is up, 2nd set does not matter.  if tracking object is down, then 2nd set is used;


  • Yes, that's why i'm confused. Below is the answer from the workbook. Initially I thought the 2nd "set" will override the 1st "set" because they are trying to "set" the same attribute, but it seems not working that way.

    route-map POLICY_ROUTING permit 10
     match ip address FROM_R4
     set ip next-hop verify-availability 1 track 1
     set ip default next-hop
  • Basically this feature reads a little different that your bog standard route-map logic:


    route-map POLICY_ROUTING permit 10
     match ip address FROM_R4
     set ip next-hop verify-availability 1 track 1  <- RIB lookup.
     set ip default next-hop <- Non RIB lookup, interrupt driven

    Reads if there is not a match on the prefix list then route as normal, i.e. exit the route-map

    if there is a match in the prefix list look in the RIB for and route that way, if the SLA is up.
        do not look further in the RIB for a less match but 'force' the route towards

  • I think this is related to pbr. Check this article for order of operation regarding route-maps used by pbr. 


  • and you misssed 1 in set ip next-hop verify-availability track 1

    between 2 and track, my routers says u need an entry

    set ip next-hop verify-availability  x  track 1

Sign In or Register to comment.