show ip ospf interface

Displays information about all or specific OSPF-enabled interfaces.

Syntax

show ip ospf interface [ A.B.C.D | brief ] [ vrf vrf-name ]
show ip ospf interface [ ethernet slot/port | | loopback number | port-channel number | ve vlan_id ] [ brief ] [ vrf vrf-name ]
show ip ospf interface [ vrf vrf-name ]

Parameters

A.B.C.D
Specifies interface IP address in dotted decimal format.
brief
Displays summary information.
vrf vrf-name
Specifies the name of the VRF instance. If this option is not used, details for the default VRF are shown in the output.
ethernet slot/port
Specifies an Ethernet slot and port.
loopback number
Specifies a loopback port number. Valid values range from 1 through 255.
port-channel number
Specifies a port-channel.
ve vlan_id
Specifies a virtual Ethernet (VE) interface. Valid values range from 1 through 4096

Modes

Privileged EXEC mode

Usage Guidelines

Examples

The following example displays OSPF information about all enabled interfaces.

device# show ip ospf interface

Ethernet 1/2 admin up, oper up
     IP Address 53.1.1.36, Area 0
     BFD is disabled
     Database Filter: Not Configured
     State BDR, Pri 1, Cost 1, Options ------E-, Type broadcast Events 3
     Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
     DR:  Router ID 200.1.2.3         Interface Address 53.1.1.1
     BDR: Router ID 20.20.20.20       Interface Address 53.1.1.36
     Neighbor Count = 1, Adjacent Neighbor Count= 1
     Neighbor:         53.1.1.1 [id 200.1.2.3] (DR)
     Authentication-Key: None
     MD5 Authentication: Key None, Key-Id  None , Auth-change-wait-time 300
LDP-SYNC: Disabled, State: -

Loopback 1 admin up, oper up
     IP Address 20.20.20.20, Area 0
     BFD is disabled
     Database Filter: Not Configured
     State DR, Pri 1, Cost 1, Options ------E-, Type broadcast Events 2
     Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
     DR:  Router ID 20.20.20.20       Interface Address 20.20.20.20
     BDR: Router ID 0.0.0.0           Interface Address 0.0.0.0
     Neighbor Count = 0, Adjacent Neighbor Count= 0
     Authentication-Key: None
     MD5 Authentication: Key None, Key-Id  None , Auth-change-wait-time 300
LDP-SYNC: Disabled, State: -