[Contents] [Prev] [Next] [Index] [Report an Error]

Example: Configuring a Route Filter Policy to Specify Priority for Prefixes Learned Through OSPF

Configure an import routing policy, ospf-import, that enables you to specify a priority for specific prefixes learned through OSPF. Routes associated with these prefixes are installed in the routing table in the order of the prefixes’ specified priority. Routes matching 200.3.0.0/16 orlonger are installed first because they have a priority of high. Routes matching 200.2.0.0/16 orlonger are installed next because they have a priority of medium. Routes matching 200.1.0.0/16 orlonger are installed last because they have a priority of low. To apply the import policy to OSPF, include the import ospf-import statement at the [edit protocols (ospf | ospf3)] hierarchy level. For a complete list of hierarchy levels at which the import statement can be configured, see the configuration statement summary for that statement.

policy-options {
policy-statement ospf-import {
term t1 {
from {
route-filter 200.1.0.0/16 orlonger;
}
then {
priority low;
accept;
}
}
term t2 {
from {
route-filter 200.2.0.0/16 orlonger;
}
then {
priority medium {
accept;
}
}
tern t3 {
from {
route-filter 200.3.0.0/16 orlonger;
}
then {
priority high;
accept;
}
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]