Need help with PBR with multiple next hop

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2013
11:53 AM
- last edited on
03-25-2019
03:40 PM
by
ciscomoderator
I am trying to figure out how I can configure PBR with multiple next hop coming from the same source. Router B is preferred.
Router A:
Source: 10.100.0.0/24
Next Hop
Router B: 172.1.1.1/24
Router C: 172.1.1.2/24
- Labels:
-
Other Routing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2013 03:06 PM
Joe,
!
ip cef
!
access-list 99 permit 10.100.0.0 0.0.0.255
!
route-map TEST99
set ip next-hop 172.1.1.1
set ip next-hop recursive 172.1.1.2
set interface null0
match ip address 99
!
This will try the next hop 172.1.1.1 and will
route to that address until it is unavailable then
the recursive next hop is used. If both fail then packets
are dropped by the set interface null0 command. If you do not include
the set interface null0 then packets will be sent to the default route if
available.
For more info see:-
http://www.cisco.com/en/US/docs/ios/12_0s/feature/guide/12s_pbr.pdf
Regards,
Alex.
Please rate useful posts.Joe,
