passive-interface

Use this command to enable passive OSPF on an interface.

Syntax

passive-interface {vlan-id | interface-name | default}
no passive-interface {vlan-id | interface-name | default}

Parameters

vlan-id Specifies the VLAN number on which to enable passive OSPF mode.
interface-name Specifies a VLAN in the interface-name format: vlan.x.y
default Sets all enabled OSPF interfaces to passive.

Defaults

None.

Mode

OSPF router configuration.

Usage

This allows an interface to be included in the OSPF route table, but turns off sending and receiving hellos for the specified interface. It also prevents OSPF adjacencies from being formed on the specified interface.

The “no” form of this command disables passive OSPF mode.

Example

This example shows how to enable passive OSPF mode on VLAN 102 (can be specified as 102 or vlan.0.102):

System(rw-config)router ospf 1
System(rw-config-ospf-1)->passive-interface 102