STP is enabled by default on devices running Layer 2 code. STP is disabled by default on devices running Layer 3 code. You can enable or disable STP on the following levels: Globally – Affects all ports and port-based VLANs on the device.
Is spanning-tree automatic?
You configure the command “spanning-tree portfast” on all the ports connecting to end devices like workstations. They then automatically bypass the wait period and DHCP works properly.
Is STP by default configure in Cisco switch?
By default, RSTP is the mode enabled on every port of a switch. It prevents Layer 2 loops in a network.