Skip to content
/
Suscribirse Subscribe

Detrás del telón hay sistemas, no magia. Arquitectura de software, IA y computación de bajo nivel para las trincheras de producción.

Behind the curtain there are systems, not magic. Software architecture, AI, and systems engineering from the production trenches.

NETWORKING & BGP UTILITY #TOOL-CAT-TECH

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.

COMMON BGP POLICY PRESETS:

BGP Prefix Filter Configuration Engine

IPv4 network address (e.g. 10.0.0.0, 0.0.0.0, 192.168.0.0)
/8
Root CIDR prefix mask
Exact match or ge / le range
/24
Maximum matched subnet length
Multi-vendor CLI generator
Generated Configuration Command (Cisco IOS)

    
PREFIX & MASK
10.0.0.0/8
255.0.0.0
MATCHED LENGTHS
/8 → /24
le 24
MAX SUBREDES
65.536
Finest granularity count
ROUTE LEAK RISK
BAJO
RFC 1918 Seguro
🛡️

WELL-SCOPED PREFIX POLICY

The prefix range and subnet lengths are strictly bounded. Prevents route leaks and de-aggregation loops.

Covered IP Address Space: 10.0.0.0 → 10.255.255.255

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, '/' dictates ONLY the base network boundary that must match the most significant bits. The 'ge' (greater-than-or-equal) and 'le' (less-than-or-equal) modifiers apply strictly to the advertised CIDR subnet mask length.

Syntax Validation Rule: len ≤ ge ≤ le ≤ 32

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 term from route-filter / ', using modifiers like 'exact', 'upto /', or 'prefix-length-range /-/'.

Network Engineering & BGP Standards Disclaimer: This tool models prefix filtering per RFC 4271 (BGP-4) and official CLI syntax for Cisco, Juniper, Arista, and FRRouting. Always validate prefix policies in a lab (Containerlab, GNS3, EVE-NG) before applying changes to production eBGP peerings.
Suscribirse Subscribe