user manual
PurposeCommand or Action
Displays the switch port configuration of the interface in the
Administrative Mode and the Administrative Trunking Encapsulation
fields of the display.
show interfaces interface-id switchport
Example:
Switch# show interfaces
Step 7
gigabitethernet1/0/2 switchport
Displays the trunk configuration of the interface.
show interfaces interface-id trunk
Example:
Switch# show interfaces
Step 8
gigabitethernet1/0/2 trunk
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Step 9
Example:
Switch# copy running-config
To return an interface to its default configuration, use the
default interface interface-id interface configuration
command. To reset all trunking characteristics of a trunking
interface to the defaults, use the no switchport trunk
interface configuration command. To disable trunking, use
the switchport mode access interface configuration command
to configure the port as a static-access port.
Note
startup-config
Related Topics
Feature Interactions, on page 66
Example: Configuring an IEEE 802.1Q Trunk, on page 80
Defining the Allowed VLANs on a Trunk
VLAN 1 is the default VLAN on all trunk ports in all Cisco switches, and it has previously been a requirement
that VLAN 1 always be enabled on every trunk link. You can use the VLAN 1 minimization feature to disable
VLAN 1 on any individual VLAN trunk link so that no user traffic (including spanning-tree advertisements)
is sent or received on VLAN 1.
SUMMARY STEPS
1.
configure terminal
2.
interface interface-id
3.
switchport mode trunk
4.
switchport trunk allowed vlan {add | all | except | none | remove} vlan-list
5.
end
6.
show interfaces interface-id switchport
7.
copy running-config startup-config
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29440-01 69
Configuring VLAN Trunks
Configuring an Ethernet Interface as a Trunk Port