~/netref / Routing & AD
##

Routing — Static, OSPF & BGP

When two routes to the same prefix compete, the lower administrative distance wins; ties break on metric.

Route sourceAD
Connected interface0
Static route1
EIGRP summary5
External BGP20
Internal EIGRP90
OSPF110
IS-IS115
RIP120
Internal BGP200
Unreachable255
OSPFlink-state · IGP
  • Cost = 10⁸ / bandwidth (bps)
  • Area 0 is the backbone
  • DR/BDR elected on multi-access
  • Multicast 224.0.0.5 / .6 · IP proto 89
BGPpath-vector · EGP
  • Runs the internet between ASes
  • eBGP AD 20 · iBGP AD 200 · TCP 179
  • Picks path by AS-path length & policy
  • Local pref / MED / weight tune it
RIPdistance-vector · legacy
  • Metric = hop count, max 15
  • 16 hops = unreachable
  • Slow convergence, rarely used now