04-22-2021 10:39 AM
I currently have a route-map in that goes through an access list and if you match the ACL the next-hop is something different then the gateway of last resort. If I want something to go the default route, I just deny the ip on the ACL. Now there will be a third option. So it goes through the ACL drops and instead of going to the default gateway I might want it to go another way, then go to the default if it doesn't match. Unfortantely it looks like I can't have to match statements under a route-map. What would be the best way?
traffic comes in -----gets looked at for IP address and either takes route1, route 2 or drops out
This is really what I am trying to accomplish.
Thanks
04-22-2021 12:28 PM
I am not sure that I fully understand what you are describing. But I believe that the answer for what you want to accomplish is to have multiple statements in the route map. It might look something like this
route-map PBR permit 10
match ip address ACL1
set ip next-hop a.b.c.d
route-map PBR permit 20
match ip address ACL2
set ip next-hop w.x.y.z
You would have to work out the logic of ACL1 and ACL2 so that they permit the right traffic to go to each alternate path.
04-23-2021 02:46 AM - edited 04-23-2021 02:59 AM
Hello Tracy,
what Richard suggests is the right way to go :
you need to configure multiple route-map clauses with different sequence numbers to perform different actions on different traffic flows.
Because Cisco PBR defaults to standard destination based routing to silently drop you can use
set interface null0
This means set outgoing interface = null0 = drop it
use the command with caution as the null0 is a waste bin that allows silent drops of what is sent to it.
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide