PurposeCommand or Action
Configures the port as a trunk port.switchport mode trunk
Example:
Switch(config-if)# switchport mode trunk
Step 4
Returns to global configuration mode.exit
Example:
Switch(config-if)# exit
Step 5
Repeat Steps 2 through 4 on a second interface in Switch
A or in Switch A stack.
Step 6
Returns to privileged EXEC mode.end
Example:
Switch(config)# end
Step 7
Verifies your entries. In the display, make sure that the
interfaces are configured as trunk ports.
show running-config
Example:
Switch# show running-config
Step 8
When the trunk links come up, Switch A receives the
VTP information from the other switches. This command
show vlan
Example:
Switch# show vlan
Step 9
verifies that Switch A has learned the VLAN
configuration.
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 10
Defines the interface on which to set the STP cost, and
enters interface configuration mode.
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/1
Step 11
Sets the spanning-tree path cost to 30 for VLANs 2
through 4.
spanning-tree vlan vlan-range cost cost-value
Example:
Switch(config-if)# spanning-tree vlan 2-4 cost
Step 12
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
2147
How to Configure VLAN Trunks