cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2973
Views
5
Helpful
4
Replies

PBR: set ip default next-hop

jpl861
Level 4
Level 4

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

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

4 Replies 4

foxbatreco
Level 3
Level 3

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

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?

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
Hall of Fame
Hall of Fame

Please correct me if I'm wrong.

You are correct

__

Edison.

Getting Started

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: