R211x-HP Flexfabric 11900 Layer 2 - LAN Switching Command Reference
192
triggered based on the interface configuration. For more information, see the port private-vlan host, port
private-vlan promiscuous, or port private-vlan trunk promiscuous command.
Examples
# Associate primary VLAN 2 with secondary VLANs 3 and 4.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] private-vlan secondary-vlan 3 to 4
Related commands
• primary-vlan primary
• port private-vlan host
• port private-vlan promiscuous
• port private-vlan trunk promiscuous
private-vlan primary
Use private-vlan primary to configure the VLAN as a primary VLAN.
Use undo private-vlan primary to cancel the primary VLAN configuration of the VLAN.
Syntax
private-vlan primary
undo private-vlan primary
Default
A VLAN is not a primary VLAN.
Views
VLAN view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
The configuration synchronization is triggered based on the interface configuration when both of the
following conditions are true:
• This command is configured for a VLAN that has been associated with secondary VLANs.
• Some ports on the device are operating in promiscuous mode, trunk promiscuous mode, or host
mode.
For more information, see the port private-vlan host, port private-vlan promiscuous, or port private-vlan
trunk promiscuous command.
Examples
# Configure VLAN 5 as a primary VLAN.
<Sysname> system-view
[Sysname] vlan 5
[Sysname-vlan5] private-vlan primary










