254 CHAPTER 16: IP ROUTING PROTOCOL OPERATION
Display Command for OSPF Neighbor Information
Use the command display ospf peer statistics, which has the same display output
as that of display ospf peer brief command.
The display ospf peer brief command has the following fields in its display output:
■Router ID
■Address (IP address of the neighbor)
■Pri (priority of the neighbor)
■DeadTime(s)
■Interface
■State
Example: Configuring
DR Election Based on
OSPF Priority
Networking Requirements
In this example, four Switch 5500s, Switch A, Switch B, Switch C and Switch D, which
can perform the router functions and run OSPF, are located on the same segment, as
shown Figure 57
Networking Diagram
Figure57 Networking for configuring DR election based on OSPF priority
Display OSPF routing table display ospf [ process_id ] routing
Display OSPF virtual links display ospf [ process_id ] vlink
Display OSPF request list display ospf [ process_id ] request-queue
Display OSPF retransmission list display ospf [ process_id ] retrans-queue
Display the information of OSPF
ABR and ASBR display ospf [ process_id ] abr-asbr
Display the summary information of
OSPF imported route display ospf [ process_id ] asbr-summary [
ip_address mask ]
Display OSPF interface information display ospf [ process_id ] interface
Display OSPF errors display ospf [ process_id ] error
Table252 Displaying and debugging OSPF
Operation Command
BDR
196.1.1.4/24
196.1.1.3/24
196.1.1.2/24
DR
SwitchA SwitchD
SwitchB SwitchC
1.1.1.1 4.4.4.4
3.3.3.3
2.2.2.2
196.1.1.1/24