OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : VLAN and Private VLAN Commands : private-vlan association
private-vlan association
Use this command to associate a secondary VLAN to a primary VLAN. Only one isolated VLAN can be associated to a primary VLAN. Multiple community VLANs can be associated to a primary VLAN.
Use the no form of this command to remove association of all the secondary VLANs to a primary VLAN.
Command Syntax
private-vlan association add VLAN_RANGE
private-vlan association remove VLAN_RANGE
no private-vlan association
Parameters
add
Add a VLAN to private VLAN list.
remove
Removes values associated with a single VLAN.
VLAN_RANGE
Specify VLAN ID 1-4094 or range(s): 1-5, 10 or 2-5,7-19 of the private VLANs to be configured
Default
By default, functionality is disabled
Command Mode
VLAN Configuration mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#vlan database
(config-vlan)#private-vlan association add 3-4
(config-vlan)#private-vlan association remove 3-4
(config-vlan)#no private-vlan association
Last modified date: 07/06/2023