Troubleshoot a BGP Route Leak
To troubleshoot a suspected BGP route leak, preserve the unexpected path, verify which export relationship it violates and identify the operator controlling that boundary. Contain confirmed unintended exports with a scoped policy correction, then check legitimate routes and service traffic. A changed AS path or a RPKI Valid result alone cannot confirm or exclude a leak.
Establish what the alert actually shows
A route leak propagates a routing announcement beyond its intended scope. This procedure is for an unexpected transit path, a surge in exported routes or a provider’s export-policy complaint. You need route observations, the agreed neighbor relationships and read access to the relevant policy, or an upstream contact who has that access.
| Finding | Diagnostic direction |
|---|---|
| Expected origin, unexpected transit through your network | Check which learned routes your export policy permits |
| A provider reports receiving another provider’s routes from you | Compare the affected prefixes and both session roles |
| Origin changes unexpectedly | Investigate origin authorization and possible misorigination as well as export scope |
| A path changes without a known policy violation | Confirm relationships before calling it a leak |
| You only have a remote collector observation | Request evidence from the operators on the suspected boundary |
The examples use documentation prefixes and ASNs and are illustrative, not captured incident output. They describe ordinary external BGP relationships; verify route-server and specialized transit arrangements separately.
Preserve the unexpected path and scope
Save exact prefixes, complete AS paths, observation points, UTC timestamps and the last working path. Record whether each observation is a current route or a historical update. A single collector can miss alternate paths; an old update does not establish that the route is still active.
Identify affected services and a working source network. Save the recent configuration diff and current export-policy references before making changes. Prefix counts help estimate scope, but a small leak can still affect an important destination.
Stop short of assigning blame when timestamps or paths are missing. Ask the reporting network for its received path and peer so the next step can test a specific boundary.
Confirm the violated export relationship
For each relevant session, record customer, peer or transit provider, whose perspective the label uses, and the agreed export scope. Verify this with configuration and the responsible operator; an inferred public AS relationship is only a clue.
Consider this illustrative case:
| Checkpoint | Observation |
|---|---|
| Your network | AS64496 buys transit from A (AS64497) and B (AS64498); it is not contracted to provide transit between them |
| Received from A | 203.0.113.0/24, path 64497 64499 |
| Received by B from you | Same prefix, path 64496 64497 64499 |
| Authorized origin | AS64499 remains the origin |
If those relationships and observations are confirmed, your export to B violates the intended scope. A matching origin authorization would not repair that export. Conversely, an agreed transit service could make an otherwise similar path intentional.
Use the BGP policy guide for the underlying propagation model. If the evidence instead identifies an Invalid origin, follow RPKI Invalid diagnosis; origin and export problems can coexist.
Locate the export boundary you control
On your routers, compare what arrived, what import policy accepted, which path was selected and what was advertised to each affected neighbor. These are separate observations. For FRRouting 10.4, the following read-only vtysh commands inspect an example prefix and export peer:
show bgp ipv4 unicast 203.0.113.0/24
show bgp ipv4 unicast neighbors 198.51.100.2 advertised-routesSyntax was checked against the versioned documentation; these commands were not executed on a router for this guide. Select the correct routing instance and substitute your real peer. Export to B does not prove B accepted or propagated it; obtain B’s view separately. Accepted-route tables do not preserve every rejected input.
Inspect the applied export policy, its referenced prefix/AS lists, route-source classification and the recent diff. Find the first place the actual route is permitted outside the agreed scope. A selected route is not automatically an authorized export.
If the suspected export is in another network, hand over the path, time and confirmed relationship evidence. Do not change your ROA or infer the remote configuration from a collector. If the relevant view is unavailable, record that gap and request it from the peer.
Contain the confirmed unintended export
For your own confirmed leak, restrict the affected export to its agreed route set or restore the known working export policy. Include legitimate customer prefixes, intended lengths and required communities in the review. Do not assume a filter allowing only your own space fits a network that deliberately carries customer routes.
Before applying the change, save the previous policy and references, name the affected neighbors and prefixes, and arrange management access that does not depend on the failing path. Apply containment at one confirmed boundary and verify its effect before expanding the change.
If a filter correction removes legitimate routes, use the saved policy components to restore those routes while keeping the leaking export blocked. Do not blindly roll back to the known leaking policy. If the scope cannot be bounded, let the incident owner decide whether to isolate the affected session, with the expected loss of legitimate routes recorded.
For the example above, a candidate policy must stop the transit-learned 203.0.113.0/24 export toward B while preserving the authorized own/customer routes toward B. Verify both conditions; disappearance of all exports is not a successful repair.
Check withdrawal, legitimate routes and traffic
Confirm the unwanted prefix/path is absent from the affected advertised-route view and ask the receiving peer to confirm the withdrawal or replacement. Verify the intended prefixes remain accepted. Compare fresh external observations from networks affected by the incident; one clean collector view does not prove global resolution.
Test a permitted service connection and its return path from the failing and working comparison networks. If routing is now correct but delivery fails, use the announcement and reachability checks to inspect forwarding, filtering and host delivery separately.
Prevent the same export after recovery
Keep explicit export scopes, review route-source classification and test policy changes against both forbidden and required routes. Where both implementations and the relationship support them, assess BGP Roles and Only to Customer leak-prevention mechanisms. Only to Customer (OTC) is a path attribute used to constrain propagation; agree roles with the peer before enabling enforcement. Introducing strict role negotiation during an outage can interrupt the session.
The ROA guide covers origin authorization. It complements export controls but does not validate every AS relationship along the path. For a prefix inventory, the subnet calculator can check CIDR boundaries; it cannot determine which network is allowed to export a route.
Escalate with a specific boundary to check
Send this record to the controlling operator. Label unconfirmed relationships and missing observations; omit secrets.
UTC time and observation point:
Exact prefixes; observed origins and full AS paths:
Affected peers; agreed customer/peer/provider relationships:
Expected export scope; last known working comparison:
Received/accepted/selected/advertised observations with times:
Forwarding and service result:
Last change; scoped containment; rollback state:
Requested check and responsible operator: