What the the recommended command should I apply for Trunk ports between edge switches in the below digram to avoid looping in the network.
Appreciate your help
Apply the same trunk configuration as all the other switches. Spanning tree protocol (STP) will take care of preventing loops automatically. It is best practice to run the same kind of STP throughout the whole network as to prevent odd issues.
Sorry, I mean Trunk ports between switches, so there is any configuration should I do in edge switches for spanning-tree.
what do you mean by 'true' ports ? All ports should be trunk ports, make the core switch the root for all Vlans, and spanning tree will block one of the outgoing ports, hence avoiding a loop.
Core is Root always
link between SW2-SW3 always block
this give you best STP config
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: