Specify the Route Metric
To associate a metric value with an IPv4 route, include the
metricstatement at the[edit routing-options static (defaults | route)]hierarchy level (for routing instances, include the statement at the[edit routing-instancesrouting-instance-namerouting-options static (defaults | route)]hierarchy level):[edit routing-options static (defaults | route)]metricmetric<typetype>;To associate a metric value with an IPv6 route, include the
metricstatement at the[edit routing-options rib inet6.0 static (defaults | route)]hierarchy level:[edit routing-options rib inet6.0 static (defaults | route)]metricmetric<typetype>;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.