thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Routing & Switching · Intermediate

Junos Routing Policy

Junos import/export policy-statements whose terms use from (match) and then (action) clauses to control routes in and out of routing tables.

Definition

Import policies filter routes going into the routing table from a protocol; export policies control what is sent from the routing table to a protocol (and are how redistribution is done). Terms are evaluated in order, and if no term takes a terminating action, evaluation continues to the next policy in the chain and finally the protocol's default policy.

Example

set policy-options policy-statement EXPORT-STATIC term 1 from protocol static ; then accept

Exam tip

Each protocol has a default policy, e.g. BGP accepts and advertises active BGP routes; OSPF exports nothing by default.

Related terms