Configuration Guide Vol. 1


26.6.3 Configuring Native VLAN for Protocol Ports

Points to note

Set a native VLAN for handling untagged frames that do not match the protocol set for a protocol port. Only port VLANs can be set for a native VLAN.

When the VLAN ID of a native VLAN is specified for the switchport protocol native vlan command, it becomes the VLAN for handling untagged frames that do not match the protocol on the protocol port. The native VLAN is VLAN 1 (the default VLAN) unless explicitly specified otherwise in the configuration.

If state suspend command is set for the native VLAN, frames that do not match the set protocol are not forwarded.

Command examples

  1. (config)# vlan 10,20 protocol-based

    (config-vlan)# exit

    (config)# vlan 30

    (config-vlan)# exit

    Creates VLANs 10 and 20 as protocol VLANs. Then, creates VLAN 30 as a port VLAN.

  2. (config)# interface gigabitethernet 1/0/1

    (config-if)# switchport mode protocol-vlan

    Switches to the Ethernet interface configuration mode for port 1/0/1. Then, sets the port as a protocol port.

  3. (config-if)# switchport protocol native vlan 30

    (config-if)# switchport protocol vlan 10,20

    Sets the native VLAN for protocol port 1/0/1 to port VLAN 30, making it the VLAN that handles untagged frames that do not match the set protocol. The command also sets protocol VLANs 10 and 20.