Administrative distance
   HOME

TheInfoList



OR:

Administrative distance (AD) or route preference is a number of
arbitrary unit In science and technology, an arbitrary unit (abbreviated arb. unit, '' see below'') or procedure defined unit (p.d.u.) is a relative unit of measurement to show the ratio of amount of substance, intensity, or other quantities, to a predetermined ...
assigned to dynamic routes,
static route Static routing is a form of routing that occurs when a router uses a manually-configured routing entry, rather than information from dynamic routing traffic. In many cases, static routes are manually configured by a network administrator by adding i ...
s 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).Cisco Systems (2013),
What is Administrative Distance?
retrieved 14 September 2013
When multiple paths to the same destination are available in its
routing table In computer networking, a routing table, or routing information base (RIB), is a data table stored in a router or a network host that lists the routes to particular network destinations, and in some cases, metrics (distances) associated with th ...
, 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 Open Shortest Path First (OSPF) is a routing protocol for Internet Protocol (IP) networks. It uses a link state routing (LSR) algorithm and falls into the group of interior gateway protocols (IGPs), operating within a single autonomous syst ...
routing protocol have a lower default administrative distance than routes issued by the
Routing Information Protocol The Routing Information Protocol (RIP) is one of the oldest distance-vector routing protocols which employs the hop count as a routing metric. RIP prevents routing loops by implementing a limit on the number of hops allowed in a path from sour ...
. 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 A network administrator is a person designated in an organization whose responsibility includes maintaining computer infrastructures with emphasis on local area networks (LANs) up to wide area networks (WANs). Responsibilities may vary between org ...
.


Overview

The administrative distance (AD) value is assigned by the router on a per-protocol basis. Routers, by design, should not install multiple routes into the routing table as this has the potential to cause routing loops. While a router may run multiple
routing protocol A routing protocol specifies how routers communicate with each other to distribute information that enables them to select routes between nodes on a computer network. Routers perform the traffic directing functions on the Internet; data packet ...
s on the same device, it is necessary for the router to implement a process to ensure that multiple routes, pointing to the same destination do not simultaneously exist in the routing table. Each process running on a router advertises its administrative distance value to the local router. The router uses this value to determine which route should be used. Once a route has been selected, the routing information database is updated. If two routes have the same administrative distance, the router uses its vendor-specific algorithm to determine which route should be installed.
Cisco Cisco Systems, Inc., commonly known as Cisco, is an American-based multinational digital communications technology conglomerate corporation headquartered in San Jose, California. Cisco develops, manufactures, and sells networking hardware, ...
routers simply ignore the values and fall back to the default values, which are never the same.Cisco Systems(n.d.), Information About Routing, Cisco Systems Inc, retrieved 16 September 2013 The router will usually compare administrative distances to determine which protocol has the lowest value. The router prefers protocols that have a lower assigned administrative distance. For example, OSPF has a default distance of 110, so it is preferred by the router process, over RIP, which has a default distance of 120. The administrator can arbitrarily reconfigure the administrative distances, which affects the ranking of the preferred routes by the routing process. On Cisco routers, static routes have an administrative distance of 1, making them preferred over routes issued by a dynamic routing protocol. The administrative distance is a value that is always only referenced by the local router itself. The administrative distance is not advertised on the network.


Default administrative distances


Cisco

The following table lists the default administrative distances for various routing protocols used on
Cisco Cisco Systems, Inc., commonly known as Cisco, is an American-based multinational digital communications technology conglomerate corporation headquartered in San Jose, California. Cisco develops, manufactures, and sells networking hardware, ...
routers.


Juniper

The following table lists the default administrative distances for various routing protocols used on Juniper routers.


Configuration


Cisco IOS

The
network administrator A network administrator is a person designated in an organization whose responsibility includes maintaining computer infrastructures with emphasis on local area networks (LANs) up to wide area networks (WANs). Responsibilities may vary between org ...
may modify the administrative distance to change the desired ranking of router protocols. This may be necessary in cases where routing redistribution has to be used, otherwise, routing loops could occur. The Cisco Internetwork Operating System enables network administrators to modify the distance by changing the distance value in sub-router configuration mode. In the example below, RIP's administrative distance is changed to 89 so that it used in preference to OSPF. 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 Cisco Systems, Inc., commonly known as Cisco, is an American-based multinational digital communications technology conglomerate corporation headquartered in San Jose, California. Cisco develops, manufactures, and sells networking hardware, ...
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 Cisco Systems, Inc., commonly known as Cisco, is an American-based multinational digital communications technology conglomerate corporation headquartered in San Jose, California. Cisco develops, manufactures, and sells networking hardware, ...
router. In the example shown below, the administrative distance is 1. The letter "S" indicates that the route is a
static route Static routing is a form of routing that occurs when a router uses a manually-configured routing entry, rather than information from dynamic routing traffic. In many cases, static routes are manually configured by a network administrator by adding i ...
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 Static routing is a form of routing that occurs when a router uses a manually-configured routing entry, rather than information from dynamic routing traffic. In many cases, static routes are manually configured by a network administrator by adding i ...
has an administrative distance of 1. ''S 1.1.1.0/0 /0via 172.31.0.1''


See also

*
Metrics (networking) Router metrics are configuration values used by a router to make routing decisions. A ''metric'' is typically one of many fields in a routing table. Router metrics help the router choose the best route among multiple feasible routes to a dest ...
, used for choosing a route when administrative distance is the same


References

{{reflist Routing