Saturday, January 18, 2025

Administrative Distance Explained: Managing Routing Protocol Priorities

Administrative Distance Explained – Complete Networking Guide

๐ŸŒ Administrative Distance (AD) – The Hidden Decision Maker in Routing

Imagine multiple people giving you directions to the same place—but who do you trust more?

That’s exactly what Administrative Distance (AD) does in networking.

It helps routers decide which route source is more reliable.


๐Ÿ“š Table of Contents


๐Ÿง  What is Administrative Distance?

Administrative Distance is a value that represents trust.

Lower value = more trusted route

Basic Rule:

\[ Best\ Route = \min(AD) \]

๐Ÿ‘‰ Router always selects the route with the lowest AD.

๐Ÿ“ Simple Math Logic

Let’s say we have three routes:

ProtocolAD
RIP120
OSPF110
EIGRP90

\[ Selected = \min(120, 110, 90) = 90 \]

✅ EIGRP wins.


๐Ÿ“ก RIP Configuration

Router(config)#router rip Router(config-router)#network 192.168.15.0 Router(config-router)#distance 15 192.168.15.1 0.0.0.0 Router(config-router)#distance 200 192.168.15.0 0.0.0.255 Router(config-router)#distance 255
๐Ÿ’ก Explanation

Different AD values are assigned based on source IP and network range.


⚡ EIGRP Configuration

Router(config)#router eigrp 111 Router(config-router)#network 192.168.16.0 Router(config-router)#distance eigrp 55 200
๐Ÿ’ก Explanation

First value = internal routes, second = external routes.


๐Ÿ”„ OSPF Configuration

Router(config)#router ospf 66 Router(config-router)#distance ospf intra-area 105 Router(config-router)#distance ospf inter-area 115 Router(config-router)#distance ospf external 125
๐Ÿ’ก Explanation
  • Intra-area → same area
  • Inter-area → different area
  • External → outside OSPF

๐ŸŒ BGP Configuration

Router(config)#router bgp 65520 Router(config-router)#distance bgp 115 220 50
๐Ÿ’ก Explanation
  • External BGP
  • Internal BGP
  • Local routes

๐Ÿ–ฅ️ CLI Output

Click to Expand
Router#show ip route

R 192.168.1.0 [120/1]
O 192.168.1.0 [110/2]
D 192.168.1.0 [90/3]

Selected Route: EIGRP (AD 90) 

๐Ÿš€ Modern Improvements

  • Support for prefix-lists
  • Route-map integration
  • Better debugging tools
  • Granular AD control

๐Ÿ› ️ Best Practices

  • Always test before deployment
  • Use specific filters instead of global changes
  • Avoid setting AD too low unless necessary
  • Monitor routing behavior after changes

๐Ÿ’ก Key Takeaways

  • AD decides trust between routing protocols
  • Lower AD = higher priority
  • Math helps predict routing decisions
  • Modern tools allow precise control

๐ŸŽฏ Final Thought

Administrative Distance is not just a number—it’s a decision-making system.

Master it, and you control how your network thinks.

No comments:

Post a Comment

Featured Post

How HMT Watches Lost the Time: A Deep Dive into Disruptive Innovation Blindness in Indian Manufacturing

The Rise and Fall of HMT Watches: A Story of Brand Dominance and Disruptive Innovation Blindness The Rise and Fal...

Popular Posts