Distance-vector routing
Administrative distance
How much a router trusts a source of routes, when several offer the same network.
Administrative distance is a number that says how much a router trusts a source of routes. When several sources
offer the same network, the lowest distance wins: connected 0, static 1, eBGP 20, OSPF 110, RIP 120. The metric only
compares paths from the same source. FRR prints both in show ip route: [110/30] is OSPF, distance 110, cost 30.
Read next
- OSPF A routing protocol inside one organisation: routers share a map and compute shortest paths.
- BGP The protocol between autonomous systems: how the networks of the internet find each other.
- Routing table The list a device uses to decide where each packet goes next.
- Floating static route A backup static route with a higher administrative distance, used only when the main route is gone.
- Static route A route typed in by hand: a prefix and the next hop to send it to.
- EIGRP Cisco's advanced distance-vector protocol: neighbours share distances, with a backup path worked out in advance.