Modify R1s policy routing so if R1 loses R5 as a CDP neighbor, traffic from R3 to R4s Loopback0 is re routed directly to R4
I had a question in regards to the above task. The IP below 155.1.0.5 belongs to R5. If I shut that interface on R5, R1 loses R5 as a cdp neighbor and that next hop gets removed as expected. However, how do I then tell it to route to R4 after that route gets removed? I tried adding it as another next-hop IP but does not work. If I add another route-map seq, I don't think that seq gets touched since a match was found on seq 10.
route-map policy permit 10
match ip address from_R3
set ip next-hop 155.1.0.5
set ip next-hop verify-availability
I know I can use IP SLA as another verification of the next hop reachability but the question specifically refers to the status as a cdp neighbor which I'm thinking refers to the verify-availability command. So I have a couple of questions. Did I interpret the task correctly to use the verify-availability cmd or is the task referring to using something else like IP sla to verify reachability which if the link was down would also indirectly refer that the cdp neighbor status would be lost also?
My other question is if I use the config above, how do I then set the next hop after the cdp reachability is down?