Module 3.4 55 minIntermediate
Administrative distance and metrics
When two routing sources offer the same prefix, AD picks the source. Within one source, the metric picks the best path. This chapter gives the standard AD table and explains the metric used by each protocol.
Course plan — preview
What you'll learn
- Recite the default AD for connected, static, OSPF, EIGRP, RIP, and external BGP.
- Compare metric calculations between OSPF (cost) and RIP (hop count).
Default administrative distances
| Source | AD |
|---|---|
| Connected | 0 |
| Static | 1 |
| External BGP | 20 |
| EIGRP internal | 90 |
| OSPF | 110 |
| IS-IS | 115 |
| RIP | 120 |
| EIGRP external | 170 |
| Internal BGP | 200 |
| Unreachable | 255 |
Lower AD = more believable. AD only compares two sources that offer the same prefix — the same network with the same length. Inside a single protocol, metric decides.
Metrics by protocol
- OSPF — sum of egress interface costs along the path. Cost is normally inverse of bandwidth (reference / bandwidth).
- EIGRP — composite of bandwidth, delay, load, reliability (defaults use only bandwidth and delay).
- RIP — hop count (max 15; 16 = infinite/unreachable).
- BGP — path attributes (Local Pref, AS-Path length, MED, etc.) — not a numeric distance metric.
11 more sections in this chapter, plus a 4-question quiz and a hands-on lab.
Course plan
Modules 2–8 are part of the Course & Lab Pass and All-Access Max — start with a free account
You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: How Networks Work end-to-end and saves your labs — start there, no card required.
- Read every chapter in Module 1 — How Networks Work
- Save labs of up to 5 devices
- Save up to 3 topologies
- See the full course syllabus + chapter titles
Free account · no card required · compare plans any time
Build it step by step
- RIP: routing by counting hopsChain three routers over two serial links and let RIP version 2 teach every router the way to every network, counting the hops as it goes. · 6 steps · ~18 min · 5 devices
- Two routers that learn the networkJoin two sites over a WAN link, then let OSPF fill in the routing tables that you would otherwise type by hand. · 7 steps · ~20 min · 5 devices
- A backup link that waits its turnRun two sites over a fast primary link, park a floating static route on a slow standby line, then pull the primary and watch the backup carry the traffic. · 8 steps · ~20 min · 4 devices
- Steer OSPF with link costGive OSPF two paths between two sites, watch it choose the cheaper one over the shorter one, then re-rate a link and watch the route move. · 7 steps · ~25 min · 5 devices
- EIGRP across three routersJoin two sites through a hub with EIGRP, find why one router learns nothing, then add a direct link and watch EIGRP choose speed over hop count. · 7 steps · ~25 min · 5 devices
- Two providers, one eBGP sessionConnect two autonomous systems, bring up an eBGP session between their border routers, and announce each provider's customer blocks to the other. · 8 steps · ~25 min · 5 devices