BGP Prefix-List Generator

Automatically aggregate and compress a list of IP prefixes into a mathematically equivalent set of BGP prefix-lists. Uses lossless ge/le boundaries to reduce configuration size without accidentally permitting unauthorized subnets.

Paste the exact IPv4 subnets (e.g., 10.0.0.0/24) you want to permit.

📜

Paste your IPv4 CIDR blocks above and click Generate Prefix-List
to calculate the optimal configuration.

How to use BGP Prefix-List Generator

Convert approved networks into vendor-specific prefix-list statements while preserving exact route-policy intent.

Worked example

Four complete adjacent /24 networks can be represented by one lossless /22 statement when policy permits.

Common mistake

Permissive le/ge bounds may authorize more-specific routes that were not present in the source list.