Base de connaissances

How to enable Rapid Per-VLAN Spanning Tree (Rapid-PVST) or Per-VLAN Spanning tree (PVST) for the N-Series switches


Article Description: This article explains how to enable Rapid Per-VLAN Spanning Tree (Rapid-PVST) or Per-VLAN Spanning tree (PVST) for the N-Series switches.



Table of Contents

  1. Enabling PVST
  2. Setting root bridge priority
  3. Enabling portfast

Enabling PVST

To switch to PVST input the following commands

console>enable

console#config

For rapid-pvst

console(config)# spanning-tree mode rapid-pvst

For legacy devices that use PVST

console(config)#spanning-tree mode pvst

Note: With latest firmware versions of switch, both PVST modes support up to 64 VLANs. Please read the User Guide for more information.

To remove specific VLANs from PVST and include specific VLANs, input the following commands. This example removes VLAN 10 and adds VLAN 20.

console(config)#no spanning-tree vlan 10

console(config)#spanning-tree vlan 20


Setting root bridge priority

The following command will set priority for root bridge selection. This example sets vlan 20 and 30 as priority 4096 and VLAN 40 through 45 as priority 8192.

console(config)#spanning-tree vlan 20,30 priority 4096

console(config)#spanning-tree vlan 40-45 priority 8192


Enabling Portfast

It is recommended to configure any edge ports, ports that go to end devices such as printers, phones, servers, workstations, to be set up as Portfast. A port in Portfast will move directly to forwarding state when the link comes up without waiting for the forward-time delay.

console(config)#interface te1/0/1

console(config-if)#spanning-tree portfast

Caution: Do not configure portfast on interfaces that attach to another switch or network device.

To review PVST, run the following command. X is replaced with the VLAN ID you wish to check.

console#show spanning-tree vlan X






ID de l'article : HOW10434

Date de la dernière modification : 10/19/2017 05:53 AM


Noter cet article

Précis
Utile
Facile à comprendre
Avez-vous trouvé cet article utile ?
Oui Non
Envoyez-nous vos commentaires
Les commentaires ne doivent pas contenir les caractères spéciaux : <>()\
Désolé, notre système de collecte des commentaires est actuellement indisponible. Veuillez réessayer ultérieurement.

Merci pour vos commentaires.