I received public BGP AS with network with 24 bit mask.

Is it possible, to advertise on BGP router VLSM networks summarized to 24-bit mask (not for class membership)?

Example: I receive network with BGP AS (random network for example). I would like to divide this in my network to smaller subnets (for example with 28 bit mask), but my BGP peer doesn't accept advertised networks with higher subnet mask than 24 bit. As we know auto-summary summarize the advertised networks based on prefix for network class and in this example when we will use a auto-summary it redistribute a network with 8 bit mask, so the result is and it is wrong. How can I do it properly?

1 Answer 1


Yes, you can do this. Use the BGP aggregate-address command. It sounds like you want to use the summary-only option:

aggregate-address summary-only

As long as even one of the networks comprising the summary are in the routing table, it will advertise the aggregate.

Cisco has documents that explain this. For example, Understanding Route Aggregation in BGP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.