If a packet has a VLAN ID that is the same as the outgoing port native VLAN ID, the packet is sent untagged;
otherwise, the switch sends the packet with a tag.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface interface-id
4.
switchport trunk native vlan vlan-id
5.
end
6.
show interfaces interface-id switchport
7.
copy running-config startup-config
DETAILED STEPS
PurposeCommand 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
Defines the interface that is configured as the IEEE 802.1Q
trunk, and enters interface configuration mode.
interface interface-id
Example:
Switch(config)# interface gigabitethernet1/0/2
Step 3
Configures the VLAN that is sending and receiving
untagged traffic on the trunk port.
switchport trunk native vlan vlan-id
Example:
Switch(config-if)# switchport trunk native vlan
Step 4
For vlan-id, the range is 1 to 4094.
12
Returns to privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 5
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
2140
How to Configure VLAN Trunks