Lesson 3 of 9 · 23m
Inside the Network: IGPs, Next Hops, and iBGP
BGP depends on an interior routing foundation; OSPF/IS-IS, loopbacks, next-hop-self, and full-mesh or route-reflector iBGP design determine whether external routes can actually forward traffic.
BGP is excellent between networks and terrible as your interior routing substrate. Inside one AS you usually run an IGP such as OSPF or IS-IS to make infrastructure reachable, then use iBGP to distribute external routes. Operators forget this dependency until a core link flaps and every BGP-learned route becomes recursively unreachable even though BGP sessions stay up.
The next-hop problem
An eBGP-learned route usually arrives with the neighbor's border address as its next hop:
route: 198.51.100.0/24
next-hop: 192.0.2.1 # provider-side peering addressRouters deeper inside your AS may not know how to reach 192.0.2.1. Unless that subnet is carried in the IGP, the route is unusable. The standard fixes are:
- redistribute connected peering subnets into the IGP carefully, or
- set
next-hop-selftoward internal neighbors.
On Cisco-style configuration:
router bgp 64500
neighbor 10.0.0.12 remote-as 64500
neighbor 10.0.0.12 update-source Loopback0
neighbor 10.0.0.12 next-hop-selfiBGP does not forward by itself
Classic iBGP requires logical full mesh or route reflectors because routes learned from one iBGP peer are not readvertised to another by default. That rule prevents routing loops in a protocol without an internal topology view. In modern networks, route reflectors or confederations scale this.
edge1 --- core1 --- edge2
| | |
edge3 --- core2 --- edge4If edge routers only speak iBGP to route reflectors, every edge can still learn all selected external routes — but forwarding still follows the IGP through the core. BGP is a routing overlay, not a tunnel.
BGP-free cores and MPLS
Large carriers often keep the core free of internet routes using MPLS. Edge routers know customer routes; core routers only switch labels between edge loopbacks. This reduces core FIB size and isolates failures. Smaller networks can ignore MPLS for now, but they cannot ignore recursive next-hop resolution.
Convergence is layered
A link failure is first detected by physical/interface state or BFD, then the IGP recomputes, then BGP next-hop reachability changes, then traffic shifts. Each layer has timers. Making BGP aggressively fast while leaving the IGP slow usually produces noise rather than availability.
Field notes
- Never redistribute the DFZ into OSPF or IS-IS. Use the IGP for infrastructure, BGP for customer and internet prefixes.
- Loopback addresses are the stable endpoints for iBGP because they survive individual link failures.
next-hop-selfon route reflectors can hide topology; apply it deliberately, often only at border routers.- BFD is useful for fast failure detection, but do not make it so aggressive that normal congestion tears down sessions.
- If
show ip bgphas the route but forwarding fails, test reachability to the BGP next hop first.
Was this lesson helpful?