Posted on June 9, 2017 5:54 am
 |  Asked by Mayra Mendoza
Print Friendly, PDF & Email

Hi, we tried to configure a route-map to set a next-hop for the trafic coming from the ip segment, the next-hop must be and we tried to set a backup next-hop within the the same route-map, this is set to be, but when de link with fails the backup next-hop   doesn’t work and the destination is unreachable.

All the devices are running BGP

This is our route-map:

route-map RP_NAT_CMTS permit 10

   match ip address access-list NAT_CMTS

   set ip next-hop



route-map RP_NAT_CMTS permit 15

   match ip address access-list NAT_CMTS

   set ip next-hop 




We also tried to do two different route-maps, and apply the route-map to the BGP neighbor with the same result.


Is there a way to make this work?



Posted by Alexis Dacquay
Answered on August 17, 2020 12:25 pm


This route-map cannot work the way you described.

Your sequence 10's match is identical to sequence 15's.
The sequences are looked up and matched upon in a sequential order (Standard behaviour), so the sequence 10 will ALWAYS be matched first. Sequence 15 will never EVER be inspected and never match any traffic.

You can try this:

Otherwise, consider PBR (policy-based routing), BGP conditional route-injection, or next-hop groups?


Post your Answer

You must be logged in to post an answer.