show ip ospf

Syntax

show ip ospf

Description

This command is used when OSPFv2 is enabled.

Options

show ip ospf3

This command is used when OSPFv3 is enabled.

Usage

If one of the following is true, the router ID is set to 0.0.0.0:
  • 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.

Example

Displaying the router ID when OSPFv3 is enabled

If a routing switch is using a router ID such as 10.10.10.1:

Switch(config)# show ipv6 ospf3

 OSPFv3 General Status

  OSPFv3 Protocol   : Enabled
  Router ID         : 10.10.10.1