TP-Link TL-SG3216 Switch User Manual


 
21
no switchport trunk allowed vlan vlan-list
Parameter
vlan-list —— Specify IEEE 802.1Q VLAN ID list, ranging from 2 to 4094, in the
format of 2-3, 5. It is multi-optional.
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet)
Example
Specify the Link Type of port 2 as trunk and add it to VLAN 2:
TL-SG3424(config)# interface gigabitEthernet 1/0/2
TL-SG3424(config-if)# switchport mode trunk
TL-SG3424(config-if)# switchport trunk allowed vlan 2
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 egress rule. To delete the
corresponding VLAN/VLANs, please use no switchport general allowed vlan
command.
Syntax
switchport general allowed vlan vlan-list { tagged | untagged }
no switchport general allowed vlan vlan-list
Parameter
vlan-list —— Specify IEEE 802.1Q VLAN ID list, ranging from 2 to 4094, in the
format of 2-3, 5. It is multi-optional.
tagged | untagged —— Egress ruleuntagged 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)
Example
Specify the Link Type of port 4 as general, then add it to VLAN 2 and configure
the egress rule of port 4 as tagged:
TL-SG3424(config)# interface gigabitEthernet 1/0/4
TL-SG3424(config-if)# switchport mode general