Configuring VLAN Trunks Configuring Load Sharing Using STP Path Cost Command or Action Purpose Step 10 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 11 interface interface-id Example: Device(config)# interface gigabitethernet 1/0/1 Defines the interface on which to set the STP cost, and enters interface configuration mode. Step 12 spanning-tree vlan vlan-range cost cost-value Example: Device(config-if)# spanning-tree vlan 2-4 cost 30 Sets the spanning-tree path cost to 30 for VLANs 2 through 4. Step 13 end Example: Device(config-if)# end Returns to global configuration mode.
Step 14 Repeat Steps 9 through 13 on the other configured trunk interface on Device A, and set the spanning-tree path cost to 30 for VLANs 8, 9, and 10. Step 15 exit Example: Device(config)# exit Returns to privileged EXEC mode. Step 16 show running-config Example: Device# show running-config Verifies your entries. In the display, verify that the path costs are set correctly for both trunk interfaces. Step 17 copy running-config startup-config Example: Device# copy running-config startup-config (Optional) Saves your entries in the configuration file. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 60