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

Using Routing Policy to Set a Preference

Define a routing policy which matches routes from specific next hops that are being advertised to specific neighbors and which sets a preference. If a route does not match the first term, it is evaluated by the second term. If it still does not match, the next routing policy, if configured, is evaluated; then the accept or reject action specified by the default policy is taken. (For more information about the default routing policies, see Default Routing Policies and Actions.)

[edit]
policy-options {
policy-statement set-preference {
term term1 {
from {
next-hop [ 10.0.0.1 10.0.0.2 ];
}
to {
neighbor 192.168.1.1;
}
then {
preference 10;
}
}
term term2 {
from {
next-hop 10.0.0.3;
}
to {
neighbor 192.168.1.1;
}
then {
preference 15;
}
}
}
}

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