User Manual

Table Of Contents
[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.
[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)
SWX232x(config-vlan)#vlan 100
SWX232x(config-vlan)#vlan 101
SWX232x(config-vlan)#vlan 102
SWX232x(config-vlan)#vlan 103
SWX232x(config-vlan)#private-vlan 100 primary
SWX232x(config-vlan)#private-vlan 101 community
SWX232x(config-vlan)#private-vlan 102 community
SWX232x(config-vlan)#private-vlan 103 isolated
SWX232x(config-vlan)#private-vlan 100 association add 101
SWX232x(config-vlan)#private-vlan 100 association add 102
SWX232x(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
[Description]
Specifies the port type of the applicable interface as an access port.
[Note]
This command can be specified only for LAN/SFP port and logical interface.
If this command is applied to a logical interface, the settings of every LAN/SFP port associated with that interface are changed.
If the port type is changed from a trunk port to an access port, the setting of the switchport trunk allowed vlan command and
the switchport trunk native vlan command return to their default settings.
To specify the VLAN that is associated as an access port, use the switchport access vlan command.
[Example]
Set LAN port #1 as an access port.
SWX232x(config)#interface port1.1
SWX232x(config-if)#switchport mode access
6.2.6 Set associated VLAN of an access port (untagged port)
[Syntax]
switchport access vlan vlan-id
no switchport access vlan
[Parameter]
vlan-id : <1-4094>
Associated VLAN ID
[Initial value]
switchport access vlan 1
196 | Command Reference | Layer 2 functions