cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
283
Views
0
Helpful
4
Replies

Route mask with /16 or /24 under bgp route-policy in ASR router

wfqk
Level 5
Level 5

Hi As we know, bgp route-policy controls if routes can be forwarded. Here are example:

If route 10.1.0.0/16 is permitted to pass in route-policy, the route can be forwarded to pass. If route is10.1.0.0/24 under the same route-policy, can it be forwarded to pass? 

It looks like there is difference with ACL for traffic in interface

Thank you

2 Accepted Solutions

Accepted Solutions

Hello,

whatever is matched in the route policy needs to be in the routing table. If 10.1.0.0/16 is in the routing table, it will match (and pass). If only 10.1.0.0/16 is in the routing table, and you try to match 10.1.0.0/24, it will be dropped (due to the implicit drop/deny at the end of any route map).

Is this what you are asking ?

View solution in original post

Hello,

exactly. If you allow e.g. 10.0.0.0/8 to pass, everything 'below' would pass as well, such as 10.1.0.0/16, or 10.1.1.0/24. With BGP route maps, you need exact matches.

View solution in original post

4 Replies 4

Hello,

whatever is matched in the route policy needs to be in the routing table. If 10.1.0.0/16 is in the routing table, it will match (and pass). If only 10.1.0.0/16 is in the routing table, and you try to match 10.1.0.0/24, it will be dropped (due to the implicit drop/deny at the end of any route map).

Is this what you are asking ?

Thank you so much for your reply. Yes you are right. 

It's opposite to ACL in interface, It can permit all traffic under the prefix to pass, right?   

Hello,

exactly. If you allow e.g. 10.0.0.0/8 to pass, everything 'below' would pass as well, such as 10.1.0.0/16, or 10.1.1.0/24. With BGP route maps, you need exact matches.

Thank you!

Review Cisco Networking products for a $25 gift card