metric (Protocols IS-IS)
Syntax
metric metric;
Hierarchy Level
[edit logical-systems logical-system-name protocols isis interface interface-name level level-number], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols isis interface interface-name level level-number], [edit protocols isis interface interface-name level level-number], [edit routing-instances routing-instance-name protocols isis interface interface-name level level-number]
Description
Specify the IPv4 unicast topology metric value for the level. The IS-IS interface metrics for the IPv6 topology can be configured independently of the IPv4 metrics.
All IS-IS routes have a cost, which is a routing metric that is used in the IS-IS link-state calculation. The cost is an arbitrary, dimensionless integer that can be from 1 through 63, or from 1 through 16,777,215 (224 – 1) if you are using wide metrics.
Similar to other routing protocols, IS-IS provides a way of exporting routes from the routing table into the IS-IS network. When a route is exported into the IS-IS network without a specified metric, IS-IS uses default metric values for the route, depending on the protocol that was used to learn the route.
Table 1 depicts IS-IS route export metric default values.
Protocol Used for Learning the Route |
Default Metric Value |
---|---|
Direct |
10 |
Static |
Same as reported by the protocol used for exporting the route |
Aggregate |
10 |
Generate |
10 |
RIP |
Same as reported by the protocol used for exporting the route |
OSPF |
Same as reported by the protocol used for exporting the route |
BGP |
10 |
The default metric values behavior can be customized by using routing policies.
Options
metric—Metric value.
Range: 1 through 63, or 1 through 16,777,215 (if you have configured wide metrics)
Default: 10 (for all interfaces except lo0), 0 (for the lo0 interface)
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.