Disabling OSPFv2

About this task

To disable OSPFv2 on a device, use the no router ospf command:

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the no router ospf command to disable OSPFv2 on the device.
    device(config)# no router ospf

Example

The following example disables OSPFv2 on a device.

device# configure terminal
device(config)# no router ospf