Concepts / Distance-vector routing

Distance-vector routing

Administrative distance

Also called route preference, [110/30]

How much a router trusts a source of routes, when several offer the same network.

The most trusted source wins
The most trusted source wins

When several sources offer the same network, the router installs the route from the source with the lowest distance. The metric only compares routes from the same source.

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.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab