Enable STP on the port.
default spanning-tree rstp stp
no spanning-tree rstp stp enable
spanning-tree rstp stp enable
The default value is enabled.
GigabitEthernet Interface Configuration