(Optional) Configuring the Maximum-Aging Time for a VLAN To configure the maximum-aging time for a VLAN, perform this procedure: Procedure Configuring Spanning Tree Protocol (Optional) Configuring the Maximum-Aging Time for a VLAN Command or Action Purpose Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 spanning-tree vlan vlan-id forward-time seconds Example: Device(config)# spanning-tree vlan 20,25 forward-time 18 Configures the forward time of a VLAN. The forwarding delay is the number of seconds an interface waits before changing from its spanning-tree learning and listening states to the forwarding state.
• For vlan-id, you can specify a single VLAN identified by VLAN ID number, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094. • For seconds, the range is 4 to 30; the default is 15. Step 4 end Example: Device(config)# end Returns to privileged EXEC mode. Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 spanning-tree vlan vlan-id max-age seconds Example: Device(config)# spanning-tree vlan 20 max-age 30 Configures the maximum-aging time of a VLAN.
The maximum-aging time is the number of seconds a switch waits without receiving spanning-tree configuration messages before attempting a reconfiguration. • For vlan-id, you can specify a single VLAN identified by VLAN ID number, a Configuring Spanning Tree Protocol 20