225
# Configure port isolation at Layer 2 in secondary VLAN 4.
[Sysname] vlan 4
[Sysname-vlan4] private-vlan isolated
Related commands
private-vlan (VLAN view)
private-vlan community
private-vlan primary
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.
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