HP (Hewlett-Packard) 9304M Switch User Manual


 
Configuring VLANs
Enable Spanning Tree on a VLAN
The spanning tree bridge and port parameters are configurable using one CLI command set at the Global
Configuration Level of each Port-based VLAN. Suppose you wanted to enable the IEEE 802.1d STP across
VLAN 3. To do so, use the following method.
NOTE: When port-based VLANs are not operating on the system, STP is set on a system-wide level at the global
CONFIG level of the CLI.
USING THE CLI
1. Access the global CONFIG level of the CLI on 6208M-SX A by entering the following commands:
HP6208-A> enable
No password has been assigned yet...
HP6208-A# configure terminal
HP6208-A(config)#
2. Access the level of the CLI for configuring port-based VLAN 3 by entering the following command:
HP6208-A(config)#
HP6208-A(config)# vlan 3
HP6208-A(config-vlan-3)#
3. From VLAN 3s configuration level of the CLI, enter the following command to enable STP on all tagged and
untagged ports associated with VLAN 3.
HP6208-B(config-vlan-3)#
HP6208-B(config-vlan-3)# spanning-tree
HP6208-B(config-vlan-3)#
4. Enter the following commands to exit the VLAN CONFIG mode and save the configuration to the system-
config file on flash memory:
HP6208-B(config-vlan-3)#
HP6208-B(config-vlan-3)# end
HP6208-B# write memory
HP6208-B#
5. Repeat steps 1 4 on 6208M-SX B.
NOTE: You do not need to configure values for the STP parameters. All parameters have default values as noted
below. Additionally, all values will be globally applied to all ports on the system or on the port-based VLAN for
which they are defined.
To configure a specific path-cost or priority value for a given port, enter those values using the key words in the
brackets [ ] shown in the syntax summary below. If you do not want to specify values for any given port, this
portion of the command is not required.
Syntax: vlan <vlan-id> by port
Syntax: [no] spanning-tree
Syntax: spanning-tree [ethernet <portnum> path-cost <value> priority <value>] forward-delay <value>
hello-time <value> maximum-age <time> priority <value>
Bridge STP Parameters (applied to all ports within a VLAN)
Forward Delay the period of time a bridge will wait (the listen and learn period) before forwarding data
packets. Possible values: 4 30 seconds. Default is 15.
Maximum Age the interval a bridge will wait for receipt of a hello packet before initiating a topology change.
Possible values: 6 40 seconds. Default is 20.
Hello Time the interval of time between each configuration BPDU sent by the root bridge. Possible values:
1 10 seconds. Default is 2.
16 - 19