[rank_math_breadcrumb]

Difference between Access list and prefix list

Posted by

access list vs prefix list

i  came across a sentence in bgp that in bgp access list are used for traffic filtering and prefix list is used for route filtering . Is this statement correct? If we refer to below two commands:

access-list 10 deny 10.1.0.0 0.0.255.255

ip prefix-list prefiz deny 10.1.0.0/16

these two commands are doing the same things so why use prefix list for route filtering we can use access list for  filtering

Also there is one more statement that  if we have same prefix but different subnet mask access list falls apart and we need to use prefix list

eg:we have two routes coming from same neighbor

28.119.16.0/24 and 28.119.16.0/23

 in this case it is recommended to use prefix list but if i use access list (access-list 1 28.119.16.0 0.0.1.0)

 should it not filter out the /23 route and keep /24 route

[the-post-grid id=”9538″ title=””]

Visit Our Store and Buy All document (F5, Zscaler, ASA, Paloalto, Checkpoint,Forescout, Cisco ISE etc) only in  1600RS, click here on store - Store

X
error: Content is protected !!