All the OSPF interfaces created after you perform this procedure will be passive. This situation is useful in ISP and large enterprise networks where many of the distribution routers have more than 200 interfaces.
SEFOS# configure terminal
SEFOS(config)# router ospf
SEFOS(config-router)# router-id 10.10.2.1
SEFOS(config-router)# passive-interface default
SEFOS(config-router)# network 10.4.0.1 area 0.0.0.0
SEFOS# show ip ospf interface vlan 1 vlan1 is line protocol is up Internet Address 10.4.0.1, Mask 255.255.0.0, Area 0.0.0.0 AS 1, Router ID 10.10.2.1, Network Type BROADCAST, Cost 1 Transmit Delay is 1 sec, State 2, Priority 1 No designated router on this network No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 No Hellos (Passive interface) Neighbor Count is 0, Adjacent neighbor count is 0