default-passive-interface

Marks all OSPFv2 and OSPFv3 interfaces passive by default.

Syntax

default-passive-interface
no default-passive-interface

Modes

OSPF router configuration mode

OSPFv3 router configuration mode

OSPF router VRF configuration mode

OSPFv3 router VRF configuration mode

Usage Guidelines

When you configure the interfaces as passive, the interfaces drop all the OSPFv2 and OSPFv3 control packets.

You can use the ip ospf active and ip ospf passive commands in interface subconfiguration mode to change active/passive state on specific OSPFv2 interfaces. You can use the ipv6 ospf active and ipv6 ospf passive commands in interface subconfiguration mode to change the active and passive state on specific OSPFv3 interfaces.

The no form of the command disables the passive state.

Examples

The following example marks all OSPFv2 interfaces as passive.

device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# default-passive-interface