private-vlan primary
Use private-vlan primary to configure a VLAN as a primary VLAN.
Use undo private-vlan primary to restore the default.
Syntax
private-vlan primary
undo private-vlan primary
Default
A VLAN is not a primary VLAN.
Views
VLAN view
Predefined user roles
network-admin
Usage guidelines
The configuration synchronization is triggered based on the interface configuration when the following conditions exist:
This command is configured for a VLAN that has been associated with secondary VLANs.
Ports on the device are promiscuous, trunk promiscuous, host, or trunk secondary ports.
For more information, see the port private-vlan host, port private-vlan promiscuous, or port private-vlan trunk promiscuous, or port private-vlan trunk secondary command.
Examples
# Configure VLAN 5 as a primary VLAN.
<Sysname> system-view [Sysname] vlan 5 [Sysname-vlan5] private-vlan primary
Related commands
port private-vlan host
port private-vlan promiscuous
port private-vlan trunk promiscuous
port private-vlan trunk secondary
private-vlan primary