Front,Back
Configure the STP bridge priority:<br></br>SW1(config)# […],<b>spanning-tree vlan </b>
</b><i>vlan-id </i>
Configure the STP primary/secondary root bridge<br></br>SW1(config)# […],<b>spanning-tree vlan </b>
</b><i>vlan-id </i>
What is the effect of 
<b>spanning-tree vlan 1 root secondary</b>?,It sets the bridge priority to 28672
What is the effect of 
<b>spanning-tree vlan 1 root primary</b>?,”Set the bridge priority to 24576, <br></br>or 4096 lower than the current Root Bridge (if setting the priority to 24576 wouldn’t make this switch the Root).”
“If the current Root Bridge’s priority is 4096 or 0, what is the effect of <b>spanning-tree vlan 1 root primary</b>?”,The command will fail<br></br>*It will not set the Bridge Priority to 0
Modify the port cost for all VLANs:<br></br>SW1(config-if)# […],<b>spanning-tree cost </b>
</b><i>cost</i>
Modify the port cost for a specific VLAN:<br></br>SW1(config-if)# […],<b>spanning-tree vlan </b>
</b><i>vlan-id </i>
Modify the port priority for all VLANs:<br></br>SW1(config-if)# […],<b>spanning-tree port-priority </b>
</b><i>priority</i>
Modify the port priority for a specific VLAN:<br></br>SW1(config-if)# […],<b>spanning-tree vlan </b>
</b><i>vlan-id </i>