Routing
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 11
Registered: ‎06-17-2014
0 Kudos
Accepted Solution

Export OSPF route in type-1

Hello,

I have a QFX-1 which is learning route and 0.0.0.0/0 from OSPF 

I have connected a QFX-2 which is learning the route from QFX-1and 0.0.0.0/0 from OSPF too. 

The route are in OSPF TYPE-2

How can we export route from QFX-1 to QFX-2 in OSPF type-1 ? 

I want to change the COST.

Best regards, 

Super Contributor
Posts: 119
Registered: ‎12-10-2013
0 Kudos

Re: Export OSPF route in type-1

policy-options {
policy-statement my-ospf-export-policy {
term static-and-direct-as-type-1 {
from protocol [ static direct ];
then {
external {
type 1;
}
accept;
}
}
}
}

regards

 

alexander

Contributor
Posts: 11
Registered: ‎06-17-2014
0 Kudos

Re: Export OSPF route in type-1

Hi,

I always try this solution but it doesn't work:

show policy-options policy-statement ospfbgp
term default-gw {
from {
route-filter 0.0.0.0/0 exact;
}
then {
metric 200;
external {
type 1;
}
}
}

 

export ospfbgp;

 

regards, 

Distinguished Expert
Posts: 2,183
Registered: ‎08-21-2009
0 Kudos

Re: Export OSPF route in type-1

Hello,

 


maxx wrote:

Hello,

I have a QFX-1 which is learning route and 0.0.0.0/0 from OSPF 

I have connected a QFX-2 which is learning the route from QFX-1and 0.0.0.0/0 from OSPF too. 

The route are in OSPF TYPE-2

How can we export route from QFX-1 to QFX-2 in OSPF type-1 ? 

I want to change the COST.

Best regards, 


If QFX-1 is learning 0/0 FROM OSPF as External Type-2 and You want to change it to External Type-1, You have to do it on ASBR that originates this route. Not on the QFX-1 that receives this route from OSPF.

OR

Use separate OSPF processes A.K.A "no-forwarding" instances in JUNOS.

HTH

Thx

Alex 

___________________________________
Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Highlighted
Contributor
Posts: 11
Registered: ‎06-17-2014
0 Kudos

Re: Export OSPF route in type-1

Yes !

I don't why i don't think about it before ...