H12-811_V2.0 practice question 3 of 15

Which of the following commands can be used to check OSPF routes in the global routing table?

Full set: 60 questions
Answer options
A: display ip routing-table protocol ospf Correct answer
B: display ospf peer
C: display ospf interface
D: display ospf routing
Correct Answer:
A. display ip routing-table protocol ospf
Explanation

The command display ip routing-table protocol ospf is used to view the global IP routing table and filter the output to show only the routes that were learned through the OSPF protocol and have been successfully installed. This command directly shows the active OSPF routes used for packet forwarding.

Why Incorrect

B. display ospf peer shows the status of OSPF neighbor adjacencies, not the routes in the routing table.
C. display ospf interface provides OSPF-related details for each interface, such as cost and state, not routes.
D. display ospf routing displays the OSPF routing database (LSDB), which contains raw LSA information before the SPF algorithm calculation.

References

1. Huawei VRP V800R019C00 Command Reference, "IP Routing Commands > Routing Table Commands > display ip routing-table". The documentation details the usage of the protocol keyword to filter the routing table display based on the route's origin protocol, such as OSPF.

2. Huawei HCIA-Datacom V1.0 Training Material, "Section 5.3.4 OSPF Troubleshooting". This material distinguishes between checking the routing table (display ip routing-table), the LSDB (display ospf lsdb), and neighbor states (display ospf peer).

Scroll to Top