8-35
Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide
78-6511-08
Chapter 8 Configuring VLANs
Load Sharing Using STP
Beginning in privileged EXEC mode, follow these steps to configure the network shown in
Figure 8-6
:
Command
Purpose
Step 1
configure terminal
Enter global configuration mode on Switch 1.
Step 2
interface fa0/1
Enter interface configuration mode, and define Fa0/1 as the interface to be
configured as a trunk.
Step 3
switchport mode trunk
Configure the port as a trunk port.
The trunk defaults to ISL trunking.
Step 4
end
Return to global configuration mode.
Step 5
Repeat Steps 2 through 4 on Switch 1 interface Fa0/2.
Step 6
show running-config
Verify your entries.
In the display, make sure that interface Fa0/1 and Fa0/2 are configured as
trunk ports.
Step 7
show vlan
When the trunk links come up, Switch 1 receives the VTP information from
the other switches. Verify that Switch 1 has learned the VLAN configuration.
Step 8
configure terminal
Enter global configuration mode.
Step 9
interface fa0/1
Enter interface configuration mode, and define Fa0/1 as the interface to set
the STP cost.
Step 10
spanning-tree vlan 2 3 4 cost 30
Set the spanning-tree path cost to 30 for VLANs 2, 3, and 4.
Step 11
end
Return to global configuration mode.
Step 12
Repeat Steps 9 through 11 on Switch 1 interface Fa0/2, and set the
spanning-tree path cost to 30 for VLANs 8, 9, and 10.
Step 13
exit
Return to privileged EXEC mode.
Step 14
show running-config
Verify your entries.
In the display, verify that the path costs are set correctly for interface Fa0/1
and Fa0/2.