To display all connected OSPFv2 routers, use the command show ip ospf neighbor
in the router's command-line interface. This command provides a list of OSPF neighbors, including their state, router ID, and interface information. It helps in verifying OSPF adjacencies and troubleshooting OSPF connectivity issues.