switchport hybrid remove vlan

This topic explains the command that removes an interface from one or more VLANs.

Syntax

switchport hybrid allowed vlan remove vlan-list

Parameter

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

Mode

Interface Configuration

Usage

Use this command to remove an interface from a VLAN.

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

Example

This example removes interface g10 from VLAN 105:

CODE
Switch (config)# interface g10
Switch (config-if)# switchport hybrid allowed vlan remove 105

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

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