cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
925
Views
0
Helpful
2
Replies

OSPF Path Selection

rodrigo.cisco
Level 4
Level 4

Hi guys,

I have some doubts about how can I configure the OSPF on routers A,B,C and D to force they to use the path through routers A->C or B->A->C for packets from/to route 10.0.1.0/24 and path through routers B->D or A->B->D for packets from/to route 10.0.2.0/24 but keeping the alternate path in case of link problems. I will apreciate any help or just listen your option.


Below a draft of the topology:

ospf.jpg

Regards,

Rodrigo Alves

2 Replies 2

Ganesh Hariharan
VIP Alumni
VIP Alumni

OSPF uses path cost as its basic routing metric, which was defined by the standard not to equate to any standard value such as speed,In practice, it is determined by the speed (bandwidth) of the interface addressing the given route, although that tends to need network-specific scaling factors now that links faster than 100 Mbit/s are common.

Cisco uses a metric like 10^8/bandwidth. So, a 100Mbit/s link will have a cost of 1, a 10Mbit/s a cost of 10 and so on. But for links faster than 100Mbit/s, the cost would be <1.

IP OSPF Cost under interface configuration

This command is used to manually set the OSPF link cost. This is typically done for traffic engineering purposes to modify what link OSPF will prefer. Lower is better.

Hope to Help !!

Ganesh.H

Remember to rate the helpful post

Ganesh,

I understand your point of view, but I have to say that this solution can't help me. For instance, If I worse the path between routers A and C, all of my traffic will use the path between routers B and D. I would like to do something like PBR but using some OSPF policy to change de metric (cost) based on the source network.

I hope I have clarify a little more.

Anyway thank you in advance for you help!