cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2267
Views
0
Helpful
3
Replies

Policy Based Routing and Next Hop IPs

Chris Pohlad-Thomas
Cisco Employee
Cisco Employee

I notice when working on my PBRs that it will let you set multiple next-hop IPs. Are these for redundancy I assume? For example, if I have it setup like this:

set ip next-hop 4.2.2.1 4.2.2.2

will it try the 4.2.2.1 and if the interface that is connected to doesn't work it will try 4.2.2.2?      

1 Accepted Solution

Accepted Solutions

mfurnival
Level 4
Level 4

Hi Chris,

"If the interface associated with the first next hop specified with the set ip next-hop command is down, the optionally specified IP addresses are tried in turn"

From this document:

http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfindp2.html#wp1020776

View solution in original post

3 Replies 3

mfurnival
Level 4
Level 4

Hi Chris,

"If the interface associated with the first next hop specified with the set ip next-hop command is down, the optionally specified IP addresses are tried in turn"

From this document:

http://www.cisco.com/en/US/docs/ios/12_2/iproute/command/reference/1rfindp2.html#wp1020776

Thanks for the info! I might also think about using an SLA type configuration like in this document:

http://www.cisco.com/en/US/tech/tk364/technologies_configuration_example09186a0080211f5c.shtml

Hello chris,

FYI - for resiliency with PBR, if the next hop  interfaces are unreachable the policy will still try to forward  traffic based on the match statements and start arping for the next hop  address.

Applying the set ip next-hp verify-availability command  into the polciy will make the router do a cdp lookup for the next-hop address  before policy routing and if its not found the router will route normal instead

.

res

Paul

Please don't forget to rate any posts that have been helpful.

Thanks.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul