Infrastructure

A packet matches a PBR permit entry using set ip default next-hop, but its destination also matches an OSPF /24 route. The policy next hop is reachable; which forwarding choice takes precedence?

Show the answer

Correct answerB. The next hop in the OSPF /24 route

AWhy not this: PBR does not combine its default next hop with an OSPF next hop for equal-cost sharing.

BWhy this is right: An explicit destination route takes precedence over a PBR default-next-hop action.

CWhy not this: The matching /24 route takes precedence over the default route.

DWhy not this: A default-next-hop action does not override an explicit destination route.

The default-next-hop action applies when normal routing has no explicit route to the destination. The OSPF /24 is an explicit route, so it takes precedence; an ordinary PBR next-hop action would behave differently.