• First switch:

 

switch(config)#no spanning-tree vlan 1 priority 4096

switch(config)#spanning -tree vlan 1 root primary

 

  • secend switch:

 

switch(config)#sapnning -tree vlan 1 root secendary