Administrative distance

a number of arbitrary unit used in network routing decisions

Uses your system voice; voice and rate in settings.

Q358792Snapshot

≈ 3 min read

Names in other languages

  • ČeštinaAdministrativní vzdálenost
  • EspañolDistancia administrativa
  • EnglishAdministrative distance
  • FrançaisAdministrative distance
  • PolskiDystans administracyjny
  • DeutschAdministrative Distanz
  • 中文管理距离
  • 繁體中文管理距離

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Administrative distance (AD) or route preference is a number of arbitrary unit assigned to dynamic routes, static routes and directly connected routes. The value is used in routers to rank routes from most preferred (low AD value) to least preferred (high AD value).

When multiple paths to the same destination are available in its routing table, the router uses the route with the lowest administrative distance. Router vendors typically design their routers to assign a default administrative distance to each kind of route.

For example, on Cisco routers, routes issued by the Open Shortest Path First routing protocol have a lower default administrative distance than routes issued by the Routing Information Protocol. This is because, by default on Cisco routers, OSPF has a default administrative distance of 110 and RIP has a default administrative distance of 120.

Administrative distance values can, however, usually be adjusted manually by a network administrator. R1#enable R1#configure terminal R1(config)#router rip R1(config-router)#distance 89 Manually configuring the administrative distance is also required when configuring a floating static route. Floating static routes are used to provide an alternate path when a primary link fails.

In order for static routes to be configured as a backup, the static route's administrative distance would need to be adjusted. Otherwise, it will take precedence over all routing protocols and routes issued from a routing protocol will not be inserted into the routing table.

The example below shows how to configure the administrative distance to 254 to specify that it should only be used as a last resort. R1(config)# ip route 10.0.0.0 255.0.0.0 backupLink 1 254 In the event that two routing protocols are configured with the same administrative distance, the Cisco router will ignore the configured values and instead use the default values.

Verifying the configuration of the administrative distance is done on Cisco equipment using the show ip route command in privileged exec mode on the console of the Cisco router. In the example shown below, the administrative distance is 1.

The letter "S" indicates that the route is a static route that has, for all intents and purposes, been added manually to the router process by the administrator and installed into the routing table. Router#enable Router#configure terminal Router(config)#ip route 1.1.1.0 255.255.255.0 fastEthernet 0/0 Router(config)#do show ip route The do show ip route command will display the following, confirming that a static route has an administrative distance of 1.

S 1.1.1.0/0 [1/0] via 172.31.0.1

Text derived from https://en.wikipedia.org/w/index.php?oldid=1375713904 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot administrative-distance-041639-3975723d817ffa3d · hash 3975723d817ffa3db0da70b7cf72acb5e5eab0e7ad7ee76754bb9b9a6b70f31d · captured 2026-09-19 · not yet sealed in the ledger · verify the chain · version history

Cite this page as: encyclopegia.org, “Administrative distance”, snapshot administrative-distance-041639-3975723d817ffa3d. https://encyclopegia.org/a/administrative-distance

Sources cited in this revision

17 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.