Purpose
Command 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
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......