private-vlan vlan-id association remove 2nd-vlan-ids
no private-vlan vlan-id association
[Keyword]
add : Associate the specified VLAN
remove : Remove the association of the specified VLAN
[Parameter]
vlan-id : <2-4094>
VLAN ID specified for the primary VLAN
2nd-vlan-ids : <2-4094>
VLAN ID specified for the secondary VLAN
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
[Initial value]
none
[Input mode]
VLAN mode
[Description]
Specify the association of the secondary VLAN (isolated VLAN, community VLAN) with the primary VLAN of the private
VLAN.
By specifying "add," specify the association of the vlan-id with the 2nd-vlan-ids.
By specifying "remove," remove the association of the vlan-id and the 2nd-vlan-ids.
If this command is executed with the "no" syntax, all associations to the primary VLAN are deleted.
[Note]
If you specify the private-vlan association add command with a combination of "-" or "," in the 2nd-vlan-ids, the command
setting will fail if you revert to an older version (Rev.2.00.08 or earlier). As a result, normal communication might become
impossible. (Example setting: private-vlan 100 association add 101,103-105)
[Example]
After specifying the following private VLAN, associate the secondary VLANs to the primary VLAN.
• 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
SWR2311P(config-vlan)#private-vlan 100 association add 101
SWR2311P(config-vlan)#private-vlan 100 association add 102
SWR2311P(config-vlan)#private-vlan 100 association add 103
6.2.5 Set access port (untagged port)
[Syntax]
switchport mode access
[Initial value]
switchport mode access
[Input mode]
interface mode
162 | Command Reference |
Layer 2 functions