[j-nsp] ospf and policy import/export

Piotr piotr.1234 at interia.pl
Thu Jul 5 09:43:17 EDT 2012


Hello,

I have routers in area2 and area0, srx 11.4R1.6
.
R1-area1---R2--area0

I try to filter out or change metrics for some prefixes on ABR (R2), but 
it didn't work. I try on both direction: import or export but nothing 
change. Metrics are the same, all prefixes available in routing table..

What i doing wrong ?

br
Pet


i made config according this:

http://www.juniper.net/techpubs/en_US/junos12.1/topics/example/ospf-export-network-summary-routing-policy-configuring.html

http://www.juniper.net/techpubs/en_US/junos12.1/topics/example/ospf-import-network-summary-routing-policy-configuring.html



R2:

# show protocols ospf
area 0.0.0.0 {
     interface ge-0/0/5 {

     }
     interface ge-0/0/4.0;
     interface lo0.0 {
         passive;
     }
}
area 0.0.0.1 {
     network-summary-export ospf-area-2-export;
     interface ge-0/0/6.1 {
         metric 300;
     }
}


show policy-options policy-statement ospf-area-2-export
term term1 {
     from {
         route-filter 10.27.1.120/30 prefix-length-range /30-/30;
     }
     then {
         metric 50;
         accept;
     }
}
term term2 {
     from {
         route-filter 6.6.6.6/32 exact;
     }
     then {
         metric 60;
         accept;
     }
}


More information about the juniper-nsp mailing list