03-10-2019 05:08 AM - edited 03-10-2019 05:08 AM
Hi,
I am creating a network within packet tracer, but am having trouble understanding how I can make my OSPF network take the most optimum route.
I have manually costed the Gigabit interfaces at 2, and serial interfaces at 100 using the ip ospf cost command.
Currently, a packet is sent from R4 --> R2 --> R1.
But on reply, it is sent from R1 --> R3 --> R2 --> R4. I am aware that this is due to the two serial links on R1 being the same cost, and this can be seen in my routing table.
Increasing the serial link cost between R1 and R3 will alleviate the issues, but I believe it will then cost any packets coming inbound for R5 over R1 to do the following: R1 --> R2 --> R3 --> R5 which is just as bad.
Is there a way to correct this issue?
03-10-2019 05:47 AM
03-10-2019 06:04 AM
Thanks for the reply.
Since the cost is the total path, I am confused as to why the route from R1 to R3 is being taken, to reach R4.
R1 (100cost) -->R3 (2cost) -->R2 is 102 in total (up to this hop)
R1 (100cost) -->R2 is 100 (up to this hop)
Perhaps it is packet tracer not working properly?
Thanks for informing me that costs differ to and from a destination. Currently, I have set them all to be on the following: 2 for gig, 100 for serial, 10 for fast ethernet, so I don't think that will be the issue.
Really appreciate the help,
G.
03-10-2019 07:43 AM
If R1's interface cost, on the links to both R2 and R3 is the same, then R1 should select R2 to R3, as the R2<>R3 link will add at least 1 to the R4 path cost.
It might be a bug in PT.
I could provide a series of OSPF commands, to troubleshoot, but often PT doesn't "know" them.
03-10-2019 05:51 AM
Hi @gizmo-95 ,
At first glance, my suggestion would be to increase the cost of the interfaces between R2 and R3, this is to avoid that the packages take that path in any of the two cases you mention.
Try it and inform us how you are doing.
Remember to mark the correct answers as solved, since that helps other users with similar doubts
Regards
03-10-2019 06:06 AM
Hi,
The cost between R2 and R3 is set at 2.
My reasoning for doing this is because if I need to reach R5 from R2, it would be the shortest path.
I didn't think the path would ever become R1-->R3-->R2 as that total cost would be 102 where as R1-->R2 is only 100.
Appreciate the help,
G.
03-10-2019 06:52 AM
03-11-2019 02:46 AM
Hi,
I have created the same type of lab in my packet tracer and I didn't find any such issue. Better to share the PT.
Regards,
Deepak Kumar
03-11-2019 04:35 PM
03-12-2019 01:31 AM
03-12-2019 07:03 AM - edited 03-12-2019 07:08 AM
Hello
1) what ospf network types are r2-3 using between each other and it neighbours
2) is this all one backbone area orbare your using additional areas
3) are any these routes being redistributed into ospf?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide