Skip to content
Fresh IPv4 news just dropped — 🎉 see what you’re missing

How to Announce an IPv4 Prefix with BGP

To announce an IPv4 prefix, agree its origin ASN with your upstream, prepare the required authorizations, configure origination and export policy, then verify the route outside your network. Registry registration, permission to announce, BGP visibility and working traffic are separate checks.

Before the change

Have control of the prefix or the holder’s permission, a working transit or hosting arrangement, router access, a reachable test host and an agreed rollback. Record the current route and authorization state before changing it.

This runbook assumes you already have a BGP-capable connection. If you only have a VPS or broadband connection, first choose between your own origin, provider origination and a supported routed-delivery service using the ASN and delivery decision table. Confirm routing responsibilities separately when discussing IPv4 leasing.

Examples use documentation prefix 192.0.2.0/24, origin AS64496 and peers 198.51.100.1 and 198.51.100.2. Replace them with your authorized resources; these examples must not be announced to the public internet.

Agree the prefix and origin with each upstream

Send each provider a change request containing the exact prefix, origin ASN, intended activation window and technical contact. Ask which routing registries it trusts, whether it needs an AS set, and when it refreshes customer filters.

An origin ASN identifies the network introducing the prefix into BGP. An upstream can carry that announcement without becoming its origin:

ConnectionExample path seen beyond the providerOrigin
Via upstream A64497 6449664496
Via upstream B64498 6449664496

Adding B changes the path; the origin remains yours. If a provider will originate the block itself, agree that different origin explicitly. In these ordinary AS sequences, the rightmost ASN is the origin.

Many networks filter IPv4 prefixes longer than /24. A provider’s acceptance is not proof of worldwide propagation. Confirm the required prefix lengths and external reach before committing to the design.

Align the authorization records

Prepare three independent items where required:

ItemWhat to agree or verify
Letter of authorizationHolder authority, prefix, origin and provider scope accepted by the recipient
IRR route objectExact prefix and origin in a database the upstream actually uses
RPKI ROAA valid authorization matching the planned prefix, length and origin

For leased space, coordinate changes with the holder or its authorized administrator. Confirm the records and provider filters before the BGP change. A portal request marked complete is not evidence that a remote router has refreshed its data.

Prepare routing and explicit export policy

On the router, configure origination for the intended prefix and the IPv4 unicast address family. Ensure the aggregate has an appropriate routing-table entry and that more-specific forwarding reaches the services using it. An aggregate discard route alone does not deliver traffic to hosts.

In FRRouting’s network configuration, origination can depend on the prefix existing in the routing table. Check your version and configuration rather than disabling that check to hide a missing route.

Use an export allowlist for your intended prefixes and lengths, with rejection for everything else. With two transit providers, do not export routes learned from one to the other unintentionally. The BGP operational security guidance covers prefix filtering and related controls. Set import policy, route limits and next-hop handling for your actual service.

Announce and verify each upstream

Apply the agreed change to one connection first. In FRR’s vtysh shell, these read-only commands separate the checkpoints:

show bgp ipv4 unicast summary
show ip route 192.0.2.0/24
show bgp ipv4 unicast 192.0.2.0/24
show bgp ipv4 unicast neighbors 198.51.100.1 advertised-routes

Confirm an established session, the expected local route and origin, and export of the exact prefix. Ask the provider to confirm acceptance and onward export; your advertised-route view cannot prove either. Repeat for the second peer after the first connection passes its checks.

Use the following as an interpretation example, not captured router output. Field names and formatting vary by FRR version:

ObservationExpected finding in this exampleWhat it still does not prove
Local routeExact 192.0.2.0/24 present with usable forwarding toward the serviceAcceptance by a provider
Locally originated BGP pathA local path can be empty; an i code describes the ORIGIN attribute, not ASN 64496The origin visible after export
Export to AExact prefix permitted in A’s advertised-route viewA’s import policy accepts it
External ordinary path via A64497 64496The path through B works
External ordinary path via B64498 64496Every remote network sees this path

Test the loss of one upstream

With an agreed maintenance window and rollback, withdraw the test announcement from one upstream at a time. Verify that the other connection still accepts and exports the intended prefix, relevant external networks can reach the test service, and replies have a working return path. Restore the connection and check recovery before testing the other one.

Record measured interruption and observation points. Do not promise instantaneous failover or assume that two established sessions mean two independent working paths. Stateful firewalls, source-address validation and asymmetric return routing can affect traffic even when the prefix remains visible.

Test external visibility and service traffic

Use more than one external looking glass or route collector. Record the observed prefix, origin, validation state, observation point and time. Collectors sample the internet; no single view proves universal reach.

Test a permitted service connection from relevant external networks and verify the return path. If the route is visible but traffic fails, inspect forwarding, firewall rules, MTU and host configuration before changing authorizations.

When a check fails

FindingNext action
Prefix absent from your BGP tableCheck origination, routing-table requirements and address family
Present locally, absent from advertised routesInspect the neighbor’s export policy
Advertised, rejected upstreamObtain the rejection reason; compare IRR source, ROA, origin and prefix length
Accepted upstream, missing at some destinationsCompare independent paths and downstream policies
Visible route, failed service trafficCheck forwarding and return traffic with the upstream and host operator

A prefix fails from one country or one website

Compare the same destination and service from a failing network and a working control network. A country is not a single routing viewpoint; record the source ASN and time instead of attributing every failure there to a country-wide block.

Diagnose a prefix that fails from one networkConcept evidence map. Compare the same target, protocol, port and time from working and failing source networks. Different route, origin or RPKI views call for upstream investigation. A failed connection calls for forwarding, return-path and MTU checks. An explicit application denial calls for service-policy, authentication or classification checks. Clues can overlap and none is a conclusive diagnosis. Combine timestamps, source ASN and results in an escalation rather than assuming the prefix must be replaced.REACHABILITY / FOLLOW THE EVIDENCEIPV4.ONLINECompare two networksRoute differsTransport failsApp deniesEscalate with evidenceCompare two networksSame target / port / timeRoute differsPrefix / origin / RPKIAsk the upstreamTransport failsForwarding / return / MTUCheck edge and hostApp deniesPolicy / auth / labelsAsk the service operatorEscalate with evidenceTime / source ASN / resultConcept: clues can overlap; one collector view does not prove every path.
Diagnose a prefix that fails from one networkConcept evidence map. Compare the same target, protocol, port and time from working and failing source networks. Different route, origin or RPKI views call for upstream investigation. A failed connection calls for forwarding, return-path and MTU checks. An explicit application denial calls for service-policy, authentication or classification checks. Clues can overlap and none is a conclusive diagnosis. Combine timestamps, source ASN and results in an escalation rather than assuming the prefix must be replaced.REACHABILITY / FOLLOW THE EVIDENCEIPV4.ONLINECompare two networksRoute differsTransport failsApp deniesEscalate with evidenceCompare two networksSame target / port / timeRoute differsPrefix / origin / RPKIAsk the upstreamTransport failsForwarding / return / MTUCheck edge and hostApp deniesPolicy / auth / labelsAsk the service operatorEscalate with evidenceTime / source ASN / resultConcept: clues can overlap.

Compare route observations, connection evidence and the application’s response separately. The branches are overlapping clues, not automatic diagnoses. Combine the findings in an escalation to the responsible operator; a website denial or database label alone does not establish that the prefix needs replacement.

View full diagram
EvidenceWhat it helps distinguishNext check
Prefix, origin and RPKI state differ between viewsAnnouncement, authorization or route-policy issueAsk the upstream which exact route it accepts and exports
Route is present, but the TCP connection does not completeForwarding, ACL, return path or remote filteringCompare captures or counters at the service and edge; inspect source-address checks
Small probes work, but larger transfers stallPossible MTU or path-MTU discovery problemTest the actual packet sizes and tunnel overhead; a successful ping alone is insufficient
Connection reaches the application and receives an explicit denialDestination policy, authentication, rate limit or address classificationSave the response and ask the destination operator about its policy
GeoIP label differs from the deployment locationA database classification discrepancyCheck the relevant database separately from routing; a country label does not prove reachability
A named blocklist reports a listingThat source’s particular listing criteriaRecord list name, covered range and result; absence from one list does not prove acceptance elsewhere

These findings are clues, not exclusive diagnoses. An application denial can come from an intermediary, and a visible collector route can differ from the failing network’s route. Investigate layers independently before replacing the block or changing its authorizations.

Evidence to send with an escalation

Include the exact destination IP/prefix and origin, source ASN or test network, timestamp with timezone, protocol/port, expected behavior and observed result. Add relevant route/RPKI observations, the upstream ticket and IRR source, a working comparison, and sanitized service responses or packet evidence where available. Traceroute can add context, but silent hops alone do not establish where traffic was blocked.

Send route acceptance and propagation questions to the upstream; holder-controlled authorization changes to the holder or delegated administrator; explicit application rejections to the destination operator. A marketplace status or authorization update is not proof that a hosting or transit service has completed its work.

Acceptance and rollback

Complete the change only after the intended prefix and origin pass the provider’s acceptance checks, external observations agree with the plan, and required service traffic works in both directions. For two-upstream service, include the controlled failover and recovery results. Store the evidence and owners in the change record; avoid a universal propagation-time target.

For an origin change, stage authorization for the new origin before cutover and retain the old authorization only for the agreed transition and rollback period. Withdraw unintended announcements if necessary; remove obsolete records after confirming the intended state. Keep the provider tickets and observations with the change record.

Frequently asked questions

Can I announce a leased IPv4 block from my ASN?
When the holder permits it and the upstream accepts the arrangement, yes. Agree the origin ASN, obtain the required authorizations and confirm the upstream’s filters. Leasing addresses alone does not supply transit or a BGP session.
Does adding a second upstream require another ROA?
Not solely because another transit provider is added. If the prefix and originating ASN stay the same, the existing matching authorization can cover both paths. Another origin ASN requires its own matching authorization.
Can I announce a prefix longer than /24?
Some private or provider-specific arrangements accept longer IPv4 prefixes, but many public internet networks filter them. Confirm the upstream’s policy and the reach you need; a valid ROA does not override prefix-length filters.
Does an established BGP session prove the block is reachable?
No. Check that the route is originated, exported, accepted and propagated, then test forwarding and the return path. A session can be established while prefix filters reject the route.
Why does my prefix work from one network but fail from another?
Compare the exact source network, destination, protocol and time. Possible causes include different route or RPKI views, filtering, return routing, MTU, address classification and destination policy. Use a working comparison and collect route and traffic evidence before replacing the prefix or changing authorizations.
Last updated on