Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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]

    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 12.1 for the QFX Series.

    Description

    Specify the metric value for the level.

    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.

    Table 1: Default Metric Values for Routes Exported into IS-IS

    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.

    Published: 2013-08-15