OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : VLAN and Private VLAN Commands : switchport private-vlan host-association
switchport private-vlan host-association
Use this command to associate a primary VLAN and a secondary VLAN to a host port. Only one primary and secondary VLAN can be associated to a host port.
Use the no form of this command to remove the association.
Command Syntax
switchport private-vlan host-association <2-4094> add <2-4094>
no switchport private-vlan host-association
Parameters
<2-4094>
VLAN identifier of the primary VLAN.
add
Adds the secondary VLAN.
<2-4094>
VLAN identifier of the secondary VLAN (either isolated or community).
Default
By default, switchport mode private-vlan value is 1
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#switchport private-vlan host-association 2 add 3
 
#configure terminal
(config)#interface eth0
(config-if)#no switchport private-vlan host-association
Last modified date: 10/12/2023