SRX Services Gateway
Reply
Contributor
paulkil
Posts: 127
Registered: ‎11-05-2010
0
Accepted Solution

redistribute static into ospf

Hi,

I used the IOS to Junos translator to implement redistrubtion of static routes into ospf, I can understand the first part but the "term" syntax has me stumped. Can someone explain the lat two terms:

 

set protocols ospf export ospf-redistributes policy-options policy-statement ospf-redistributes term static from protocol static
set protocols ospf export ospf-redistributes policy-options policy-statement ospf-redistributes term static then accept
set protocols ospf export ospf-redistributes policy-options policy-statement ospf-redistributes term from-ospf from protocol ospf
set protocols ospf export ospf-redistributes policy-options policy-statement ospf-redistributes term from-ospf then next policy    
set protocols ospf export ospf-redistributes policy-options policy-statement ospf-redistributes term ios-implicit-deny then reject

     


 

 

What does the "from-ospf" term do?

 

What does the "ios-implicit-deny" term do?

 

Are they nessesary?

 

Thanks,

 

Paul

Contributor
mio.othman@gmail.com
Posts: 16
Registered: ‎05-12-2011

Re: redistribute static into OSPF

Simply if you want to distribute static routes to OSPF :

 

1- set a new routing policy "static-to-OSPF"

          

set policy-options policy-statement static-to-OSPF term term1 from protocol static

set policy-options policy-statement static-to-OSPF term term1 then accept

 

2- apply this policy on the OSPF protocl's hierarchy 

 

set protocols OSPF export static-to-OSPF

 

3- commit the changes

 

commit

Contributor
paulkil
Posts: 127
Registered: ‎11-05-2010
0

Re: redistribute static into OSPF

Thanks Mio,

makes sense. So would it be similar for connected subnets?

 

I've written the following;

 

set protocols ospf export redistribute-into-OSPF
set policy-options policy-statement redistribute-into-OSPF term direct from protocol direct
set policy-options policy-statement redistribute-into-OSPF term direct then accept
set policy-options policy-statement redistribute-into-OSPF term static from protocol static
set policy-options policy-statement redistribute-into-OSPF term static then accept

 

Thanks,

 

Paul

 

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.