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

Using Routing Policy to Define a MED Metric

To use routing policy to define a MED metric to advertise, define the routing policy by including the policy-statement statement at the [edit policy-options] hierarchy level, and then apply the filter by including the import and export statements when configuring BGP.

When defining the routing policy filter, include an action that specifies the desired metric value:

policy-statement policy-name {
term term-name {
from {
match-conditions;
route-filter destination-prefix match-type <actions>;
prefix-list name;
}
to {
match-conditions;
}
then actions;
}
}

For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.

For information about defining routing policy, see the JUNOS Policy Framework Configuration Guide. For information about applying filters in BGP, see Configuring BGP Routing Policy.


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