Multiple VLAN IDs can be specified for
vlan-id
. However, if multiple VLAN IDs are specified, the name cannot be specified.
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".
SWR2311P(config-vlan)#vlan 1000 name Sales
6.2.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 command 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)
SWR2311P(config-vlan)#vlan 100
SWR2311P(config-vlan)#vlan 101
SWR2311P(config-vlan)#vlan 102
SWR2311P(config-vlan)#vlan 103
SWR2311P(config-vlan)#private-vlan 100 primary
SWR2311P(config-vlan)#private-vlan 101 community
SWR2311P(config-vlan)#private-vlan 102 community
SWR2311P(config-vlan)#private-vlan 103 isolated
6.2.4 Set secondary VLAN for primary VLAN
[Syntax]
private-vlan
vlan-id
association
add
2nd-vlan-ids
Command Reference | Layer 2 functions |
161