Switch>en
Switch>enable
Switch#conf
Switch#configure
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#sp
Switch(config)#spanning-tree v
Switch(config)#spanning-tree vlan 1
Switch(config)#spanning-tree vlan 1 p
Switch(config)#spanning-tree vlan 1 priority 4096
Switch(config)#