BGP Prefix-List & CIDR Route Filter Calculator (Cisco, Juniper, Arista & FRR)
Model and visualize BGP prefix-list filters in real time. Validate CIDR /len masks with ge and le modifiers, audit global route leak risks across the DFZ, and generate exact multi-vendor configs for Cisco IOS-XE, Juniper Junos, Arista EOS, and Linux FRR.
BGP Prefix Filter Configuration Engine
WELL-SCOPED PREFIX POLICY
The prefix range and subnet lengths are strictly bounded. Prevents route leaks and de-aggregation loops.
Anatomy of a BGP Prefix-List: Demystifying the 'ge' and 'le' Modifiers
In inter-domain routing (BGP-4), prefix-lists are the primary defensive mechanism against global routing catastrophes. Unlike standard Access Control Lists (ACLs) which evaluate wildcard bitmasks sequentially in O(N) time, prefix-lists are parsed into Radix/Patricia trees in router memory, delivering deterministic O(1) route lookups across full-table BGP feeds.
1. The Golden Mathematical Rule: len <= ge <= le <= 32
The most frequent pitfall in network engineering is assuming 'ge' and 'le' apply to IP host values. In any prefix-list, '
2. The Deadly '0.0.0.0/0 le 32' Trap: Total BGP Route Leaks
Specifying 'permit 0.0.0.0/0' with no modifiers matches ONLY the default route (exact mask /0). However, appending 'le 32' completely changes evaluation: it matches any route with a subnet mask between /0 and /32. This matches the entire global Internet routing table (over 960,000 DFZ prefixes). Inbound on an edge router with modest RAM, this triggers instant FIB memory exhaustion and control plane failure.
3. The DFZ Filtering Law: Why the Internet Drops Prefixes Deeper than /24
Across the public Internet, Tier-1 transit providers unconditionally reject IPv4 route announcements longer than /24 (and /48 in IPv6). Standard BGP hygiene policies enforce 'ge 24 le 24' or drop all prefixes from /25 to /32 to safeguard global routing stability against deliberate or accidental de-aggregation.
ip prefix-list vs Standard Access-List (ACL): Architectural Comparison
| Feature | ip prefix-list | access-list (ACL) |
|---|---|---|
| Lookup Complexity | O(1) Radix Tree (Indexed) | O(N) Linear Search |
| Subnet Mask Length Filtering | Native & flexible (ge / le) | Requires convoluted wildcard masks |
| Sequence Numbers & In-place Edits | Supported (seq 10, 15, 20) | Requires re-creating entire ACL |
| Router CPU Load during Convergence | Negligible (Engineered for 1M+ routes) | Severe CPU spikes during BGP updates |
BGP Prefix-List Frequently Asked Questions
What is the difference between 'permit 10.0.0.0/8' and 'permit 10.0.0.0/8 le 24'?
The first rule matches ONLY the exact 10.0.0.0 network with mask /8. The second matches 10.0.0.0/8 and any of its child subnets with mask lengths between /8 and /24 (e.g. 10.1.0.0/16, 10.20.30.0/24).
Why does Cisco IOS reject 'permit 10.0.0.0/16 ge 12'?
Because it violates the rule len <= ge. If the root prefix is /16, you cannot specify a 'ge' value smaller than 16, since child subnets cannot have a shorter mask than their parent network.
How do I configure an explicit 'deny all' statement at the end of a prefix-list?
Prefix-lists feature an implicit deny by default. If you need an explicit deny statement for logging or clarity, configure: 'ip prefix-list PL seq 999 deny 0.0.0.0/0 le 32'.
What is the Juniper Junos equivalent of Cisco's 'ip prefix-list'?
In Junos, prefix matching is defined in 'policy-options policy-statement