DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
235
switchport hybrid allowed vlan {[add] {tagged | untagged} | remove}
VLAN-ID
[, | -]
no switchport hybrid allowed vlan
Parameters
add
Specifies the port will be added into the specified VLAN(s).
remove
Specifies the port will be removed from the specified VLAN(s).
tagged
Specifies the port as a tagged member of the specified VLAN(s).
untagged
Specifies the port as an untagged member of the specified
VLAN(s).
VLAN-ID
Specified the allowed VLAN list or the VLAN list to be added to or
removed from the allow VLAN list. If no option is specified, the
specified VLAN list will overwrite the allowed VLAN list.
,
(Optional) Specifies a series of VLANs, or separate a range of
VLANs from a previous range. No space is required before and
after the comma.
-
(Optional) Specifies a range of VLANs. No space is required before
and after the hyphen.
Default
By default, a hybrid port is an untagged member port of VLAN 1.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
By setting the hybrid VLAN command multiple times with different VLAN IDs, a port can be a tagged member
port or an untagged member port of multiple VLANs.
When the allowed VLAN is only specified as the VLAN ID, the succeeding command will overwrites the
previous command. If the new untagged allowed VLAN list is overlap with the current tagged allowed VLAN
list, the overlap part will change to the untagged allowed VLAN. On the other hand, if the new tagged allowed
VLAN list is overlap with current untagged allowed VLAN list, the overlap part will change to the tagged allowed
VLAN. The last command will take effect. The VLAN does not need to exist to configure the command.
Example
This example shows how to configure interface eth1/0/1 to be a tagged member of VLAN 1000 and an
untagged member of VLAN 2000 and 3000.
Switch# configure terminal
Switch(config)# interface Ethernet 1/0/1
Switch(config-if)# switchport mode hybrid
Switch(config-if)# switchport hybrid allowed vlan add tagged 1000
Switch(config-if)# switchport hybrid allowed vlan add untagged 2000,3000
Switch(config-if)#