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 for trunking, and enters interface
configuration mode.
interface interface-id
Example:
Switch(config)# interface
Step 2
gigabitethernet1/0/2
Configures the interface as a Layer 2 trunk (required only if the
interface is a Layer 2 access port or tunnel port or to specify the
trunking mode).
switchport mode {dynamic {auto | desirable}
| trunk}
Example:
Switch(config-if)# switchport mode
Step 3
dynamic autoSets the interface to a trunk link if the
neighboring interface is set to trunk or desirable mode. This is
the default.
dynamic desirable
dynamic desirableSets the interface to a trunk link if the
neighboring interface is set to trunk, desirable, or auto mode.
trunkSets the interface in permanent trunking mode and
negotiate to convert the link to a trunk link even if the
neighboring interface is not a trunk interface.
(Optional) Specifies the default VLAN, which is used if the interface
stops trunking.
switchport access vlan vlan-id
Example:
Switch(config-if)# switchport access vlan
Step 4
200
Specifies the native VLAN for IEEE 802.1Q trunks.
switchport trunk native vlan vlan-id
Example:
Switch(config-if)# switchport trunk
Step 5
native vlan 200
Returns to 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