Please consider the following example:
H1-10.10.10.1 -10.10.10.2 R1-f0-22.214.171.124-----126.96.36.199 fo R2--188.8.131.52--184.108.40.206
set routing-option static route 220.127.116.11/32 next-hop 18.104.22.168
We want to acheive following goal:
R1 must retain the static route 22.214.171.124/32 in routing table even if next hop or interface f0 on R1 is down.
I am looking at " retain" option below, but not sure if it will do the trick as it says it is applicable if Routing process on R1 shuts down. Am i reading it correctly?
Thanks and have a nice weekend!!
[edit routing-options static (defaults | route)]
(defaults | route)
Configure statically configured routes to be deleted from or retained in the forwarding table when the routing protocol process shuts down normally.
The option you are looking for is passive. This will change the route to reject keeping it in the table when the interface is down.