Showing results for 
Search instead for 
Do you mean 
Posts: 7
Registered: ‎10-20-2009
0 Kudos

OSPF routing policy


I'm trying to define an import routing policy, in OSPF. This policy must set a metric on tagged received routes.

policy-statement TEST {
 from {
 protocol ospf;
 tag 300;
then  {
 metric 200;


So, I would like to adjust the metrics only for the local router. I thought the "import" keyword affects routes when they are inserted from OSPF table to routing table.

Note that my routes are "external" (they come from a redistribution on the other router), and that I work inside a 'virtual-router' routing instance.


Then, I call this policy in import, inside my ospf configuration.

But the metric doesn't change in my routing table. However, I still see the tag. Any idea? Maybe an upgrade?

(I run JunOS 9.5R3.7 on J6350).


Distinguished Expert
Posts: 2,238
Registered: ‎08-21-2009
0 Kudos

Re: OSPF routing policy

Hi there,

I wonder if you reset your OSPF adjacency after configuring import policy?




Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements


Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Posts: 7
Registered: ‎10-20-2009
0 Kudos

Re: OSPF routing policy



Yes, I've restarted the routing process.