T2700G-28TQ
JetStream 28-Port Gigabit Stackable L2+ Managed Switch CLI Guide
63
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
vlantype
no switchport private-vlan host-association
Parameter
primary-vlan-id
—— Primary VLAN ID, ranging from 2 to 4094.
secondary-vlan-id
—— Secondary VLAN ID, ranging from 2 to 4094.
vlantype
—— Specify the type of the secondary VLAN, either
community
or
isolated
.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Configure host type Gigabit Ethernet port 1/0/3 as a member of primary VLAN 3
and secondary VLAN 4, with the type of VLAN 4 as community:
T2700G-28TQ(config)#interface gigabitEthernet
1/0/3
T2700G-28TQ(config-if)#switchport private-vlan host-association
3 4
community
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.