Spanning Tree Protocol

Le Spanning Tree Protocol (aussi appelé STP) est un protocole réseau de niveau 2 permettant de déterminer une topologie réseau sans boucle (appelée algorithme de l'arbre recouvrant) dans les LAN avec ponts.

Définir le commutateur racine

Switch>en
Switch#conf t
Switch(conf-t)#set spantree root 1
VLAN 1 bridge priority set to 8192.
VLAN 1 bridge max aging time set to 20.
VLAN 1 bridge hello time set to 2.
VLAN 1 bridge forward delay set to 15.
Switch is now the root switch for active VLAN 1.
Switch(conf-t)#end
 

Configurer paramètre PortFast sur les commutateurs

Remarque: configurer uniquement ce paramètre sur les ports connectés aux postes de travail ou aux PC. N'activer pas Portfast sur les ports connectés à un autre commutateur.

Switch>en
Switch#conf t
Switch(conf-t)#set spantree portfast 0/1-24 enable
Warning: Spantree port fast start should only be enabled on ports connected to a 
single host. Connecting hubs, concentrators, switches, bridges, etc... to a fast start 
port can cause temporary spanning-tree loops.  
Use with caution.Spantree ports 0/1-24 fast start enabled.
Switch(conf-t)#end

Vérifer que le commutateur la racine de tous les vlan appropriés

Switch>en
Switch#sh spantree 1