Route Policy Command Reference
476 7705 SAR OS Router Configuration Guide
metric
Syntax metric {add | subtract | set} metric
metric set [igp | metric]
no metric
Context config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Description In a BGP import or export policy, this command assigns a Multi-Exit Discriminator (MED) value to
routes matched by the policy statement entry. The MED value may be set to a fixed value (overriding
the received value), set to the routing table cost of the route that is used to resolve the next hop of the
BGP route, or modified by adding or subtracting a fixed value offset.
If no metric is specified, the configured metric is used. If neither is defined, no metric will be
advertised.
The value assigned for the metric by the route policy is controlled by the required keywords.
The no form of the command removes the MED value from the route policy statement. If a MED value
is configured for a BGP peer using the med-out command, that value is used (see 7705 SAR OS
Routing Protocols Guide, “BGP Command Reference”). If no MED is configured, no MED value is
advertised.
Default no metric
Parameters add — the specified metric is added to any existing metric. If the result of the addition results in
a number greater than 4294967295, the value 4294967295 is used.
subtract — the specified metric is subtracted from any existing metric. If the result of the
subtraction results in a number less than 0, the value of 0 is used.
set — the specified metric replaces any existing metric
igp-cost — the MED is set to the routing table cost of the route that is used to resolve the next hop
of the BGP route
metric — the metric modifier expressed as a decimal integer
Values 0 to 4294967295
next-hop
Syntax next-hop ip-address
no next-hop
Context config>router>policy-options>policy-statement>default-action
config>router>policy-options>policy-statement>entry>action
Description This command assigns the specified next-hop IP address to routes matching the policy statement entry.
If a next-hop IP address is not specified, the next-hop attribute is not changed.