03-02-2023 06:11 AM
Hello,
I have a question regarding BGP advertisement, I have a /24 network for instance 192.168.0.0/24 that i want to advertise through BGP but i want to skip a /32 or /30 ip from this range from advertisement for example i want to advertise 192.168.0/24 but not 192.168.50.0/30.... is there a way i can do that... Please assist. Thanks
03-02-2023 06:21 AM
you can directly use the network statement to use /24 that BGP accepts. ( issue if you like to advertise /32 and /30 length)
also, your example not matches the IP range ?
want to advertise 192.168.0/24 but not 192.168.50.0/30. (192.168.50.0/30 is not part of /24 range)
or are you looking for any /32 /30 connect not to announce to peer ?
03-02-2023 06:29 AM
Thanks for responding and sorry my bad i shared incorrect ip address... so let me put the question again.... i want to advertise 198.168.0.0/24 but i want to skip 192.168.0.50/32 from advertisement.... is there a way i can do that ?
03-02-2023 06:41 AM
what is the use case here - do you have any connected interface /30 or /32?
you can filter the list If you like:
https://networklessons.com/bgp/bgp-extended-access-list-filtering
03-02-2023 06:30 AM
sorry there is no way as I know
config static route to null for this /32 make traffic drop.
the only way I see is divide /24 into /25 and make the host with /32 in specific part and not advertise it and advertise other parts
but still here issue is that the SP can not accept less than /24.
03-02-2023 06:36 AM
Thank you sir for responding....
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