export = send to neighbors, or, redistribute (or not).OSPF
Default import policy: accept all OSPF routes from neighbors
Default export policy: advertise all direct routes (including loopback interfaces).Here’s an example to illustrate it.
Dubai learned the 18.104.22.168/32 route through OSPF from Tokyo. In fact, the default export policy in Tokyo is to advertise its direct routes, one of which is 22.214.171.124/32.
The default export policy on Dubai is to export all direct routes.
Wait a minute, 126.96.36.199/32 is not a direct route in Dubai. So how does Dubai advertise it to MontReal?
I found the answer to it in JUNOS Enterprise Routing book. It says :
“The default LS export policy is to reject everything. LSA flooding is not affected by
export policy, and it is used to convey routing in an indirect manner in an LS proto-
col. The result of this flooding is the advertisement of local interfaces that are
enabled to run OSPF, as well as the readvertisement (flooding) of LSAs received from
“As well as the readvertisement of LSAs received from other routers”. This is the explanation.
So Dubai learned te 188.8.131.52/32 route from Tokyo, then reflooded it (as an LSA) to MontReal. And the default policy couldn’t stop that :)
So in the figure, 184.108.40.206/32 along with other routes, are flooded to MontReal despite the default policy.
To sum up:
OSPF inbound behaviour: accept all OSPF routes from neighbors
OSPF outbound behaviour: advertise direct routes(=default policy)+advertise OSPF-learned routes