What is Administrative Distance? (2024)

    Introduction

    This document describes administrative distance, which is the feature that routers use in order to select the best path when there are two or more different routes to the same destination from two different routing protocols.

    Most routing protocols have metric structures and algorithms that are not compatible with other protocols. In a network with multiple routing protocols, the exchange of route information and the capability to select the best path across the multiple protocols are critical. Administrative distance defines the reliability of a routing protocol. Each routing protocol is prioritized in order of most to least reliable (believable) with the help of an administrative distance value.

    Prerequisites

    Requirements

    Cisco recommends that you have basic knowledge of the routing process. Refer to Routing Basics in Internetworking Technologies Handbook.

    Components Used

    This document is not restricted to specific software and hardware versions.

    The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.

    Select the Best Path

    Administrative distance is the first criterion that a router uses to determine which routing protocol to use if two protocols provide route information for the same destination. Administrative distance is a measure of the trustworthiness of the source of the routing information. Administrative distance has only local significance, and is not advertised in routing updates.

    What is Administrative Distance? (1)

    Note: The smaller the administrative distance value, the more reliable the protocol. For example, if a router receives a route to a certain network from both Open Shortest Path First (OSPF) (default administrative distance - 110) and Interior Gateway Routing Protocol (IGRP) (default administrative distance - 100), the router chooses IGRP because IGRP is more reliable. This means the router adds the IGRP version of the route to the routing table.

    If you lose the source of the IGRP-derived information (for example, due to a power shutdown), the software uses the OSPF-derived information until the IGRP-derived information reappears.

    Default Distance Value Table

    This table lists the administrative distance default values of the protocols that Cisco supports.

    Route SourceDefault Distance Values
    Connected interface0
    Static route1
    Enhanced Interior Gateway Routing Protocol (EIGRP) summary route5
    External Border Gateway Protocol (BGP)20
    Internal EIGRP90
    IGRP100
    OSPF110
    Intermediate System-to-Intermediate System (IS-IS)115
    Routing Information Protocol (RIP)120
    Exterior Gateway Protocol (EGP)140
    On Demand Routing (ODR)160
    External EIGRP170
    Internal BGP200
    Unknown*255

    * If the administrative distance is 255, the router does not believe the source of that route and does not install the route in the routing table.

    When you use route redistribution, occasionally you need to modify the administrative distance of a protocol so that it takes precedence. For example, if you want the router to select RIP-learned routes (default value 120) rather than IGRP-learned routes (default value 100) to the same destination, you must increase the administrative distance for IGRP to 120+, or decrease the administrative distance of RIP to a value less than 100.

    You can modify the administrative distance of a protocol through the distance command in the routing process subconfiguration mode. This command specifies that the administrative distance is assigned to the routes learned from a particular routing protocol. You need to use this procedure generally when you migrate the network from one routing protocol to another, and the latter has a higher administrative distance. However, a change in the administrative distance can lead to routing loops and black holes. So, use caution if you change the administrative distance.

    Here is an example that shows two routers, R1 and R2, connected through Ethernet. The loopback interfaces of the routers are also advertised with RIP and IGRP on both the routers. You can observe that the IGRP routes are preferred over the RIP routes in the routing table because the administrative distance is 100.

    R1#show ip route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Ethernet0I 10.0.0.0/8 [100/1600] via 172.16.1.200, 00:00:01, Ethernet0C 192.168.1.0/24 is directly connected, Loopback0 R2#show ip route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Ethernet0C 10.0.0.0/8 is directly connected, Loopback0I 192.168.1.0/24 [100/1600] via 172.16.1.100, 00:00:33,

    In order to enable the router to prefer RIP routes to IGRP, configure the distance command on R1 like this:

    R1(config)#router ripR1(config-router)#distance 90

    Now look at the routing table. The routing table shows that the router prefers the RIP routes. The router learns RIP routes with an administrative distance of 90, although the default is 120. Note that the new administrative distance value is relevant only to the routing process of a single router (in this case R1). R2 still has IGRP routes in the routing table.

    R1#show ip route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Ethernet0R 10.0.0.0/8 [90/1] via 172.16.1.200, 00:00:16, Ethernet0C 192.168.1.0/24 is directly connected, Loopback0 R2#show ip route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Ethernet0C 10.0.0.0/8 is directly connected, Loopback0I 192.168.1.0/24 [100/1600] via 172.16.1.100, 00:00:33,

    There are no general guidelines to assign administrative distances because each network has varied requirements. You must determine a reasonable matrix of administrative distances for the network as a whole.

    Other Applications of Administrative Distance

    One common reason to change the administrative distance of a route is when you use Static Routes to back up an IGP route that currently exists. This is normally used to bring up a backup link when the primary fails.

    For example, assume that you use the routing table from R1. However, in this case, there is also an ISDN line that you can use as a backup if the primary connection fails. Here is an example of a Floating Static for this route:

    ip route 10.0.0.0 255.0.0.0 Dialer 1 250 !--- Note: The Administrative Distance is set to 250.

    If the Ethernet interfaces fail, or if you manually bring down the Ethernet interfaces, the floating static route is installed into the routing table. All traffic destined for the 10.0.0.0/8 network is then routed out of the Dialer 1 interface and over the backup link. The routing table appears similar to this after the failure:

    R1#show ip routeGateway of last resort is not set172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Ethernet0S 10.0.0.0/8 is directly connected, Dialer1C 192.168.1.0/24 is directly connected, Loopback0

    For more detailed information on the use of Floating Static routes, refer to these documents:

    • Sample Configuration: Using Floating Static Routes and Dial-on-Demand routing

    • Configuring ISDN Back With Floating Statics

    • Evaluating Backup Interfaces, Floating Static Routes, and Dialer Watch for DDR Backup

    Related Information

    • Route Selection in Cisco Routers
    • IP Routing Support Page
    What is Administrative Distance? (2024)
    Top Articles
    Razorpay payment gateway: All you need to know
    Jaka pamięć RAM do komputera PC w 2024 Sklep komputerowy TechLord
    The Tribes and Castes of the Central Provinces of India, Volume 3
    Whas Golf Card
    Places 5 Hours Away From Me
    Busted Newspaper Zapata Tx
    Boomerang Media Group: Quality Media Solutions
    How To Be A Reseller: Heather Hooks Is Hooked On Pickin’ - Seeking Connection: Life Is Like A Crossword Puzzle
    Brgeneral Patient Portal
    No Hard Feelings Showtimes Near Metropolitan Fiesta 5 Theatre
    Craigslist - Pets for Sale or Adoption in Zeeland, MI
    10000 Divided By 5
    Barstool Sports Gif
    House Share: What we learned living with strangers
    Natureza e Qualidade de Produtos - Gestão da Qualidade
    Myql Loan Login
    Hmr Properties
    Rhinotimes
    Google Feud Unblocked 6969
    Used Sawmill For Sale - Craigslist Near Tennessee
    Gem City Surgeons Miami Valley South
    Nhl Wikia
    Toy Story 3 Animation Screencaps
    Walgreens Tanque Verde And Catalina Hwy
    Morristown Daily Record Obituary
    Gentle Dental Northpointe
    Somewhere In Queens Showtimes Near The Maple Theater
    Craigslist Org Appleton Wi
    Soulstone Survivors Igg
    Piedmont Healthstream Sign In
    Marquette Gas Prices
    Amerisourcebergen Thoughtspot 2023
    Rek Funerals
    Marokko houdt honderden mensen tegen die illegaal grens met Spaanse stad Ceuta wilden oversteken
    Ryujinx Firmware 15
    Tokioof
    Bad Business Private Server Commands
    Davita Salary
    Learn4Good Job Posting
    Soiza Grass
    Litter-Robot 3 Pinch Contact & DFI Kit
    Daily Journal Obituary Kankakee
    Exploring The Whimsical World Of JellybeansBrains Only
    Babylon 2022 Showtimes Near Cinemark Downey And Xd
    Dmitri Wartranslated
    Andrew Lee Torres
    Postgraduate | Student Recruitment
    Paul Shelesh
    Shell Gas Stations Prices
    Hk Jockey Club Result
    Madden 23 Can't Hire Offensive Coordinator
    4015 Ballinger Rd Martinsville In 46151
    Latest Posts
    Article information

    Author: Maia Crooks Jr

    Last Updated:

    Views: 5953

    Rating: 4.2 / 5 (63 voted)

    Reviews: 86% of readers found this page helpful

    Author information

    Name: Maia Crooks Jr

    Birthday: 1997-09-21

    Address: 93119 Joseph Street, Peggyfurt, NC 11582

    Phone: +2983088926881

    Job: Principal Design Liaison

    Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

    Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.