show ip ospf neighbor
17-28 IPv4 Routing Protocol Configuration
Defaults
Ifvlan‐idisnotspecified,OSPFstatisticswillbedisplayedforallVLANs.
Mode
Anyroutermode.
Example
ThisexampleshowshowtodisplayallOSPFrelatedinformationfortheVLAN6interface:
C2(su)->router#show ip ospf interface vlan 6
Vlan 6
Internet Address 192.168.6.2 Mask 255.255.255.0, Area 0.0.0.0
Router ID 3.3.3.3 , Cost: 10 (computed)
Transmit Delay is 1 sec , State designated-router , Priority 1
Designated Router id 3.3.3.3 , Interface Addr 192.168.6.2
Backup Designated Router id 2.2.2.2 ,
Timer intervals configured , Hello 10 , Dead 40 , Retransmit 5
Table 17‐4providesanexplanationofthecommandoutput.
show ip ospf neighbor
UsethiscommandtodisplaythestateofcommunicationbetweenanOSPFrouterandits
neighborrouters.
Table 17-4 show ip ospf interface Output Details
Output What It Displays...
Vlan VLAN ID
Internet Address IP address and mask assigned to this interface.
Area Area ID
Router ID Router ID configured on this router.
Cost OSPF interface cost, which is either default, or assigned with the ip ospf cost
command. For details, refer to “ip ospf cost” on page 17-14.
Transmit Delay The number (in seconds) added to the LSA (Link State Advertisement) age field.
State The interface state (versus the state between neighbors). Valid values include
Backup Designated Router, Designated Router, and Err for error.
Priority The interface priority value, which is either default, or assigned with the ip ospf
priority command. For details, refer to “ip ospf priority” on page 17-14.
Designated Router
id
The router ID of the designated router on this subnet, if one exists, in which case Err
will be displayed.
Interface Addr IP address of the designated router on this interface.
Backup Designated
Router id
IP address of the backup designated router on this interface, if one exists, in which
case Err will be displayed.
Timer intervals
configured
OSPF timer intervals. These are either default, or configured with the ip ospf
retransmit-interval (“ip ospf retransmit-interval” on page 17-16), the ip ospf hello-
interval (“ip ospf hello-interval” on page 17-17), the ip ospf retransmit-delay (“ip
ospf transmit-delay” on page 17-16) and the ip ospf dead interval (“ip ospf dead-
interval” on page 17-17) commands.