User Manual

[Note]
If this command is executed with "name" omitted for a VLAN ID for which name is already specified, the already-specified
name is not changed.
Multiple VLAN IDs can be specified for vlan-id. However, if multiple VLAN IDs are specified, the name cannot be specified.
Also, multiple VLAN IDs cannot be specified when using the "no" syntax.
To specify multiple items, use "-" or "," as shown below
To select from VLAN #2 through VLAN #4: 2-4
To select VLAN #2 and VLAN #4: 2,4
[Example]
Set VLAN #1000 with the name "Sales".
SWP1(config-vlan)#vlan 1000 name Sales
11.1.3 Set private VLAN
[Syntax]
private-vlan vlan-id type
no private-vlan vlan-id type
[Parameter]
vlan-id : <2-4094>
VLAN ID set by the vlan command
type : Type of private VLAN
Setting value Description
primary Primary VLAN
community Secondary VLAN (community VLAN)
isolated Secondary VLAN (isolated VLAN)
[Initial value]
none
[Input mode]
VLAN mode
[Description]
Uses vlan-id as a private VLAN.
If this is executed with the "no" syntax, the private VLAN setting is deleted, and it is used as a conventional VLAN.
[Note]
If this is set as a community VLAN, it can communicate with the promiscuous port of the primary VLAN and with another
interface that is associated with the same community VLAN, but cannot communicate with a different community VLAN or
with an interface that is associated with an isolated VLAN.
If this is set as an isolated VLAN, it can communicate with the promiscuous port of the primary VLAN, but cannot
communicate with the community VLAN or with another interface that is associated with an isolated VLAN.
[Example]
Set the following private VLANs.
VLAN #100: Primary VLAN
VLAN #101: Secondary VLAN (community VLAN)
VLAN #102: Secondary VLAN (community VLAN)
VLAN #103: Secondary VLAN (isolated VLAN)
SWP1(config-vlan)#vlan 100
SWP1(config-vlan)#vlan 101
SWP1(config-vlan)#vlan 102
SWP1(config-vlan)#vlan 103
SWP1(config-vlan)#private-vlan 100 primary
SWP1(config-vlan)#private-vlan 101 community
SWP1(config-vlan)#private-vlan 102 community
SWP1(config-vlan)#private-vlan 103 isolated
Command Reference | L2 switching function | 121