OSPF Loadbalancing

Unanswered Question
Jul 1st, 2008
User Badges:


How can I do a loadbalancing in OSPF if there are 2 routers connected to a single destination. Both the routers are also connected using a cross cable.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
royalblues Tue, 07/01/2008 - 22:31
User Badges:
  • Green, 3000 points or more

yes you can do it by manipulating the ospf cost on the interface.


bvsnarayana03 Tue, 07/01/2008 - 22:50
User Badges:
  • Silver, 250 points or more

OSPF uses cost as metric & prefers the path to the destination with lowest metric. For loadbalancing you may manipulate costs on both routers to be same. Also do it at both ends for return traffic as well.

Manipulate cost on WAN interface of routers by this command:

"ip ospf cost x"

drnteam Wed, 07/02/2008 - 01:08
User Badges:

I want to do a loadbalance to an external network whcih is E2 type in my route. Will the changing of cost will work in E2 routes.

royalblues Wed, 07/02/2008 - 01:14
User Badges:
  • Green, 3000 points or more

E2 routes do not include cost to the ASBR so it should not be a problem

Can we know more about your networtk topology ?


drnteam Wed, 07/02/2008 - 02:37
User Badges:

Thanks Narayan,

My Lan is connected to 2 routers. These routers are connected using a cross cable. After these routers there is an External network. Both the sites are using OSPF.

I want to distribute the traffic comming from my LAN through both the routers.


This Discussion