show ip ospf interface

Display OSPF information on a particular interface to ensure accuracy.

Syntax

Command Parameters

gigabitethernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}
Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If your platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.
vlan <1-4059>

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.

vrf WORD<1-16>
Displays ospf configuration for a particular VRF.
vrfids WORD<0-512>
Specifies a range of VRF IDs.

Default

None

Command Mode

User EXEC

Command Output

The show ip ospf interface command shows the following information:

Output field

Description

INTERFACE

Specifies the IP address of the switch.

AREA ID

Specifies the OSPF area name in dotted-decimal format. For VLANs, keeping the default area setting on the interface causes link-state database (LSDB) inconsistencies. 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).

ADM

Specifies the current administrative status of the OSPF interface (enabled or disabled).

IFST

MET

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.

PRI

Specifies the OSPF priority to use during the election process for the designated router. The interface with the highest priority becomes the designated router. The interface with the second highest priority becomes the backup designated router. If the priority is 0, the interface cannot become the designated router or the backup. The range is 0–255. The default is 1.

DR

Specifies the IP address of the designated router.

BR

Specifies the IP address of the backup designated router.

DR ID

Specifies the IP address of the designated router.

BDR ID

Specifies the IP address of the backup designated router.

TYPE

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

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.

AUTH TYPE

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.

MTU IGNO

Specifies whether the interface ignores the global maximum transmission unit (MTU) configuration.

LSA COUNT

Specifies the total number of link state advertisements in this area LSDB, excluding AS-external LSAs.

LSA CKSUM SUM

Specifies the number of link-state advertisements. This sum excludes external (LS type 5) link-state advertisements. The sum determines if a change occurred in a router LSDB and compares the LSDB of two routers.

Example

Switch:1#show ip ospf interface

-----------------------------------------------------------------------------------------------------------

Total ospf areas: 1

Total ospf interfaces: 1

========================================================================================================================
                                             OSPF Interface - GlobalRouter
========================================================================================================================
INTERFACE      AREA           ADM IFST MET PRI DR/          DR  ID/        TYPE AUTH     MTU      LSA        LSA CKSUM
                ID                             BDR          BDR ID              TYPE     IGNO     COUNT      SUM      
------------------------------------------------------------------------------------------------------------------------
100.1.1.2     0.0.0.0         en DOWN  10   1  0.0.0.0      0.0.0.0        p2p  none      dis      0          0
                                               0.0.0.0      0.0.0.0

DR_O = DR_OTHER