18 
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 [vlan-id]{ untagged | tagged } 
Parameter 
vlan-id —— VLAN ID, ranging from 1 to 4094. By default , display all the 
information of IEEE 802.1Q VLAN. 
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 in vlan 3as tagged: 
TP-LINK(config)# interface ethernet 2