Supported Platforms
Related Documentation
- ACX, M, MX, T Series
- Example: Summarizing Static Routes Through Route Aggregation
- Example: Conditionally Generating Static Routes
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- aggregate
- generate
- ACX, EX, M, MX, PTX, SRX, T Series
- static
metric (Aggregate, Generated, or Static Route)
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 11.3 for the QFX Series.
Statement introduced in Junos OS Release 12.3 for ACX Series routers.
Description
Specify the 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.
Options
metric—Metric value.
Range: 0 through 4,294,967,295 (232 – 1)
type type—(Optional) Type of route.
When routes are exported to OSPF, type 1 routes are advertised in type 1 externals, and routes of any other type are advertised in type 2 externals. Note that if a qualified-next-hop metric value is configured, this value overrides the route metric.
Range: 1 through 16
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Related Documentation
- ACX, M, MX, T Series
- Example: Summarizing Static Routes Through Route Aggregation
- Example: Conditionally Generating Static Routes
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- aggregate
- generate
- ACX, EX, M, MX, PTX, SRX, T Series
- static
Published: 2013-08-15
Supported Platforms
Related Documentation
- ACX, M, MX, T Series
- Example: Summarizing Static Routes Through Route Aggregation
- Example: Conditionally Generating Static Routes
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- aggregate
- generate
- ACX, EX, M, MX, PTX, SRX, T Series
- static