top of page

Difference between Access list and prefix list

Updated: Jan 22

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 I

28.119.16.0 0.o.l.o)


should it not filter out the 123 route and keep 124 route

TAgs

Categorys

bottom of page