PurposeCommand or Action
Returnsto globalconfiguration mode.end
Example:
Switch(config-if)# end
Step 12
RepeatSteps 9 through 13 on the other configured trunk
interfaceon Switch A, and set the spanning-tree path cost
to30 for VLANs 8, 9, and 10.
Step 13
Returnsto privileged EXEC mode.exit
Example:
Switch(config)# exit
Step 14
Verifiesyour entries. In the display, verify that the path
costsare setcorrectly for both trunk interfaces.
showrunning-config
Example:
Switch# show running-config
Step 15
(Optional)Saves your entriesin theconfiguration file.copyrunning-config startup-config
Example:
Switch# copy running-config startup-config
Step 16
Related Topics
NetworkLoad Sharing Using STP Path Cost, on page 65
Configuration Examples for VLAN Trunking

Example: Configuring an IEEE 802.1Q Trunk

Thisexample shows how to configure a port as an IEEE 802.1Q trunk. The example assumes that the neighbor
interfaceis configured tosupport IEEE802.1Q trunking.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# switchport mode dynamic desirable
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# end
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
80 OL-29440-01
Configuring VLAN Trunks
Configuration Examples for VLAN Trunking