Administrative Distance (AD), which decides which route the router prefers when multiple routing sources exist.

 Administrative Distance (AD), which decides which route the router prefers when multiple routing sources exist.


πŸ₯‡ Route Priority (Cisco default)

When static, OSPF, and EIGRP are all present for the same destination, the router chooses based on lowest Administrative Distance (most trusted route source).

Routing TypeProtocolDefault ADPriority
Static routeManual1πŸ₯‡ Highest (most preferred)
EIGRP (internal)Dynamic90πŸ₯ˆ
OSPFDynamic110πŸ₯‰

🧠 So who wins?

πŸ‘‰ Static route wins most of the time

Because:

  • AD = 1 (lowest)
  • Router trusts it the most

⚠️ Important exception: “Floating Static Route”

If you configure static route with higher AD:

ip route 192.168.1.0 255.255.255.0 10.1.1.1 200

Then:

  • OSPF (110) or EIGRP (90) will be preferred
  • Static route is used only as backup

πŸ”„ Real decision flow inside router

When multiple routes exist:

  1. Check Administrative Distance (AD)
  2. Lower AD wins
  3. If same AD → check metric (OSPF cost, EIGRP metric)
  4. If same metric → load balancing (ECMP)

πŸ“Š Example scenario

You have destination: 192.168.10.0/24

Router learns:

  • Static route → AD 1
  • EIGRP route → AD 90
  • OSPF route → AD 110

Result:

πŸ‘‰ Router uses STATIC ROUTE


🧠 Easy memory trick

  • Static = Strongest trust (AD 1)
  • EIGRP = Medium trust (90)
  • OSPF = Lower trust (110)

πŸ”₯ Interview answer

When static, OSPF, and EIGRP routes exist for the same destination, the router chooses the route with the lowest Administrative Distance. By default, static routes have AD 1, EIGRP internal routes have AD 90, and OSPF routes have AD 110. Therefore, static routes are preferred over dynamic routing protocols unless a floating static route is configured with a higher AD.

Comments

Popular posts from this blog

πŸ–§ VLAN (Virtual Local Area Network)

🌐 NAT (Network Address Translation)

πŸ›°️ OSPF (Open Shortest Path First)