Configuration du STP
Activation
ProCurve Switch 2650(config)# spanning-tree
The best practice recommendation by HP Networking is
to enable MSTP or MSTP in forced RSTP operation.
Mode RSTP
ProCurve Switch 2650(config)# spanning-tree force-version rstp-operation
Pour forcer le switch en Root Bridge
ProCurve Switch 2650(config)# spanning-tree priority 0
Admin Edge
C'est l'équivalent du port-fast de Cisco
ProCurve Switch 2650(config)# spanning-tree ethernet 1 admin-edge-port
Vérification
ProCurve Switch 2650(config)# show spanning-tree
Rapid Spanning Tree (RSTP) Information
STP Enabled : Yes
Force Version : RSTP-operation
Switch Priority : 0 Hello Time : 2
Max Age : 20 Forward Delay : 15
Topology Change Count : 0
Time Since Last Change : 103 mins
Root MAC Address : 001560-190f00
Root Path Cost : 0
Root Port : This switch is root
Root Priority : 0