Perhaps you can manually set the preference on the desired tracked route to be the preferred one.
https://www.juniper.net/documentation/us/en/software/junos/static-routing/topics/topic-map/static-route-prefer-qualified-next-hop.html
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home------------------------------
Original Message:
Sent: 09-25-2024 13:04
From: GARY RUBEL
Subject: RPM Tracking of static routes
Hello,
We are setting up rpm tracking of a static route and it looks like we use the ability to put a community on the static route. If we add the static route normally with a community then it takes preferrence over the tracked route. Is there any work around? We are on Junos 21.2R3.
Current config :
rpm-tracking { route 10.1.1.0/24 { next-hop 172.17.1.2 { rpm-probe probe1 rpm-test ping_gw; }
Only work around we have to the create the static route pointing to a /32 that is tracked.
routing-options static
10.1.1.0/24
qualified-next-hop 172.17.1.2
resolve
community [ 65500:1 ]
rpm-tracking { route 172.17.1.2/32 { next-hop 172.17.1.2 { rpm-probe probe1 rpm-test ping_gw; }
------------------------------
GARY RUBEL
------------------------------