Administrative distance table

When two routing sources offer the same prefix, the router installs the one with the lower administrative distance. These are the defaults Cisco documents for each source.

Default administrative distances, lower is more trusted
Route sourceDefault AD
Connected0
Static1
EIGRP summary route5
External BGP (eBGP)20
Internal EIGRP90
IGRP100
OSPF110
IS-IS115
RIP120
EGP140
On Demand Routing (ODR)160
External EIGRP170
Internal BGP (iBGP)200
Unknown255

Reading the table

  • Lower is more trusted: a static route (1) beats OSPF (110) for the same prefix.
  • AD compares sources only for the same prefix and length. A longer prefix wins whatever its source.
  • 255 means the route is never installed in the routing table.
  • AD is local to one router and is never advertised to its neighbours.

Source: Cisco, What Is Administrative Distance?