cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
480
Views
1
Helpful
5
Replies

BGP Advertisement Question

Junaid Shah
Level 1
Level 1

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 

 

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

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 ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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 ?

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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. 

Thank you sir for responding....

Review Cisco Networking for a $25 gift card