Configuring basic stp – Brocade Network OS Administrator’s Guide v4.1.1 User Manual
Page 414

Configuring basic STP
NOTE
The gigabitethernet rbridge-id/slot/port keyword is used only for the Brocade VDX 6710, Brocade
VDX 8770-4, and Brocade VDX 8770-8 switches. The prompt for these ports is in this format:
switch(config-if-gi-22/0/1)#.
The process for configuring STP is as follows:
1. Enter global configuration mode.
2. Enable STP by using the global protocol spanning-tree command. For details, refer to
STP, RSTP, MSTP, PVST+ or R-PVST+
on page 419.
switch(config)# protocol spanning-tree stp
3. Designate the root switch by using the bridge-priority command. For details, refer to
on page 420. The range is 0 through 61440 and the priority values can be set only in
increments of 4096.
switch(conf-stp)# bridge-priority 28672
4. Enable port fast on switch ports by using the spanning-tree portfast command. For details, refer to
on page 428.
NOTE
Port fast only needs to be enabled on ports that connect to workstations or PCs. Repeat these
commands for every port connected to workstations or PCs. Do not enable port fast on ports that
connect to other switches.
NOTE
If BPDUs are received on a port fast enabled interface, the interface loses the edge port status
unless it receives a shut/no shut.
NOTE
Enabling port fast on ports can cause temporary bridging loops, in both trunking and non-trunking
mode.
switch(config)# interface tengigabitethernet 0/10
switch(conf-if-te-0/10)# spanning-tree portfast
switch(conf-if-te-0/10)# exit
switch(config)# interface tengigabitethernet 0/11
switch(conf-if-te-0/11)# spanning-tree portfast
switch(conf-if-te-0/11)# exit
Repeat these commands for every port connected to workstations or PCs.
5. To interoperate with non-Brocade switches in PVST+/R-PVST+ mode, you may need to configure
the interface that is connected to that switch by using the spanning-tree bpdu-mac command.
switch(config)# interface tengigabitethernet 0/12
switch(conf-if-te-0/12)# spanning-tree bpdu-mac 0100.0ccc.cccd
6. Specify port priorities by using the spanning-tree priority command to influence the selection of
root/designated ports on the following:
• All ports of the root switch
• The root port
• The designated port
7. Enable the guard root feature with the spanning-tree guard root command. The guard root feature
provides a way to enforce the root bridge placement in the network. For detailed information, refer
to
on page 426.
Configuring basic STP
414
Network OS Administrator’s Guide
53-1003225-04