set protocols ospf passive-interface

Run the command set protocols ospf passive-interface to the set the specified layer 3 interface as passive OSPF interface. Optional parameter instance-id can be included to specify the OSPFv2 multi-instance ID. The optional parameter vrf can be used to specify the VRF for this command to take effect in, if not specified the command affects the default VRF.


Multiple instances of OSPF are only allowed in the default VRF. A maximum of 8 instance can be configured in the default VRF. In non-default VRFs, only single instance OSPF can be configured.


Passive interfaces are part of the OSPF database but they do not send or receive OSPF LSAs and hence OSPF adjacencies are not formed on these interfaces.

To delete the configuration, run the command delete protocols ospf passive-interface.


Command Syntax

set protocols ospf [instance-id <instance-id> | vrf <vrf-name>] passive-interface <interface>

delete protocols ospf [instance-id <instance-id> | vrf <vrf-name>] passive-interface <interface>


Parameter

Parameter

Description

instance-id <instance-id>Optional, specifies the OSPF instance ID. The value is an integer that ranges from 1 to 8.

vrf <vrf-name>

Optional. Specifies the name of the VRF for the OSPF instance.

passive-interface <interface>Specify a L3-interfaces to set to passive mode.

Example

  •  Set interface vlan20 to OSPF passive mode for OSPF instance ID 1 in the default VRF.
admin@XorPlus# set protocols ospf instance-id 1 passive-interface vlan20
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.