OSPF prefer path

Unanswered Question
Nov 30th, 2007


My router A is connected to 2 upstream routers,as below,

1-Router A---fa0/0---R1

2-Router A---Fa0/1---R2

All 3 routers running OSPF , I would like Router A to prefer 1st link over 2nd link.

does puting the lower cost on 1st link interface will do the trick ?


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
bvsnarayana03 Fri, 11/30/2007 - 08:24

OSPF prefers lowest cost path to the destination. So if you have 2 routers & if your preference is to reach R1 than R2, then manually assign cost on interface connecting to R1 some what lower than R2.

Jon Marshall Fri, 11/30/2007 - 08:27

Hi Mohammed

You could either put a lower cost on fa0/0 or a higher cost on fa0/1 or use the bandwidth statement but the bandwidth statement will affect other things such as QOS.



bvsnarayana03 Fri, 11/30/2007 - 10:04

Because it's a fastethernet port, it is advisable not to assign any bandwidth & let it run defaults. You may play with cost to achieve desired results.

royalblues Sun, 12/02/2007 - 11:45

OSPF chooses the outgoing interface cost and hence you would be required to tune the cost value on both the routers.




This Discussion