What is Administrative Distance – Explain
In network environments, routers often receive multiple routes to the same destination from different sources, such as routing protocols (e.g., OSPF, EIGRP, RIP), static routes, or directly connected networks. To select the most trustworthy route, Cisco routers use Administrative Distance (AD), a critical concept in the Cisco Certified Network Associate (CCNA) curriculum. This article explains AD’s purpose, default values, and practical applications.
Note:- At the end of this article, the assessment test is waiting for you about the Administrative Distance
What is Administrative Distance (AD)?
Administrative Distance (AD) is a numeric value between 0 and 255 that routers use to evaluate the reliability of a routing information source. The lower the AD value, the more trustworthy the source. When multiple routes to the same network exist, the router compares their ADs and selects the route with the lowest AD. Only if ADs are equal does the router use metrics (e.g., hop count, cost) to choose the best path.
For example, if the routing table has more than one route source for the same destination network, a router configured for that network will use both Enhance Interior Routing Gateway Protocol (EIGRP) and Routing Information Protocol (RIP).
So, both routing protocols may decide a different path to the destination based on that routing protocol’s metrics because RIP selects a path based on hop count, and EIGRP selects a path based on its composite metric. So, the administrator distance is the value that tells the router which path is best and which path to use first.
As I initially asked, it is a numeric value ranging from 0 to 255. A smaller AD value is more reliable and trustworthy. Therefore, the best AD value is 0, and the worst is 255. The static route AD is 1, whereas the AD of EIGRP is 110, so the static route is more reliable and trustworthy.
When there are static and EIGRP routes to the same destination, the router chooses the static route because it has the lowest AD value.
If EIGRP and OSPF are configured to the same destination, the router will choose EIGRP because the AD of EIGRP is 90 and OSPF’s is 110. So, the router will determine the route with the lowest value, EIGRP its AD, and OSPF’s Thus,
Default Administrative Distance Values
The table below illustrates the default router administrative distance values. We can change and modify the administrative distance of a routing protocol through the distance command in the routing sub-configuration mode. However, modifying the AD value can lead to routing loops and black holes, so use caution if you change it.
Below are Cisco’s default AD values for familiar route sources:
Route Source | Default AD |
---|---|
Directly Connected Interface | 0 |
Static Route | 1 |
Enhanced Interior Gateway Routing Protocol (EIGRP) Summary Route | 5 |
External Border Gateway Protocol (eBGP) | 20 |
Internal EIGRP | 90 |
Open Shortest Path First (OSPF) | 110 |
Intermediate System-to-Intermediate System (IS-IS) | 115 |
Routing Information Protocol (RIP) | 120 |
External EIGRP | 170 |
Internal BGP (iBGP) | 200 |
Key Notes:
- Directly connected networks (AD 0) are always preferred.
- Static routes (AD 1) override dynamically learned routes unless their AD is manually increased.
- EIGRP has separate ADs for internal (90) and external (170) routes.
How Administrative Distance Works: Examples
Example 1: Static Route vs. OSPF
A router receives a route to 10.0.0.0/24 via:
- A static route (AD = 1).
- OSPF (AD = 110).
Result: The static route is preferred due to its lower AD.
Example 2: RIP vs. EIGRP
A router learns about 192.168.1.0/24 through:
- RIP (AD = 120).
- EIGRP (AD = 90).
Result: EIGRP’s route is chosen because of its lower AD.
Administrative Distance vs. Metric
It’s crucial to distinguish between AD and metric:
- AD determines trustworthiness between different routing sources.
- Metric determines the best path within the same routing protocol.
For example:
- Two OSPF routes to the exact network use cost (metric) to decide the best path.
- An OSPF route (AD 110) will always be preferred over a RIP route (AD 120), even if the RIP route has a better metric (e.g., fewer hops).
Configuring Administrative Distance
Administrators can modify AD values for flexibility.
Example 1: Changing Static Route AD
To configure a static route with AD 150 (instead of the default 1):
Router(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.2 150
Example 2: Adjusting OSPF AD
To set OSPF’s AD to 100 globally:
Router(config)# router ospf 1
Router(config-router)# distance 100
Caution: Incorrect AD configurations can lead to routing loops or suboptimal paths.
Troubleshooting with Administrative Distance
Common scenarios where AD impacts routing decisions:
- Unexpected Route Selection: A static route might override a dynamic route due to lower AD.
- Backup Routes: Configuring a floating static route (with higher AD than dynamic protocols) ensures it’s used only if the primary route fails.
ip route 192.168.1.0 255.255.255.0 10.0.0.2 200 # Backup route (AD 200)
This route activates only if the primary OSPF route (AD 110) becomes unavailable.
Conclusion
Administrative Distance (AD) is a foundational concept in Cisco networking that ensures routers select the most reliable path when multiple routes exist. Network engineers can optimize traffic flow and maintain robust network designs by understanding default AD values, configuring custom ADs, and troubleshooting route preferences. Mastery of AD is essential for CCNA certification and real-world network management.
Key Takeaways:
- Lower AD = More trustworthy route.
- AD is prioritized over metrics.
- Always verify AD values when troubleshooting routing issues.