04-26-2018 08:08 AM - edited 03-08-2019 02:48 PM
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
04-26-2018 08:26 AM
No, you just need it for e2/11 and e2/12.
HTH
04-26-2018 08:32 AM
04-26-2018 08:39 AM
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.
HTH
04-30-2018 07:22 AM
04-27-2020 07:15 PM
12-08-2022 02:50 AM
ospf instance's command "passive-interface default" will override your configuration of interface
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: