Administrative distance - wikipedia Administrative distance 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 by vendor - specific routers to rank routes from most preferred ( low administrative distance value ) to least preferred ( high administrative distance 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 that is used, however, this value can usually be adjusted manually by a network administrator. On Cisco routers, routes issued by OSPF have a lower default administrative distance than routes issued by the Routing Information Protocol. By default, OSPF has a default administrative distance of 110 and RIP has a default administrative distance of 120. Contents 1 Overview 2 Default administrative distances 2.1 Cisco 3 Configuration 3.1 Cisco IOS 4 Verification 4.1 Cisco IOS 5 See also 6 References 7 External links 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 protocols 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 routers simply ignore the values and fall back to the default values, which are never the same. 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 routers. Routing Protocol Administrative distance Directly connected interface 0 Static route out an interface Static route to next - hop address DMNR - Dynamic Mobile Network Routing EIGRP summary route 5 External BGP 20 Internal EIGRP 90 IGRP 100 OSPF 110 IS - IS 115 Routing Information Protocol ( RIP ) 120 Exterior Gateway Protocol ( EGP ) 140 On Demand Routing ( ODR ) 160 External EIGRP 170 Internal BGP 200 Next Hop Resolution Protocol ( NHRP ) 250 Floating Static Route ( ex. backup default route ) Variable -- user assigned Unknown ( Others ) 255 Please note that : An administrative distance of 255 will cause the router to remove the route from the routing table and not use it. Since IOS 12.2, the administrative distance of a static route with an exit interface is 1. Prior to the release of 12.2 it was in fact 0. Only the interface itself has an administrative distance of 0, since a route can not have a distance of less than 1. Directly connected routes have an administrative distance of 0. A default static route learned via DHCP will have an administrative distance of 254. Configuration Cisco IOS The network administrator 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 router will ignore the configured values and instead use the default values. Verification Cisco IOS 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 See also Routing Routing protocol References Jump up ^ `` Route Preferences ''. Juniper Networks. Retrieved 2018 - 06 - 18. ^ Jump up to : Franck Le ; Geoffrey G. Xie ; Hui Zhang, Understanding Route Redistribution ( PDF ) ^ Jump up to : Cisco Systems ( 2013 ), What is Administrative Distance ?, retrieved 14 September 2013 ^ Jump up to : Cisco Systems ( n.d. ), Information About Routing, Cisco Systems Inc, retrieved 16 September 2013 Jump up ^ Cisco, Default AD Jump up ^ Cisco Systems ( n.d ), Configuring Static Routing, Cisco Systems Inc., retrieved 14 September 2013 Jump up ^ Cisco Systems ( n.d ), Show Commands, Cisco Systems Inc., retrieved 14 September 2013 External links Cisco - What is Administrative Distance ? ( Ref. Mr. Praveen Suvarna Mundkur ) Retrieved from `` https://en.wikipedia.org/w/index.php?title=Administrative_distance&oldid=846381974 '' Categories : Routing Talk Contents About Wikipedia Čeština Deutsch Español Polski Edit links This page was last edited on 18 June 2018, at 12 : 06 ( UTC ). About Wikipedia

Question: what is the administrative distance for ospf in cisco networking
Answer: 110