Run the command set protocol 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 VRF namecommand affects the default VRF.
Passive interfaces are part 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 protocol protocols ospf passive-interface.
Command Syntax
set protocol protocols ospf [vrf <vrf<vrf-name>name>] passive-interface {default|<interface>}interface <interface-name>
delete protocol protocols ospf [vrf <vrf<vrf-name>name>] passive-interface {default|<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 |