set vlans vlan-id private-vlan mode
The set vlans vlan-id private-vlan mode command configures the PVLAN mode of a VLAN.
Command Syntax
set vlans vlan-id <vlan-id> private-vlan mode <primary | community | isolated>
Parameter
Parameter | Description |
vlan-id <vlan-id> | Specifies the VLAN ID. The value is an integer that ranges from 1 to 4094. |
private-vlan mode <primary | community | isolated> | Specifies the PVLAN mode of a VLAN. The value could be primary, community or isolated.
|
Usage Guidelines
PVLAN function involves the following VLAN types:
Primary VLAN: allows member interfaces to communicate with each other and with interfaces in secondary VLANs.
Secondary VLAN
Isolated VLAN: allows member interfaces to communicate with only interfaces in the primary VLAN. An interface in an isolated VLAN cannot communicate with interfaces in the same VLAN or other secondary VLANs.
Community VLAN: allows member interfaces to communicate with each other within the same VLAN and interfaces in the primary VLAN. An interface in a secondary VLAN cannot communicate with interfaces in other secondary VLANs.
NOTE: If you want to change a private VLAN to a normal VLAN, you need to remove the configurations for PVLAN-related binding relationship before you can remove the PVLAN mode configuration. For example, if you use the set vlans vlan-id <vlan-id> private-vlan association <secondary-vlan-list> command for PVLAN association, remove the binding relationship first before you can change the private VLAN to a normal VLAN. Similarly, it also requires to remove the private VLAN relevant configuration before changing the role of a private VLAN to another PVLAN type, e.g. when changing the PVLAN type from primary VLAN to secondary VLAN. |
Example
Configure a primary VLAN.
admin@Xorplus# set vlans vlan-id 2 private-vlan mode primary
admin@Xorplus# commit
Copyright © 2025 Pica8 Inc. All Rights Reserved.