show ip ospf


show ip ospf


This command is used when OSPFv2 is enabled.


show ip ospf3

This command is used when OSPFv3 is enabled.


If one of the following is true, the router ID is set to
  • No manual router ID, IPv4 network address, or IPv4 loopback interface address is configured on the routing switch.

  • No dynamic routing protocol is enabled on the routing switch.


Displaying the router ID when OSPFv3 is enabled

If a routing switch is using a router ID such as

Switch(config)# show ipv6 ospf3

 OSPFv3 General Status

  OSPFv3 Protocol   : Enabled
  Router ID         :