Configure OSPF Interface Metrics

Configure the metrics associated with the peer layer interface to control OSPF behavior. For finer control over port-specific metric speed, you can specify the metric speed when you configure OSPF on a port.

Before you begin

  • Enable OSPF globally.

  • Ensure that the interface uses an IP address.

  • Change the VRF instance as required to configure OSPF on a specific VRF instance. The VRF must have an RP trigger of OSPF. Not all parameters are configurable on non-default VRFs.

Procedure

  1. In the navigation pane, expand Configuration > IP.
  2. Select OSPF.
  3. Select the If Metrics tab.
  4. Double-click the value cell, and type a new value.
  5. Select Apply.

    When you enable a port for OSPF routing, the default metric in the port tab is 0. A value of 0 means that the port uses the default metrics for port types that you specify on the OSPF General tab.

If Metrics Field Descriptions

Use the data in the following table to use the If Metrics tab.

Name

Description

IP Address

Specifies the IP address of the device used to represent a point of attachment in a TCP/IP internetwork.

AddressLessIf

Indicates addressed and addressless interfaces. This variable is 0 on interfaces with IP addresses and equals ifIndex for interfaces that have no IP address.

TOS

Specifies the type of service (TOS). The TOS is a mapping to the IP type of service flags as defined in the IP forwarding table management information base (MIB).

Value

Indicates the metric from the OSPF router to a network in the range.

Status

Specifies the status of the interface as active or not active. This variable is read-only.