BGP Extended Access-List Filtering

Hello Elias

My apologies, I found it. This is the issue:


That should read “The prefix length has to be exactly /24 so we use subnet mask with…”

Thanks for that, I’ll let Rene know.


1 Like

Hi Elias, Thanks for letting us know. I just fixed this.


1 Like

i advertised this network but
i didnt see them
it can be that you didnt use mask for them

Hello Bahri

In order for BGP to advertise a route, that route must exist in the routing table of the device. The route must match exactly, that is both the network address and the subnet mask. If there is no subnet mask in the routes that you advertised, as you mention above, then the classfull mask will be used. In this case it would be So if the and networks are in the routing table, then they will be advertised.

If you are following the configs in the lesson, then these should indeed be advertised as the subnet mask is in fact, the classful mask,.

I hope this has been helpful!


I have a question about “Filter anything with a /26 to /32 prefix length”.
Here is the access list:
R1(config)#access-list 106 permit ip
In your explanation, you are saying
“We want to match all prefixes from /26 to /32, by using this wildcard we tell the router that the last four bits have to match, we don’t care about the first four bits.”

If the wildcard mask for prefixes is, why is it responsible for 4 bits? Doesn’t it cover last 6 bits? Please explain.

Thanks in advance.

Hi Dmitriy,

You are correct, this is a type. A wildcard of means the last six bits match and we ignore the first two bits.

Thanks! Just fixed this.


1 Like

Thank you for replying! And thank you for these materials, they are awesome.

1 Like