TL-SL5428E
 
24-port 10/100Mbps + 4-port Gigabit L2 Managed Switch CLI Guide
 
19 
TP-LINK(config)# interface Ethernet 2 
TP-LINK(config-if)# switchport allowed vlan add 2 
switchport pvid 
Description 
The  switchport pvid command is used to configure the PVID for the switch 
ports. 
Syntax 
switchport pvid vlan-id  
Parameter 
vlan-id    —— VLAN ID, ranging from 1 to 4094. 
Command Mode 
Interface Configuration Mode (interface ethernet / interface range ethernet ) 
Example 
Specify the PVID of port 2 as 2: 
TP-LINK(config)# interface Ethernet 2 
TP-LINK(config-if)# switchport pvid 2   
switchport general egress-rule 
Description 
The  switchport general egress-rule command is used to configure the 
egress-rule of the general port. 
Syntax 
switchport general egress-rule { untagged | tagged } 
Parameter 
untagged | tagged    ——egress-rule,untagged or tagged 
Command Mode 
Interface Configuration Mode ( interface ethernet / interface range ethernet ) 
Example 
Specify the egress-rule of port 2 as tagged: 
TP-LINK(config)# interface Ethernet 2