switchport hybrid allowed vlan

This topic explains the command that adds an interface to one or more VLANs as a tagged or untagged member.

Syntax

switchport hybrid allowed vlan add vlan-list [tagged | untagged]

Parameter

vlan-list: The VLAN ID or list of IDs to which the interface must be added. The vlan-list parameter represents a single VLAN ID (Example: 3), a range of VLAN IDs in which the IDs are separated by a hyphen (Example: 5-9), or a combination of both, in which the single IDs and ranges of IDs are separated by one or more commas (Example: 3,5-9,14,101-104). VLAN IDs can be from 1 to 4094.

tagged: Optional keyword that sets the interface as a tagged member of the VLAN or VLANs.

untagged: Optional keyword that sets the interface as an untagged member of the VLAN or VLANs.

Default

Each interface is an untagged member of VLAN 1.

When you add an interface to a VLAN, by default it is a tagged member.

Mode

Interface Configuration

Usage

Use this command to add an interface to a VLAN.

You can verify your setting in the output of the show interfaces switchport command.

Example: This example shows how to add interface g10 as a tagged member to VLANs 100, 101, 102, 103, 104, and 105:
CODE
Switch (config)# interface g10
Switch (config-if)# switchport hybrid allowed vlan add 100-105
Example: This example shows the output of the show interfaces switchport command for interface g10:
CODE
Switch# show interfaces switchport g10
Port : g10
Port Mode : Hybrid
Ingress Filtering : disabled
Acceptable Frame Type : tagged-only
Ingress UnTagged VLAN ( NATIVE ) : 100
Trunking VLANs Enabled:

Port is member in:
 Vlan        Name                       Egress rule
------- ------------------------------- -----------------
    1        default                    Untagged
  100       VLAN-one-hundred            Tagged
  101       VLAN0101                    Tagged
  102       VLAN0102                    Tagged
  103       VLAN0103                    Tagged
  104       VLAN0104                    Tagged
  105       VLAN0105                    Tagged

Forbidden VLANs:
 Vlan     Name
------- -----------------------