Skip to Main Content
Cisco IOS in a Nutshell, 2nd Edition
book

Cisco IOS in a Nutshell, 2nd Edition

by James Boney
August 2005
Intermediate to advanced content levelIntermediate to advanced
798 pages
31h 12m
English
O'Reilly Media, Inc.
Content preview from Cisco IOS in a Nutshell, 2nd Edition

Name

spanning-tree vlan — global

Synopsis

spanning-tree vlan vlan-id [forward-time seconds | hello-time seconds |
max-age seconds | priority priority | protocol protocol | [root { primary
| secondary} [ diameter diameter [hello-time seconds]]]]
no spanning-tree vlan vlan-id

Configures

The port priority value for spanning-tree calculations

Default

Varies by option (details below)

Description

The command configures Spanning-Tree Protocol (STP) settings for each VLAN.

vlan-id

The ID of the VLAN, from 1 to 1,005.

forward-time

Optional. Sets the STP forward delay time, which can be from 4 to 30 seconds. Default is 15 seconds.

hello-time

Optional. Sets the interval between configuration messages from the root bridge; can be from 1 to 10 seconds. Default is 2 seconds.

max-age

Optional. Sets the maximum number of seconds that a BDPU packet is valid, which can be from 6 to 40 seconds. Default is 20 seconds.

priority

Optional. Sets the STP bridge priority, which can be from 0 to 65,535. Default is 128 (with the ieee protocol, default is 3,278).

protocol

Optional. Sets the STP protocol. Valid choices are dec, ibm, ieee, and vlan-bridge. ieee is the default.

root primary

Optional. Forces this device to be the root bridge.

root secondary

Optional. Forces this device to act as a secondary switch, which means it becomes the root switch if the primary root fails.

diameter

Optional. Set the maximum number of switches between any two end stations. Value can be from 2 to 7.

Example

! Enable spanning-tree on ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CISCO IOS in a Nutshell

CISCO IOS in a Nutshell

James Boney
Cisco IOS Cookbook, 2nd Edition

Cisco IOS Cookbook, 2nd Edition

Kevin Dooley, Ian Brown
Cisco Software-Defined Access

Cisco Software-Defined Access

Srilatha Vemula, Jason Gooley, Roddie Hasan

Publisher Resources

ISBN: 0596008694Errata