Redistributing between RIPv2 and BGP is where a legacy distance-vector IGP meets the global path-vector protocol. Two facts dominate the whole exercise: RIP’s metric is a hop count capped at 15 — 16 means unreachable — so a redistributed route needs a small, deliberate seed metric or it is dropped; and the administrative-distance order (eBGP 20, RIP 120, iBGP 200) makes two-way redistribution loop-prone exactly as it is with any IGP-BGP pair. This walks it from the basics to the expert edge cases.
1. Why redistribute RIPv2 and BGP
RIPv2 still runs at the edges — small sites, legacy segments, simple stub networks that never justified migrating. BGP carries reachability to and from other autonomous systems. A boundary router speaks both and leaks selected routes across: RIP into BGP so the outside can reach those edge prefixes, BGP into RIP so the edge can reach external destinations. The discipline is the same as always — leak only what must cross, with a sane metric and a tight filter.
2. RIP’s metric is a hop count, and 16 means dead
Everything about redistributing into RIP comes back to one constraint: RIP’s metric is a hop count from 1 to 15, and 16 is infinity — an explicit “unreachable” value RIP uses to poison a route. A prefix at 15 hops is still reachable; one hop further and it is dead. This tiny range is why RIP can’t scale, and it is the reason the seed metric you choose when redistributing into RIP matters so much.
3. The seed-metric trap into RIP
Redistribute into RIP without a metric and the routes are assigned infinity — so they are never advertised. You must set a seed metric with default-metric under the RIP process or the metric option on the redistribute statement. And set it low: the seed is the starting hop count, and every RIP hop beyond the boundary adds one, so a seed of 15 becomes 16 — unreachable — just one router away. A seed of 1 to 3 leaves room for the route to propagate across the RIP domain.
4. Into BGP, redistributed routes get origin Incomplete
Going the other way, RIP routes redistributed into BGP are injected as BGP prefixes with the origin attribute set to Incomplete (shown as ?) — the marker BGP uses for anything learned by redistribution rather than by network (IGP) or from another AS (EGP). Origin is one of BGP’s best-path tiebreakers, and Incomplete is the least-preferred of the three, so these routes can lose to an otherwise-equal path with a better origin. You can also map the RIP hop count into the MED to influence how neighbors choose among your advertisements.
5. Setting a BGP seed metric (MED)
BGP does not need a seed metric to advertise a redistributed route — unlike RIP, a missing metric does not drop it — but setting the MED deliberately is still good practice. The MED is a non-transitive hint to an adjacent AS about which of your entry points to prefer; left at the default it may not express what you intend. Map the RIP hop count into the MED, or set a fixed value, so neighbors make the entry choice you want rather than an accidental one.
6. Admin distance: eBGP 20 beats RIP 120 beats iBGP 200
When the same prefix is learned more than once, the lowest administrative distance wins: eBGP 20, RIP 120, iBGP 200. Two consequences matter. eBGP (20) beats RIP (120), so an externally-learned copy of a RIP prefix will be preferred over the native RIP route — the setup for a feedback loop. And RIP (120) beats iBGP (200), so a RIP route is preferred over an internal-BGP copy of the same prefix.
7. The mutual-redistribution loop
Redistribute both ways at two boundary routers and a RIP prefix can leave RIP via BGP, cross the AS boundary, and re-enter at a second router as an eBGP route with AD 20 — which beats the native RIP route’s 120. That router now prefers the external copy and a loop or black hole forms. RIP’s 15-hop ceiling bounds how far a count-to-infinity can run, but it does not stop the router from preferring the wrong source; the AD asymmetry is the real problem.
8. Route tags and filtering close it
The dependable fix is route tagging, and RIPv2 — unlike RIPv1 — carries a route tag field precisely for this. Tag each route as it leaves its home protocol; at every boundary that redistributes back, deny any route carrying that tag. The route can never return to where it came from, so the loop cannot close. Pair tags with prefix filtering so only intended prefixes cross, and prefer one-way redistribution wherever the design allows.
Takeaways
RIPv2-BGP redistribution lives or dies on two numbers. The hop count: set a low seed metric into RIP (infinity otherwise, and 16 is dead), leaving room to propagate. The admin distance: eBGP 20 < RIP 120 < iBGP 200, which makes an external copy of a RIP route beat the original and two-way redistribution loop-prone. Seed low, tag on the way out, deny the tag on the way back, filter to the intended prefixes, and prefer one-way redistribution — and the edge stays stable.