cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5233
Views
25
Helpful
17
Replies

Remove Subnet from BGP Advertisement with IP Prefix-List

xc3ss1v30n3_New
Level 1
Level 1

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

17 Replies 17

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.


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?

For we need  to have different connected subnet , yes that right we need different connect subnet.