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] switchport hybrid allowed vlan add vlan-list switchport hybrid allowed vlan remove vlan-list

Parameter

vlan-list: The VLAN ID or list of IDs to which the interface must be added or removed. 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.

Use the switchport hybrid allow vlan remove port configuration command to remove vlan on interface.

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

Example: This example sets port 1/0/10 to join the VLANs 100, 101, 102, 103, 104, and 105 as tagged member, then removes VLAN 105:
CODE
Switch (config)# interface 1/0/10
Switch (config-if)# switchport hybrid allowed vlan add 100-105
Switch (config-if)# switchport hybrid allowed vlan remove 105
Switch# show interfaces switchport 1/0/10
Port : 1/0/10
Port Mode : Hybrid
Gvrp Status : disabled
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
  
Forbidden VLANs:
 Vlan     Name
------- -----------------------