Configure OSPF on a Port

Configure OSPF parameters on a port so you can control OSPF behavior on the port.

Important

Important

When you enable OSPF on a port, the switch automatically creates an area 0.0.0.0, and advertises it on the specific port, by default. To avoid this behavior, you must manually configure the port into a properly configured area on the switch.

Before you begin

  • Enable OSPF globally .

  • Ensure that the port uses an IP address.

  • Ensure that the ospf_md5key.txt file is on the switch to use MD5 authentication.

  • You must know the network OSPF password to use password authentication.

Procedure

  1. In the Device Physical View tab, select a port.
  2. In the navigation pane, expand Configuration > Edit > Port.
  3. Select IP.
  4. Select the OSPF tab.
  5. Select Enable.
  6. Specify the hello interval.
  7. Specify the router dead interval.
  8. Designate a router priority.
  9. Configure a metric.
  10. If you want, select an authentication type.
  11. If you select simplePassword authentication, type a password in the AuthKey box.
  12. Configure the area ID.
  13. If desired, select the AdvertiseWhenDown check box.
  14. Select an interface type.
  15. Type a value in the PollInterval box.
  16. For IfMtuIgnore, select either enable or disable.

  17. For BfdEnable, select enable.
  18. Select Apply.

OSPF Field Descriptions

Use the data in the following table to use the OSPF tab.

Name

Description

Enable

Enables or disables OSPF routing on the specified port. The default is false.

HelloInterval

Specifies the length of time, in seconds, between the transmission of hello packets. This value must be the same for all routers attached to a common network. The default is 10 seconds.

After you change the hello interval values, you must save the configuration file, and then restart the switch. After the switch restarts, it restores the values and checks for consistency.

RtrDeadInterval

Specifies the interval used by adjacent routers to determine if the router was removed from the network. This interval must be identical on all routers on the subnet, and a minimum of four times the hello interval. To avoid interoperability issues, the RtrDeadInterval value for the OSPF interface needs to match with the RtrDeadInterval value for the OSPF virtual interface. The default is 40 seconds.

DesigRtrPriority

Specifies the priority of this port in multiaccess networks to use in the designated router election algorithm. The value 0 indicates the router is not eligible to become the designated router on this particular network. If a tie occurs, routers use their router ID as a tie breaker. The default is 1.

Metric

Specifies the metric for the type of service (TOS) on this port. The value of the TOS metric is (10^9 / interface speed). The default is 1.

  • FFFF—No route exists for this TOS.

  • IPCP links—Defaults to 0.

  • 0—Use the interface speed as the metric value when the state of the interface is up.

AuthType

Specifies the type of authentication required for the interface.

  • none—Specifies that no authentication required.

  • simple password—Specifies that all OSPF updates received by the interface must contain the authentication key specified in the interface AuthKey parameter.

  • MD5 authentication—Specifies that all OSPF updates received by the interface must contain the MD5 key.

  • sha1—Specifies secure hash algorithm (SHA-1), which is a cryptographic hash function that produces a 160-bit hash value, usually given in a hexadecimal number, 40 digits long. You can only access and enable the SHA-1 authentication type after you enable enhanced secure mode.

  • sha-2—Specifies SHA-2, which offers the hash function SHA-256.

    Note:

    sha-2, an update of SHA-1, can offer six hash functions that include SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA 512/256, with hash values that are 224, 256, 384, or 512 bits. However, the current release supports only SHA-256.

AuthKey

Specifies the key (up to 8 characters) when you specify simple password authentication in the port AuthType variable.

AreaId

Specifies the OSPF area name in dotted-decimal format.

The area name is not related to an IP address. You can use a suitable value for the OSPF area name (for example, 1.1.1.1 or 200.200.200.200).

AdvertiseWhenDown

Advertises the network on this port as up, even if the port is down. The default is false.

After you configure a port with no link and enable AdvertiseWhenDown, it does not advertise the route until the port is active. Then, OSPF advertises the route even if the link is down. To disable advertising based on link-states, disable AdvertiseWhenDown.

IfType

Specifies the type of OSPF interface (broadcast, NBMA, or passive).

Before you change an OSPF interface type, you must first disable the interface. If the interface is an NBMA interface, you must also delete all configured neighbors.

PollInterval

Specifies the length of time, in seconds, between hello packets sent to an inactive OSPF router. Neighbors must have the same poll interval.

IfMtuIgnore

Specifies whether the interface ignores the global maximum transmission unit (MTU) configuration. To allow the switch to accept OSPF database description (DD) packets with a different MTU size, enable MtuIgnore. The interface drops incoming OSPF DD packets if their MTU is greater than 1500 bytes.

BfdEnable

Enable Bidirectional Forwarding Detection (BFD) for OSPF.