cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
800
Views
0
Helpful
7
Replies

Default gw OSPF

magedis0383
Level 1
Level 1

Hello,

 

I have a little problem with OSPF and default gw. 

My 2 routeur R1/R2 receive the fullview (BGP) without default route.

I generate a default-route in the OSPF with R1 and R2

 

QFX1 and QFX2 receive the default route (0.0.0.0/0) 

I want to QFX1 to use R1 as default gateway and R2 as backup gateway

and for QFX2 i want to use R2 as default gateway and R1 as backup gateway. 

 

Must i use cost on the link ? 

 

ospf-pb.png

Thks !

7 Replies 7

Pawan Raut
Level 4
Level 4

OSPF use cost to select best route.

 

You can manipulate the OSPF cost using command "ip ospf cost <cost>".

 

Set lower cost on interface connecting to router for which path should preferred as primary and Set higher cost on interface connecting to router for which path should as backup.

 

here on R1 set "ip ospf cost 10" on interface  connecting to QFX1 as primary and "ip ospf cost 20" on interface  connecting to QFX2 as backup.

 

Similarly here on R2 set "ip ospf cost 10" on interface connecting to QFX2 as primary and "ip ospf cost 20" on interface connecting to QFX1 as backup.

 

You can also do this same changing the Bandwidth of interface resulting changing in cost.

 

Kindly rate for helpful post.

 

Regards,

Pawan

Hello

you don’t have to use cost in this case

just simply advertise your default from the primary with a metric-type 1 

 

Res

paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi Paul,

 

This will not sastify the original requirement, which is that both GW need to be the primary GW for a different internal router.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Hello Harold

You are Correct, I can only apologies to OP , Mis-read the post entirely, it wouldn't work due to each QFX requiring to go its alternate path.

 

Costing as stated would work and also i guess a non-backbone area between both QFX's and their related backup links still though with advertised type 1 default routes.

 

res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi,

Can i use cost on the QFX ? or i need to use it on R1/R2 ?

Best regards,

You can use cost on QFX only.

However, it would be better to have symmetrical cost on both sides of the link.

Hello

Has I have stated you could also do the following:

 

Area 0

QFX1 -R1

QFX2 -R2

 

Area1

QFX1 -R2

QFX2 -R1

QFX1 -QFX2

 

Advertise  the default routes as metric-type 1

 

res

paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card