[an error occurred while processing this directive][an error occurred while processing this directive]

metric (Aggregate, Generated, or Static Route)


(metric | metric2 | metric3 | metric4) metric <type type>;

Hierarchy Level

[edit logical-systems logical-system-name routing-options (aggregate | generate | static) (defaults | route)],[edit routing-options (aggregate | generate | static) (defaults | route)]

Release Information

Statement introduced before JUNOS Release 7.4.

Statement introduced in JUNOS Release 9.0 for EX Series switches.


Metric value for an aggregate, generated, or static route. You can specify up to four metric values, starting with metric (for the first metric value) and continuing with metric2, metric3, and metric4.


metric—Metric value.

Range: 0 through 4,294,967,295 (232 – 1)

type type—(Optional) Type of route.

Range: 1 through 16

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Published: 2010-04-14

[an error occurred while processing this directive]