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

Route maps permit but have a deny in the acl statement

Zxanthar98
Level 1
Level 1

Hello, I hope everyone is doing well in quarantine. I had a super annoying question about route maps and how they worked with ACL's. I get the whole idea behind them I think, but one thing I was really curious about was, if there is a route map seq that says deny but the ACL it is referencing permits the prefix, what happens to the traffic? Thank you!! 

3 Replies 3

Hello


@Zxanthar98 wrote:

Hello, I hope everyone is doing well in quarantine. I had a super annoying question about route maps and how they worked with ACL's. I get the whole idea behind them I think, but one thing I was really curious about was, if there is a route map seq that says deny but the ACL it is referencing permits the prefix, what happens to the traffic? Thank you!! 


This would depend on the whole route-map the route-map logic would deny the ace entry being used in the route-map and proceed to the next stanza if there is one if not the default implicit deny would be used 

 

 


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

That makes total sense. After I read the section on route maps in general, it went into more depth and talked about optional actions such as modifying the next hop, or which interface the matched prefix should go to, so I figured it wouldnt make much sense to put in a Permit route map, then put a deny in your ACL haha Thanks so much!!!

Hi,

 

     When using route-maps, the decision should be done at the route-map level (deny/permit) and ACL's should contain only permit statements. The logic of the "deny" at the route-map level and the "deny" at the condition matching level is different.

     If when you you parse the route-map top-down, you match on a "permit" statement of the ACL used in route-map sequence number 100, you stop route-map processing (unless the continue action is used), and with the matched traffic you take the deny/permit action from the route-map level for sequence number 100. If the route-map was used for route-filtering, you permit the route or deny/filter the route, if the route-map was used for NAT/PBR, you permit or deny NAT/PBR to happen.

    If hen you parse the route-map top-down, you match on a explicit "deny" statement of the ACL used in route-map sequence-number 150, you exit the current current route-map sequence number and inspect the next route-map sequence number, and the next one and so on till you match on a "permit" action of the ACL used in that sequence-number, at which point you do the same as in previous example, you take the permit/deny action of the route-map.

 

I'm not saying that you shouldn't use "deny" statements in your match conditions. I'm saying that you can meet the same desired outcome by using just "permit" statements in your ACL/prefix-list in most cases, which makes things simpler, as the logic is simple, not mixed.

 

Regards,

Cristian Matei.

 

Regards,

Cristian Matei.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card