Skip to content

Default Routing Policy in Junos

import = receive into routing table
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 route through OSPF from Tokyo. In fact, the default export policy in Tokyo is to advertise its direct routes, one of which is

The default export policy on Dubai is to export all direct routes.

Then MontReal learned from Dubai, because the default import policy is to accept any OSPF routes.

Wait a minute, 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
other routers.

“As well as the readvertisement of LSAs received from other routers”. This is the explanation.
So Dubai learned te route from Tokyo, then reflooded it (as an LSA) to MontReal. And the default policy couldn’t stop that :)

So in the figure, 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

Published inHome Lab

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

copyright 2020