A network engineer is configuring Policy-Based Routing (PBR) on a Cisco IOS XE router. The engineer wants to forward traffic matching a specific ACL to a next-hop IP address, but only if the next-hop is reachable. Which command should be used in the route map to specify the next-hop and enable tracking?
The set ip next-hop verify-availability command allows PBR to verify the reachability of the next-hop using a tracking object. The syntax includes the next-hop IP, a sequence number, and the track keyword followed by the tracking object number. If the tracked object is up, the next-hop is used; if down, the route map is not applied, and normal routing takes over. This meets the requirement of forwarding only if the next-hop is reachable.
Why this answer
To conditionally forward traffic based on next-hop reachability in PBR, the set ip next-hop verify-availability command is used. It references a tracking object that monitors the next-hop. If the track is up, the next-hop is used; if down, the route map is skipped, and normal routing applies.
This provides the required conditional forwarding.
Exam trap
The trap here is assuming that set ip next-hop alone will verify reachability; it does not, and requires the verify-availability keyword with a track object.