PBR: set ip default next-hop

Answered Question
Jul 4th, 2008
User Badges:

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

Correct Answer by foxbatreco about 8 years 10 months ago

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.


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
foxbatreco Fri, 07/04/2008 - 08:21
User Badges:
  • Bronze, 100 points or more

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!!!

John Patrick Lopez Fri, 07/04/2008 - 08:57
User Badges:

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?

Correct Answer
foxbatreco Sat, 07/05/2008 - 11:36
User Badges:
  • Bronze, 100 points or more

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.


Edison Ortiz Fri, 07/04/2008 - 17:17
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

Please correct me if I'm wrong.


You are correct


__


Edison.

Actions

This Discussion