Configuration Guide Vol. 3


11.5.3 Checking neighboring router information

You can use the show ip ospf neighbor operation command to check the IP address, neighbor state, router ID, and priority of neighboring routers.

On an OSPF interface, the designated router (DR) forms adjacencies with the other routers. You can monitor its progress by checking the State field in the command output.

Full appears as the status of routers that have formed an adjacency. Otherwise, the router is in the process of forming an adjacency with the designated router and cannot learn OSPF routes at its interfaces.

You can examine the neighboring routers in more detail by executing the show ip ospf interface and show ip ospf neighbor detail operation commands. The command output includes the interface state, network type, and connectivity with neighboring routers.

Figure 11-9: Result of executing show ip ospf neighbor command
>show ip ospf neighbor
Date 20XX/07/14 12:00:00 UTC
Domain: 1
Area: 0
Address         State                RouterID      Priority Interface
172.16.10.11    Full/BackupDR        172.16.1.1          1  172.16.10.10
172.16.10.12    Full/DR Other        172.16.1.2          1  172.16.10.10
172.126.110.111 Exch Start/BackupDR  172.126.123.111     1  172.126.120.130
Figure 11-10: Result of executing show ip ospf interface command (IP addressing)
>show ip ospf interface 192.168.50.1
Date 20XX/05/30 12:00:00 UTC 
Domain: 1
Index: 2, Name: VLAN0010, Address: 192.168.50.1, State: P to P
Auth Type: Simple
MTU: 1436, DDinPacket: 70, LSRinPacket: 117, ACKinPacket: 70
Router ID: 192.168.50.1, Network Type: P to P
Area: 0, DR: none, Backup DR: none
Priority: 0, Cost: 1
Transmit Delay: 1s
Intervals:
  Hello: 10s, Dead: 40s, Retransmit: 5s
 
Neighbor List (1):
Address         State      RouterID     Priority DR             Backup DR
192.168.50.2    Full       192.168.50.2    0     none           none
>
Figure 11-11: Result of executing show ip ospf neighbor command (detail)
>show ip ospf neighbor detail
Date 20XX/05/30 12:00:00 UTC
Domain: 1
Area: 0
Interface Address: 172.16.10.10, Interface State: BackupDR
    Interface Name: VLAN0020
    Neighbor Router ID: 172.16.1.1, Neighbor State: Full/DR
    Neighbor Address: 172.16.10.11, Priority: 1, Poll Interval: 0s
    Last Hello: 6s, Last Exchange: 45d 12h
    DR: 172.16.10.11, Backup DR: 172.16.10.10
    DS: 0, LSR: 0, Retrans: 0, <Master>
 
    Neighbor Router ID: 172.16.1.2, Neighbor State: Full/DR Other
    Neighbor Address: 172.16.10.12, Priority: 1, Poll Interval: 0s
    Last Hello:  3s, Last Exchange:  1s
    DR: 172.16.10.11, Backup DR: 172.16.10.10
    DS: 0, LSR: 0, Retrans: 0, <>
>