CLI Reference Guide

40
secondary VLAN 4:
TL-SG5428(config)#interface gigabitEthernet 1/0/3
TL-SG5428(config-if)#switchport private-vlan host-association 3 4
switchport private-vlan mapping
Description
The switchport private-vlan mapping command is used to add promiscuous
type port to private VLAN. To remove the port from Private VLAN, please use no
switchport private-vlan mapping command.
Syntax
switchport private-vlan mapping primary_vlan_id secondary_vlan_id
no switchport private-vlan mapping primary_vlan_id secondary_vlan_id
Parameter
primary-vlan-id —— Primary VLAN ID, ranging from 2 to 4094.
secondary-vlan-id —— Secondary VLAN ID, ranging from 2 to 4094.
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet)
Example
Configure promiscuous type Gigabit Ethernet port 3 as a member of primary
VLAN 3 and secondary VLAN 4:
TL-SG5428(config)#interface gigabitEthernet 1/0/3
TL-SG5428(config-if)#switchport private-vlan mapping 3 4
show vlan private-vlan
Description
The show vlan private-vlan command is used to display the Private VLAN
configuration information of the switch.
Syntax
show vlan private-vlan