Header Ads

Recently post

Difference between Access list and prefix list

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

1 comment:

  1. Why is it not filter out /23 even we define wild card of /23 in access list statement?

    ReplyDelete