admin distances and routing

Unanswered Question
Jun 15th, 2009
User Badges:

Hi all

If I have 2 routes on my router to the same destination, 1 is ospf, the other static, if I make the Admin distance of the static route higher than the ospf one, will the ospf route take precedence ?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
mahmoodmkl Mon, 06/15/2009 - 02:37
User Badges:
  • Gold, 750 points or more


Yes the ospf route will take precedence.



Marwan ALshawi Mon, 06/15/2009 - 03:03
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015


if you change the Admin distacce the less will be prefered however as you know routing always prefer the logest match before regarless whats the AD

if you leav distance to the default static normally prefered

but you can make the ospf preferd without changing the AD

as bellow example

thorugh ospf you see

justmake your static route as

ip route [next hop ip]

for network ospf will be prefered as it has longer mask

please, if helpful Rate

good luck


This Discussion