cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5547
Views
10
Helpful
4
Replies

When would you want to change cost in OSPF?

When would you want to do things like change OSPF cost, bandwidth, maximum paths, perform summarization, and load balance?

 

Hope that's not a loaded question.

 


 

1 Accepted Solution

Accepted Solutions

Hello,

OSPF cost, bandwidth : If you have two or three paths to a destination and you prefer one path over the other, you use OSPF cost, bandwidth.  Lesser cost and higher bandwidth determine the best path. Cost is automatically calculated by bandwidth; however, you can change it manually by "ip ospf cost" command.

maximum paths: OSPF puts all equal paths to a destination(in terms of metric) in the routing table. With this command you can define how many equal paths can be placed in the routing table. default is 4.

Load balancing : OSPF puts all equal paths to a destination in the routing table. Then router load balances packets across those equall paths.

summarization. You do summarization to send less routes to OSPF neighbors. OSPF summarizes the routes and sends them to its neighbors.

 

Masoud

 

 

 

 

View solution in original post

4 Replies 4

Hello,

OSPF cost, bandwidth : If you have two or three paths to a destination and you prefer one path over the other, you use OSPF cost, bandwidth.  Lesser cost and higher bandwidth determine the best path. Cost is automatically calculated by bandwidth; however, you can change it manually by "ip ospf cost" command.

maximum paths: OSPF puts all equal paths to a destination(in terms of metric) in the routing table. With this command you can define how many equal paths can be placed in the routing table. default is 4.

Load balancing : OSPF puts all equal paths to a destination in the routing table. Then router load balances packets across those equall paths.

summarization. You do summarization to send less routes to OSPF neighbors. OSPF summarizes the routes and sends them to its neighbors.

 

Masoud

 

 

 

 

good help Masoud!

 

 

Happy to help.

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

Some additional information. . .

Concerning summarization, OSPF only supports it on just some "special" role OSPF routers, i.e. ABRs and ASBRs.

Although Cisco routers "autocost" OSPF based on bandwidth, this is not part of the OSPF standard and Cisco's reference bandwidth is 100 Mbps.  This means other vendors can work differently (and often do) and when using greater than FE bandwidths, you often need to manually adjust costs or adjust the reference bandwidth.

Besides the forgoing, a reason you might manually set OSPF costs is because you "know more" than the router does.  For example, you might adjust OSPF costs to favor a less expensive path even if it has less bandwidth, or you might want multiple paths to appear to be equal cost even though they have slightly different bandwidths.