- metric metric;
- [edit logical-systems logical-system-name protocols (ospf | ospf3) area area-id interface interface-name],
- [edit logical-systems logical-system-name protocols ospf area area-id interface interface-name topology (ipv4-multicast | name)],
- [edit logical-systems logical-system-name protocols ospf3 realm (ipv4-unicast
| ipv4-multicast | ipv6-multicast) area area-id interface interface-name],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
(ospf | ospf3) area area-id interface interface-name],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
ospf area area-id sham-link-remote],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
ospf area area-id interface interface-name topology (ipv4-multicast | name)],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
ospf3 realm (ipv4-unicast | ipv4-multicast
| ipv6-multicast) area area-id interface interface-name],
- [edit protocols (ospf | ospf3) area area-id interface interface-name],
- [edit protocols ospf area area-id interface interface-name topology (ipv4-multicast | name)],
- [edit protocols ospf3 realm (ipv4-unicast | ipv4-multicast | ipv6-multicast) area area-id interface interface-name],
- [edit routing-instances routing-instance-name protocols (ospf | ospf3) area area-id interface interface-name],
- [edit routing-instances routing-instance-name protocols ospf area area-id sham-link-remote],
- [edit routing-instances routing-instance-name protocols ospf area area-id interface interface-name topology (ipv4-multicast | name)],
- [edit routing-instances routing-instance-name protocols ospf3 realm (ipv4-unicast
| ipv4-multicast | ipv6-multicast) area area-id interface interface-name]
Statement introduced before JUNOS Release 7.4.
Support for Multitopology Routing introduced in JUNOS Release 9.0.
Support for the realm statement introduced in JUNOS Release 9.2.
Specify the cost of an OSPF interface. The cost is a routing metric that is used in the link-state calculation.
To set the cost of routes exported into OSPF, configure the appropriate routing policy.
metric—Cost of the route.
See Modifying the Interface Metric, Configuring a Sham Link and Configuring Interface Properties for MT-OSPF.
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.