07-24-2021 08:08 AM
Good morning. I have a physically connected network that we are advertising to a BGP neighbor using the "redistribute connected" command. I would like to remove 2 smaller subnets from that advertisement and I believe I can do this with an IP Prefix-list, but unsure of something. Is there a hidden default deny at the end of a list much like an ACL? If so, I assume I'd need to place a permit 0.0.0.0/0 le 32 after the two statements to deny the networks I don't want advertised? Would this be correct?
ip prefix-list name deny 10.0.0.252/30
ip prefix-list name deny 10.0.0.248/30
ip prefix list name permit 0.0.0.0/0 le 32
If it helps, the full connected network in this case would be 10.0.0.0/23
07-25-2021 04:23 AM
from first review it will work,
now each subnet with redistribute connect will send as BGP Prefix UPDATE, and the route-map will use to match the permit and deny this BGP UPDATE message.
So I think it will work.
07-26-2021 05:41 AM
I'm hazy on if this will work or not because we aren't advertising two subnets. We just have the one connected network of 204.237.244.0/23. It seems like for the above to work, we need to have to different connected subnet. Is that correct?
07-26-2021 07:14 AM
For we need to have different connected subnet , yes that right we need different connect subnet.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide