Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

PBR: set ip default next-hop

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
Bronze

Re: PBR: set ip default next-hop

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.

4 REPLIES
Bronze

Re: PBR: set ip default next-hop

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

Re: PBR: set ip default next-hop

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?

Bronze

Re: PBR: set ip default next-hop

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.

Hall of Fame Super Bronze

Re: PBR: set ip default next-hop

Please correct me if I'm wrong.

You are correct

__

Edison.

485
Views
5
Helpful
4
Replies