07-04-2008 06:55 AM - edited 03-03-2019 10:35 PM
Hi,
Just a quick question about policy-based routing. For example, packets
that came from 10.0.0.0/8 going to 20.0.0.0/8 should be routed to
next-hop 1.0.0.1. I used the command set ip default next-hop 1.0.0.1. If
the routing table has an entry for 20.0.0.0/8 (for example an OSPF/EIGRP
entry) network then the policy routing shouldn't work right? The route
entry for 20.0.0.0/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 20.0.0.0/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.
John
Solved! Go to Solution.
07-05-2008 11:36 AM
Yes..the policy route will be used if the route in question is no longer in route table , even if the default path is available.
07-04-2008 08:21 AM
With set ip default next-hop ,if the 20.0.0.0/8 entry is found in route table, it will not use policy routed configuration but will use the path in the routing table.
If u need to override the route table entry, u will have to use set ip next-hop.
Pls rate/mark if this helps!!!
07-04-2008 08:57 AM
Yes that's what I understand. What about the default-route? If the 20.0.0.0/8 was gone in the routing table but the routing-table has a default-route, will it still be policy routed or will it follow the default-route?
07-05-2008 11:36 AM
Yes..the policy route will be used if the route in question is no longer in route table , even if the default path is available.
07-04-2008 05:17 PM
Please correct me if I'm wrong.
You are correct
__
Edison.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: