11-04-2011 01:47 AM
I thought this would be easy but it's not working :-(
All I want to do is redistribute a static route as follows into ospf:
set routing-options static route 0.0.0.0/0 next-hop 62.x.x.x
Here's my ospf config:
set protocols ospf area 0.0.0.0 interface reth1.0
set protocols ospf export ospf-redistribute
set policy-options policy-statement ospf-redistribute term direct from protocol direct
set policy-options policy-statement ospf-redistribute term direct then accept
set policy-options policy-statement ospf-redistribute term static from protocol static
set policy-options policy-statement ospf-redistribute term static then accept
set security zones security-zone trust host-inbound-traffic protocols ospf
Am I missing anything?
Solved! Go to Solution.
11-04-2011 08:42 AM
your config seems to fine. How do your verify it's not working ? Please check in order:
11-06-2011 04:56 AM
here are the outputs you requested:
pkil@f1-jx1> show route terse 0/0 exact
pkil@f1-jx1> show ospf database external lsa-id 0.0.0.0 detail
No results for both of these>
pkil@f1-jx1> show ospf database
for the one there is quite a verbose output but no mention of the 0.0.0.0/0 route.
pkil@f1-jx1> show route forwarding-table
Routing table: default.inet
Destination Type RtRef Next hop Type Index NhRef Netif
default perm 0 rjct 36 2
0.0.0.0/32 perm 0 dscd 34 1
10.0.0.0/8 user 0 a8:b1:d4:3c:b4:47 ucst 554 375 reth1.0
Does this mean anything?
11-07-2011 03:09 AM
your policy redistributes direct+static routes from RIB to OSPF. There is no 0.0.0.0/0 static route in RIB. What about 62.x.x.x, is it direct/interface route ? Without active route to 62.x.x.x, the 'static route 0.0.0.0/0' will not work.
11-07-2011 04:19 AM
ok, I get it.
At the moment the next hop in the static route is down, it will be up soon when we cut over networks. This explains the lack of default route advertising.
Thanks for your responses, should have realise this myself.