Hello all,
I would like to run a scenario by you guys and get your input regarding the "passive-interface default" OSPF command. Let's assume I am working on an existing configured OSPF router with the following configuration:
router ospf 1
router-id 10.10.10.1
passive-interface default
no passive-interface GigabitEthernet6/1
no passive-interface GigabitEthernet6/2
network 10.10.10.0
If I go and paste the duplicate configuration in as follows what would the expected result be?
router ospf 1
router-id 10.10.10.1
passive-interface default
My thoughts were that there would be no impact to OSPF, routing, or the likes. Unfortunately this is not the case. I have found on my device that when you repaste the "passive-interface default" command in to the config that it actually resets all existing "no passive-interface" commands and enables passive-interface on all interfaces globally.
Router#sh run | sec router ospf
router ospf 1
router-id 10.10.10.1
passive-interface default
no passive-interface GigabitEthernet6/1
no passive-interface GigabitEthernet6/2
network 10.10.10.0
Router#config t
Router(config)#router ospf 1
Router(config-router)# passive-interface default
Router(config-router)#end
Router#sh run | sec router ospf
router ospf 1
router-id 10.10.10.1
passive-interface default
network 10.10.10.0
This is especially bad if you are performing maintenance on the router out of network where your connectivity requires a default route to be learned via OSPF. Has anyone else encountered this or do they feel this behavior to be a bit odd?