I have Cisco Nexus 9396PX switch and running OSPF configuration and now i want to tell all switch interface to not participate in ospf adjacency except only specific interface, so i there any global command to tell all interface in passive.
Here is my config, only eth2/11 and eth2/12 are participating in ospf routing but i want to make sure it does not send OSPF update to all 48x10GE (all other 10G ports) in that case do i need to do "ip ospf passive-interface" on all interface?
N9K# sh run ospf !Command: show running-config ospf !Time: Thu Apr 26 15:22:04 2018 version 7.0(3)I4(7) feature ospf router ospf 100 router-id 192.168.255.19 default-information originate interface Ethernet2/11 ip router ospf 100 area 0.0.0.0 interface Ethernet2/12 ip router ospf 100 area 0.0.0.0
The easiest way to do this is by adding
ip ospf passive-interface
to both e2/11 & e2/12
So, neither interface with form adjacency.
You can also do it the other way too by adding
passive-interface default to OSPF and then add
"no ip ospf passive-interface" to each interface
but I like the first option.