Hi All,
I am having an issue comprehending something regarding advertising static routes into OSPF with regards to policy direction.
R1-.1--------OSPF--------.2-R2
On R1 I have static route 192.168.1.0/24, and OSPF routes 10.10.10.0/30. Task is "Advertise static route 192.168.1.0/24 on R1 into OSPF."
R1: (Base config for this example)
set routing-options static route 192.168.1.0/24 next-hop 10.10.10.2
set protocols ospf area 0.0.0.0 interface em2.0
set policy-options policy-statement STATICROUTE term ADVERTISE from protocol static
set policy-options policy-statement STATICROUTE term ADVERTISE from route-filter 192.168.1.0/24
set policy-options policy-statement STATICROUTE term ADVERTISE then accept
Now, logically, I would think that if I am being asked to advertise static route on R1 INTO OSPF on R1, then I should configure the policy in the IMPORT direction. However, I am being told that this would be configured as an export policy.
set protocols ospf export STATICROUTE
Why is this the correct direction? Aren't export policies supposed to affect what the local rotuer (R1) sends to the neighbor router (R2)? I don't see where we are being asked to export the static route to R2. Only to advertise the static route into OSPF on R1.
Any help is appreciated.