[Contents] [Prev] [Next] [Index] [Report an Error]


Specify the Route Metric

To associate a metric value with an IPv4 route, include the metric statement at the [edit routing-options static (defaults | route)] hierarchy level (for routing instances, include the statement at the [edit routing-instances routing-instance-name routing-options static (defaults | route)] hierarchy level):

[edit routing-options static (defaults | route)] 
metric metric <type type>; 

To associate a metric value with an IPv6 route, include the metric statement at the [edit routing-options rib inet6.0 static (defaults | route)] hierarchy level:

[edit routing-options rib inet6.0 static (defaults | route)] 
metric metric <type type>; 

In the type option, 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.


[Contents] [Prev] [Next] [Index] [Report an Error]