09-22-2023 05:24 AM
How do I change the default path so that
R1 go to R3 via
R1 > R4 > R6 > R3
and R2 go to R3 via
R2 > R4 > R5 > R7 > R6 > R3
Solved! Go to Solution.
09-22-2023
06:25 AM
- last edited on
09-25-2023
01:29 AM
by
Translator
Hello @Rock Knot ,
you will need PBR Policy Based Routing to achieve what you want.
R1 and R2 both connect to R4 and from OSPF point of view only the destination counts so the best path to R6 is chosen regardless of the source . To take in account the source you need to use PBR that moves away from destination based routing and allows to make traffic sourced from R2 to be sent from R4 to R5.
PBR has to be applied inbound on R4 on R4 to R2 link.
Edit:
in addition
ip ospf cost
has to be increased on link between R4 and R5 to avoid to have to implement PBR on R5 too.
Hope to help
Giuseppe
09-22-2023
06:20 AM
- last edited on
09-25-2023
01:24 AM
by
Translator
Hello @Rock Knot,
You can change the cost metric on specific interfaces to influence OSPF path selection. Lower costs are preferred. This can be done using the
ip ospf cost
command in interface configuration mode.
09-22-2023
06:25 AM
- last edited on
09-25-2023
01:29 AM
by
Translator
Hello @Rock Knot ,
you will need PBR Policy Based Routing to achieve what you want.
R1 and R2 both connect to R4 and from OSPF point of view only the destination counts so the best path to R6 is chosen regardless of the source . To take in account the source you need to use PBR that moves away from destination based routing and allows to make traffic sourced from R2 to be sent from R4 to R5.
PBR has to be applied inbound on R4 on R4 to R2 link.
Edit:
in addition
ip ospf cost
has to be increased on link between R4 and R5 to avoid to have to implement PBR on R5 too.
Hope to help
Giuseppe
09-22-2023 08:44 AM
A possible alternative to what @Giuseppe Larosa describes might be to set up a tunnel between R2 and R5.
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