Enable the force-port-state flag.
default spanning-tree mstp force-port-state
no spanning-tree mstp force-port-state
no spanning-tree mstp force-port-state enable
spanning-tree mstp force-port-state enable
The default is enabled.
GigabitEthernet Interface Configuration