Posted on June 9, 2017 5:54 am
 |  Asked by Mayra Mendoza
 |  424 views
0
0
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 10.10.10.0, the next-hop must be 192.168.1.1 and we tried to set a backup next-hop within the the same route-map, this is set to be 192.168.2.1, but when de link with 192.168.1.1 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 192.168.1.1

 

!

route-map RP_NAT_CMTS permit 15

   match ip address access-list NAT_CMTS

   set ip next-hop 192.168.2.1 

 

!

 

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?

 

Thanks 

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

Hi,

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:
https://eos.arista.com/ip-static-route-with-health-check/
with https://eos.arista.com/reachability-health-checks/

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

Regards,
Alexis

Post your Answer

You must be logged in to post an answer.