Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Specify the name of VLAN 2 as "group1":
T1600G-52TS(config)# vlan 2
T1600G-52TS(config-vlan)# name group1
3.4 switchport general allowed vlan
Description
The switchport general allowed vlan command is used to add the desired
General port to IEEE 802.1Q VLAN and specify the port's type. To delete the
corresponding VLAN(s), please use no switchport general allowed vlan
command.
Syntax
switchport general allowed vlan
no switchport general allowed vlan
Parameter
vlan-list
format of 2-3, 5. It is multi-optional.
tagged | untagged —— Egress rule,untagged or tagged. Tagged: All packets
forwarded by the port are tagged. The packets contain VLAN information.
Untagged: Packets forwarded by the port are untagged.
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet / interface port-channel / interface range port-channel)
Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Add port 4 it to VLAN 2 and configure the type of port 1/0/4 as tagged:
T1600G-52TS(config)# interface gigabitEthernet 1/0/4
T1600G-52TS(config-if)# switchport general allowed vlan 2 tagged
—— Specify IEEE 802.1Q VLAN ID list, ranging from 2 to 4094, in the
vlan-list
{ tagged | untagged }
vlan-list
24