Viewing OSPF interface information
Syntax:
show ip ospf interface [vlan
vlan-id|ip-addr]
ip-address
Displays the OSPF interface information for the specified IP address.
vlan-id
Displays the OSPF interface information for the specified IP address.
The table below shows the information displayed for the OSPF interface.
Field |
Content |
---|---|
IP Address |
The local IP address for this interface. |
Status |
enabled or disabled—Whether OSPF is currently enabled on this interface. |
Area ID |
The ID of the area that this interface is in. |
State |
The current state of the interface. The value will be one of the following:
|
Auth-type |
none or
|
Chain |
The name of the key chain configured for the specified interface. (See the Access Security Guide for your switch.) |
Cost |
The OSPF's metric for this interface. |
Pri |
This routing switch's priority on this interface for use in the designated router election algorithm. |
Passive |
Whether the interface sends link-state advertisements (LSAs) to all other routers in the same Autonomous System (AS.) |
Example
Output for show ip ospf interface
switch# show ip ospf interface OSPF Interface Status IP Address Status Area ID State Auth-type Cost Pri Passive --------------- -------- -------------- ------- --------- ------ --- ------- 10.3.18.36 enabled 10.3.16.0 DOWN none 1 1 no 10.3.53.36 enabled 10.3.48.0 BDR none 1 1 no
OSPF interface configuration
Admin Authen IP Address Area ID Status Type Type Cost Pri --------------- --------------- -------- -------- ------ ----- --- 172.16.30.186 backbone enabled Pt-to-Pt none 100 n/a