Configuring the Native VLAN for Untagged Traffic A trunk port configured with IEEE 802.1Q tagging can receive both tagged and untagged traffic. By default, the device forwards untagged traffic in the native VLAN configured for the port. The native VLAN is VLAN 1 by default. The native VLAN can be assigned any VLAN ID. 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 device sends the packet with a tag. Procedure Configuring VLAN Trunks Configuring the Native VLAN for Untagged Traffic Command or Action Purpose 1/0/1 switchport Step 7 copy running-config startup-config Example:
Device# copy running-config startup-config (Optional) Saves your entries in the configuration file. Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 interface interface-id Example: Device(config)# interface gigabitethernet 1/0/2 Defines the interface that is configured as the IEEE 802.1Q trunk, and enters interface configuration mode. Step 4 switchport trunk native vlan vlan-id Example:
Device(config-if)# switchport trunk native vlan 12 Configures the VLAN that is sending and receiving untagged traffic on the trunk port. For vlan-id, the range is 1 to 4094. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 54