Configure an OSPF interface

You can configure one or more OSPF interfaces, which are interfaces that are connected to OSPF areas over point-to-point or broadcast connections.

To configure an OSPF interface:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Routing > OSPF > Advanced > Interface Configuration.

    The OSPF Interface Configuration page displays.

  3. Select whether to display physical interfaces, VLANs, or both by clicking one of the following links above the table heading:
    • 1 or Unit ID for a stacked switch:

      • 1: If no switch stack is configured, the physical interfaces for the switch are displayed.
      • Unit ID for a stacked switch: If a switch stack is configured, the physical interfaces for the switch with the selected stack unit ID are displayed.
    • VLANS: Only VLANs are displayed.

    • All: Both physical interfaces and VLANs are displayed, or for a switch stack, both physical interfaces and VLANs on all switches are displayed.

  4. Select one or more interfaces or VLANs by taking one of the following actions:
    • To configure a single interface or VLAN, select the check box associated with the interface or VLAN, or type the interface or VLAN number in the Go To Interface field and click the Go button.

    • To configure multiple interfaces or VLANs with the same settings, select the check box associated with each interface or VLAN.

  5. In the Area ID field, enter an OSPF area ID.

    An area ID is a 32-bit integer in dotted-decimal format that identifies the area to which a switch interface connects.

  6. Select an Admin Mode radio button:
    • Enable: OSPF is enabled for the interface.

    • Disable: OSPF is disabled for the interface. This is the default setting.

    OSPF can become operational on the interface only if the interface is configured with an IP address and subnet mask (see Configure IPv4 routing interfaces).

    You can configure the OSPF settings without enabling OSPF on the interface, but the change does not take effect until you enable OSPF on the interface. The following fields display only if you enable OSPF on the interface:

    State, Designated Router, Backup Designated Router, Number of Link Events, Local Link LSAs, and Local Link LSA Checksum.

  7. In the Router Priority field, enter the OSPF priority for the interface.

    This is a number from 0 to 255. The default is 1, which is the highest router priority. A value of 0 indicates that the router is not eligible to become the designated router on this network.

  8. In the Retransmit Interval field, enter the number of seconds between link-state advertisements for adjacencies, that is, for neighboring devices that form an OSPF adjacency with the interface.
    The interval is also used when retransmitting database descriptions and link-state request packets. The value for the interval ranges from 1 to 3600 seconds (1 hour). The default is 5 seconds.
  9. In the Hello Interval field, enter the OSPF hello interval for the interface.
    This interval must be the same for all routers and switches in the network. The interval ranges from 1 to 65,535 seconds. The default is 10 seconds.
  10. In the Dead Interval field, enter the number of seconds that the interface waits for a neighbor’s hello packets before determining that the neighbor is down.

    This interval must be the same for all routers and switches in the network. This interval must be a multiple of the hello interval. The interval ranges from 1 to 65,535. The default is 40 seconds. (The default hello interval is 10 seconds.)

  11. In the Iftransit Delay Interval field, enter the estimated number of seconds required to transmit a link state update packet over the interface.

    The interval range from 1 to 3600 seconds (1 hour). The default is 1 second.

  12. From the In the MTU Ignore menu, select if OSPF MTU mismatch detection is disabled:
    • Enable: OSPF MTU mismatch detection is disabled on incoming database description packets. The default value is Disable (MTU mismatch detection is enabled).

    • Disable: OSPF MTU mismatch detection is enabled on incoming database description packets. This is the default setting.

  13. From the Passive Mode menu, select if the interface does not form an adjacency:
    • Enable: The interface is passive to prevent OSPF from forming an adjacency. OSPF advertises networks attached to passive interfaces as stub networks.

    • Disable: The interface is not passive and OSPF can form an adjacency. This is the default setting.

  14. From the Network Type menu, select the type of OSPF network for the interface:
    • Broadcast: The interface can connect to multiple OSPF routers. This is the default setting.

    • Point to point: The interface can connect to one other OSPF router.

  15. From the Authentication Type menu, select if communication over the interface is authenticated and encrypted:
    • None: The interface does not use authentication and encryption. This is the default settings.

    • Simple: The interface prompts you to enter an authentication key. This key is included (non-encrypted) in the OSPF header of all packets sent on the network. All routers and switches on the network must be configured with the same key.

    • Encrypt: The interface prompts you to enter an authentication key and an authentication ID. Encryption uses the MD5 Message-Digest algorithm. All routers and switches on the network must be configured with the same key and ID.

  16. In the Authentication Key field, enter the OSPF authentication key for the interface.

    If you select Simple from the Authentication Type menu, you can set a key with maximum of 8 octets. If you select Encrypt from the Authentication Type menu, you can set a key with maximum of 16 octets.

  17. In the Authentication Key ID field, enter the ID that must be used for authentication on the interface.

    If you select Encrypt from the Authentication Type menu, you must set an ID, which is a number between 0 and 255.

  18. In the Metric Cost field, enter the value that OSPF uses to compute the shortest paths.

    The range is from 1 to 65,535. The default is 1.

  19. Click the Apply button.

    Your settings are saved.

  20. To save the settings to the running configuration, click the Save icon.

The following table describes the view-only fields on the page.

Field

Description

IP Address

The IP address of the interface

Subnet Mask

The network mask, indicating the portion of the IP address that identifies the attached network

LSA Ack Interval

The number of seconds that the interface must wait before sending a delayed acknowledgement

State

The state of the OSPF interface:

Down: This is the initial interface state. The interface is not usable for OSPF, and the interface settings are at their initial values. All interface timers are disabled, and no adjacencies are associated with the interface.

Loopback: The interface is looped back either in hardware or software. The interface is unavailable for regular data traffic. You can get information about the interface by sending ICMP pings to the interface or through a bit error test because IP packets can still be addressed to an interface in a loopback state. An interface in a loopback state is advertised in LSAs as single host route for which the destination is the IP interface address.

Waiting: The switch is monitoring received hello packets to detect the identity of the backup designated router for the network. The switch cannot elect a backup designated router or a designated router until it transitions out of the waiting state. This prevents unnecessary changes of the backup designated router.

Designated Router: The switch is the designated router on the attached network. Adjacencies are established to all other routers and switches that in the network. The switch must also originate a network LSA for the network node. The network LSA contains links to all switches and routers (including the designated router) in the network.

Backup Designated Router: The switch is the backup designated router on the attached network. The switch is promoted to designated router if the current designated router fails. The switch establishes adjacencies to all other routers attached to the network. The backup designated router performs slightly different functions during the LSA flooding, as compared to the designated router.

Other Designated Router: The interface is connected to a broadcast on which other routers are the designated router and backup designated router. The switch attempts to form adjacencies to both the designated router and the backup designated router.

Designated Router

The identity of the designated router for this network, as detected by the advertising router. The designated router is identified by its router ID. The value 0.0.0.0 means that no designated router is detected.

Backup Designated Router

The identity of the backup designated router for this network, as detected by the advertising router. The backup designated router is identified by its router ID. The value 0.0.0.0 means that no backup designated router is detected.

Number of Link Events

The number of times the OSPF interface changed its state

Local Link LSAs

The number of opaque LSAs for which the flooding scope is the link on the interface

Local Link LSA Checksum

The sum of the checksums of local link LSAs for the link