Configuring a passive OSPF interface
For more information, see About OSPF passive.
Enter this command in VLAN context:
Switch(vlan-1)# ip ospf passive
Syntax:
ip ospf ip-addr passive
no ip ospf ip-addr passive
Configures passive OSPF for an AS.
The
no
option disables the passive option; the interface becomes an active interface.
Default: Active
Example
To display the OSPF passive information, enter the command shown in Figure A-14:
show ip ospf interface command with passive configured on an interface
switch(vlan-1)# show ip ospf interface OSPF Interface Status IP Address Status Area ID State Auth-type Cost Priority Passive ---------- ------ ------- ----- --------- ---- -------- ------- 25.40.1.1 enabled backbone DR none 1 1 no 200.1.1.1 enabled backbone BDR md5 1 1 no 202.1.1.1 enabled backbone BDR none 1 1 no 210.1.1.1 enabled 0.0.0.1 BDR none 1 1 no
You can display the OSPF passive information for a particular VLAN, as shown in the following example.
show ip ospf interface command for a specific VLAN with passive configured on an interface
switch(config) show ip ospf interface vlan 4 OSPF configuration and statistics for VLAN 4 OSPF Interface Status for 10.10.10.1 IP Address: : 10.10.10.1 Status : enabled AreaID : 0.0.0.2 Passive : Yes State : DOWN Auth-type : none Cost : 1 Chain : Type : BCAST Priority : 1 Transit Delay : 1 Retrans Interval : 5 Hello Interval : 10 Rtr Dead Interval : 40 Designated Router: Events : 0 Backup Desig. Rtr: Passive : yes Neighbors : 2