Specify the Route Metric
To associate a metric value with an IPv4 route, include the
metricstatement:[edit routing-options static (defaults | route)]metricmetric<typetype>;For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.
To associate a metric value with an IPv6 route, include the
metricstatement:[edit routing-options rib inet6.0 static (defaults | route)]metricmetric<typetype>;For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.
In the
typeoption, you can specify the type of route. For OSPF, 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 will override the route metric.