01-06-2021 05:02 AM
Hello
I have a situation in PBR, where there are two "set" statements in route-map as below,
route-map ABCD permit 10
match ip address ACCESS_LIST1
set ip next-hop verify-availability 10.10.10.10 1 track 1
set interface Null0
I understand that first set statement will set the next hop as 10.10.10.10 , if the track is up. But I am not sure about the second set statement as it drops the packet (that's what i understood from null0)
Really appreciate the help
Thanks
01-06-2021 05:09 AM - edited 01-06-2021 05:10 AM
set interface Null0 - the default interface is the Null0 interface. Setting this will force the router to discard the packets rather than use the router general default gateway.(if anything setup)
If the packets you want to drop do not match either of the route-map clauses, then change set default interface null0 to set interface null0.
01-20-2021 12:00 AM
Thank you soo much for your response.
Sorry, I am little confused, can you clarify "If the packets you want to drop do not match either of the route-map clauses, then change set default interface null0 to set interface null0"
01-20-2021 12:38 AM
i mean - example IPv4 PBR to send all traffic to the null interface, thus dropping the traffic instead of forwarding it.
01-06-2021 05:09 AM
Hello
My understanding is the same,
PBR will attempt next hop first and if that isnt avaiible then interface will then be attempted.
01-20-2021 12:01 AM
Thank you for your response. Really helpful
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