user manual
DETAILED STEPS
PurposeCommand or Action
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Specifies the port to be configured, and enters interface
configuration mode.
interface interface-id
Example:
Switch(config)# interface
Step 2
gigabitethernet1/0/1
Configures the interface as a VLAN trunk port.switchport mode trunk
Example:
Switch(config-if)# switchport mode trunk
Step 3
(Optional) Configures the list of VLANs allowed on the trunk.switchport trunk allowed vlan {add | all | except
| none | remove} vlan-list
Step 4
The vlan-list parameter is either a single VLAN number from 1
to 4094 or a range of VLANs described by two VLAN numbers,
Example:
Switch(config-if)# switchport trunk allowed
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 5
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 6
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Step 7
Example:
Switch# copy running-config startup-config
To return to the default allowed VLAN list of all
VLANs, use the no switchport trunk allowed vlan
interface configuration command.
Note
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
70 OL-29440-01
Configuring VLAN Trunks
Configuring an Ethernet Interface as a Trunk Port