Run the command set protocols ospf passive-interface to the set layer 3 interface(s) as passive OSPF interfaces. To set all interfaces as passive, you can use the keyword default. To selectively choose an interface to set as passive interface, specify the interface name. 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.
Passive interfaces do not take part in OSPF calculations nor do they send or receive OSPF LSAs.
To delete the configuration, run the command delete protocols ospf passive-interface.
Command Syntax
set protocols ospf [vrf <vrf-name>] passive-interface {default|<interface>}
delete protocols ospf [vrf <vrf-name>] passive-interface {default|<interface>}
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies the name of the VRF for the OSPF instance. |
passive-interface {default|<interface>} | Choose default to set all L3-interfaces to passive mode or specify a particular L3-interface to set to passive mode. |
Example
- Set all interface to OSPF default mode in VRF BLUE.
admin@XorPlus# set protocols ospf vrf BLUE passive-interface default admin@Xorplus# commit