39
Syntax
switchport private-vlan { promiscuous | host }
no switchport private-vlan { promiscuous | host }
Parameter
promiscuous | host —— Configure the private VLAN mode for the switchport.
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet)
Example
Configure Gigabit Ethernet port 3 as “host”:
TL-SG5428(config)#interface gigabitEthernet 1/0/3
TL-SG5428(config-if)#switchport private-vlan host
switchport private-vlan host-association
Description
The switchport private-vlan host-association command is used to add host
type port to private VLAN. To remove the port from Private VLAN, please use no
switchport private-vlan host-association command.
Syntax
switchport private-vlan host-association primary_vlan_id secondary_vlan_id
no switchport private-vlan host-association 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 host type Gigabit Ethernet port 3 as a member of primary VLAN 3 and