cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1540
Views
20
Helpful
5
Replies

How does multiple "set" statements in Route-map for PBR work

geons
Level 1
Level 1

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

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

 

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.

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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"

i mean - example IPv4 PBR to send all traffic to the null interface, thus dropping the traffic instead of forwarding it. 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello

My understanding is the same,

PBR will attempt next hop first and if that isnt avaiible then interface will then be attempted.


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

Thank you for your response. Really helpful 

Review Cisco Networking for a $25 gift card