cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1475
Views
1
Helpful
7
Replies

changing cost in ospf

lex18
Level 1
Level 1

Hi, I have created a network, using packet tracer, in which I have implemented the ospf protocol. I have given different values to cost per link, but when I look in the route table, the path is not that with the lowest cost and I cannot understand why. Here are some screenshots.

Untitled.pngUntitled1.png

The numbers with bold next to a network is their cost

 

Thank you for your time

1 Accepted Solution

Accepted Solutions

show ip ospf neighbors  on R5 and R3; all routers should have 2 ospf neighbors, right? check that starting at R5, I do not see any ospf routes over Serial0/0/1. if u see 2 ospf neighbors, close pt, re-open it, and check again, if still the same, attach your PT file here (in a zip format )

Regards, ML
**Please Rate All Helpful Responses **

 

View solution in original post

7 Replies 7

Hello,

A couple of things to note:

OSPF cost is one way. So if you configure a cost on a link that is that local routers cost on that link. That does not mean its neighbor sees that same cost on its side.

Cost is a tie breaker. The Route-Type is the initial mechanism used for path selection such as Inter and Intra Area routes. I assume you are running single Area OSPF but cant be 100% sure just on the output provided.

 

Can you provide a bit more information such as a source and destination network specifically and the route you think it takes vs the route its actually taking? With output of the routing table and interface configurations.

 

-David

Here is the route table from router 5. Lets say I want to see how will it communicate with the network 195.168.1.0. I expected to do that through the router 3 as it will have cost of 10+10+10 = 30, but it chooses the way through router 4 and the cost is 50. Isn't it supposed to take the route with the lowest cost value?

lex18_0-1699519573017.png

 

@lex18 

it seems that you do not getting any OSPF routes from R3; Troubleshoot link R3 to 5;  maybe OSPF is not enabled on that link?  Shut down link to R4 on r5 to see if u get any Ospf routes

Regards, ML
**Please Rate All Helpful Responses **

lex18_0-1699521433899.png

here is the route table from router 3. The ospf is enabled

show ip ospf neighbors  on R5 and R3; all routers should have 2 ospf neighbors, right? check that starting at R5, I do not see any ospf routes over Serial0/0/1. if u see 2 ospf neighbors, close pt, re-open it, and check again, if still the same, attach your PT file here (in a zip format )

Regards, ML
**Please Rate All Helpful Responses **

 

Martin L
VIP
VIP

Who is reaching who and what are your current and desire paths ?

U can attach your PT file here but it nust be in a zip format 

Regards, ML
**Please Rate All Helpful Responses **

M02@rt37
VIP
VIP

Hello @lex18,

Please provide information on the source and destination networks, as well as the specific routes you expect versus the ones you observe in the routing table.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.