DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if
prompted.
enable
Example:
Switch>
enable
Step 1
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Specifies the port to be configured, and enters interface
configuration mode.
interface interface-id
Example:
Switch(config)#
interface
Step 3
gigabitethernet1/0/1
Configures the interface as a VLAN trunk port.
switchport mode trunk
Example:
Switch(config-if)#
switchport mode trunk
Step 4
(Optional) Configures the list of VLANs allowed on the trunk.
switchport trunk allowed vlan
{
add
|
all
|
except
|
remove
}
vlan-list
Step 5
The
vlan-list
parameter is either a single VLAN number from
1 to 4094 or a range of VLANs described by two VLAN
Example:
Switch(config-if)#
switchport trunk allowed
numbers, the lower one first, separated by a hyphen. Do not
enter any spaces between comma-separated VLAN parameters
or in hyphen-specified ranges.
vlan remove 2
All VLANs are allowed by default.
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 6
Verifies your entries in the
Trunking VLANs Enabled
field of
the display.
show interfaces interface-id switchport
Example:
Switch#
show interfaces gigabitethernet1/0/1
Step 7
switchport
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
2137
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: ......