Home / Juniper / Default Routing Policy in Junos

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 15.15.15.15/32 route through OSPF from Tokyo. In fact, the default export policy in Tokyo is to advertise its direct routes, one of which is 15.15.15.15/32.

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

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

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

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

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

Summary
Article Name
Default Routing Policy in Junos
Author
Top Courses in IT & Software 300x250

Leave a Reply

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

*

Adsense black background: