DETAILED STEPS
PurposeCommand or Action
Entersthe global configurationmode.configureterminal
Example:
Switch# configure terminal
Step 1
Specifiesthe port tobe configuredfor trunking,and entersinterface
configurationmode.
interfaceinterface-id
Example:
Switch(config)# interface
Step 2
gigabitethernet1/0/2
Configuresthe interface as a Layer 2 trunk (required only if the
interfaceis a Layer 2 access port or tunnel port or to specify the
trunkingmode).
switchportmode {dynamic {auto |desirable}
|trunk}
Example:
Switch(config-if)# switchport mode
Step 3
dynamicautoSets the interface to a trunk link if the
neighboringinterface is setto trunkor desirablemode. Thisis
thedefault.
dynamic desirable
dynamicdesirableSets the interface to a trunk link if the
neighboringinterface is setto trunk,desirable, or auto mode.
trunkSetsthe interface in permanent trunking mode and
negotiateto convert the link to a trunk link even if the
neighboringinterface is nota trunkinterface.
(Optional)Specifies the default VLAN, which is used if the interface
stopstrunking.
switchportaccess vlan vlan-id
Example:
Switch(config-if)# switchport access vlan
Step 4
200
Specifiesthe native VLAN for IEEE 802.1Q trunks.
switchporttrunk native vlanvlan-id
Example:
Switch(config-if)# switchport trunk
Step 5
native vlan 200
Returnsto privileged EXEC mode.end
Example:
Switch(config)# end
Step 6
Catalyst 2960-XR Switch VLAN Configuration Guide, Cisco IOS Release 15.0(2)EX1
68 OL-29440-01
Configuring VLAN Trunks
Configuring an Ethernet Interface as a Trunk Port