Enable or disable AdvertiseWhenDown. If enabled, the network on this interface is advertised as up, even if the port is down. When you configure a VLAN with no link and enable advertise-when-down, the route is not advertised until the VLAN is active. Then the route is advertised even when the link is down. To disable advertising based on link status, this parameter must be disabled.
default ip ospf advertise-when-down enable
ip ospf advertise-when-down enable
no ip ospf advertise-when-down enable
The default is disabled.
VLAN Interface Configuration