cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
443
Views
5
Helpful
5
Replies

path selection in ospf

The_guroo_2
Level 2
Level 2

if i have two wan routers connected to one switch....WAN router 1 shd be primary and wan router 2 shd be secondry....i have two vlans config on switch 20.0 and 30.0 for both the router lan (unfortunatly design is that both are on dif subnet) now my requirment is that if a packet comes to swicth it shd be routed to first router and if first router fails it shd route to second router.....and i have to use ospf ......how we do it is it cost or metric and what are the commands......thanks guys

5 Replies 5

guruprasadr
Level 7
Level 7

HI,

Assuming you Network as WAN Environment now,

WAN Router connected to Service Provider1 and Servier Provider2.

Last-mile is configured with OSPF as the Routing Protocol. The Remote prefixes are received via both the Service Providers cloud.

The Optimal way is to manipulate with the OSPF Cost from the CE WAN Router point.

Best Regards,

Guru Prasad R

Thanks Guru

i am getting a default route from a same service provider so its connected to same service provider....now can we start from lan environment hjow i will config cost on switches keeping in mind that they are using vlan.....thanks

Guroo ...this issues has been opened up yesterday

Some solutions were given to you but you dropped it in the air.

Anyway, if you are so stubborn in using different subnets on the lan side of wan routers here is what you need to do.

WAN_A

router ospf 1

default-information originate metric 100

WAN_B

router ospf 1

default-information originate metric 110

This way.. WAN_A will be the prefered one.

Thanks for your kind reply.....and thanks for your help but dude just wanna add something i am not stuburn i have told you 5 times that , that is design requirment....and if u see my very first post i have already mentioned that if it was a same subnet that i would have gone for HSRP....but i guess you are not getting the point and keep insisting on somehting which i dont want.....so its not me who decides design and subnets...so i have left withno choice but to ask for solution....and i guess i got it.....

cheers then.glad it helped

Review Cisco Networking products for a $25 gift card