Run the command set protocols ospf passive-interface to the set specified 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 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 are part in OSPF calculations nor do they of OSPF database but they do not send or receive OSPF LSAs and hence adjacencies are not formed on these interfaces.
To delete the configuration, run the command delete protocols ospf passive-interface.
...
Command Syntax
set protocols ospf [vrf <vrf<vrf-name>name>] passive-interface {default|<interface>}interface <interface-name>
delete protocols ospf [vrf <vrf<vrf-name>name>] passive-interface {default|<interface>}interface <interface-name>
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies the name of the VRF for the OSPF instance. |
passive- |
interface <interface-name> | Specifies the L3-interface to set to passive mode. |
Example
- Set all the OSPF L3 interface vlan200 to OSPF default passive mode in VRF BLUE.
Code Block |
---|
admin@XorPlus# set protocols ospf vrf BLUE passive-interface defaultvlan200 admin@Xorplus# commit |