Display OSPF information on a particular interface to ensure accuracy.
show ip ospf interface
show ip ospf interface gigabitethernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}
show ip ospf interface vlan
show ip ospf interface vlan <1-4059>
show ip ospf interface vrf WORD<1-16>
show ip ospf interface vrfids WORD<0-512>
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.
None
User EXEC
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.
|
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.
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. |
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