Just a quick question about policy-based routing. For example, packets
that came from 10.0.0.0/8 going to 18.104.22.168/8 should be routed to
next-hop 22.214.171.124. I used the command set ip default next-hop 126.96.36.199. If
the routing table has an entry for 188.8.131.52/8 (for example an OSPF/EIGRP
entry) network then the policy routing shouldn't work right? The route
entry for 184.108.40.206/8 should be removed from the routing table in order
for PBR to work. That's my understanding between set ip default next-hop
and set ip next-hop. Where set ip next-hop command routes the packet to
the next hop router ignoring the route entry in the routing table. Am I
understanding it correctly?
For the set ip default next-hop, what if 220.127.116.11/8 was gone in the
routing table but there was a default-route, the policy-routing should
still work right? Default-route entry is being ignored in this case.
Please correct me if I'm wrong. Thanks.