User Manual

[Initial value]
none
[Input mode]
interface mode
[Description]
Specifies the private VLAN port type for the applicable interface.
If this is executed with the "no" syntax, the setting of the private VLAN specified for the applicable interface is deleted.
[Note]
This command can be set only for a LAN/SFP port for which the switchport mode access command is set.
In addition, promiscuous can be specified for the following interfaces.
Interface that is operating as a trunk port
logical interface
[Example]
Set LAN port #1 as a promiscuous port, and LAN port #2 as a host port.
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#switchport mode private-vlan promiscuous
SWR2311P(config-if)#exit
SWR2311P(config)#interface port1.2
SWR2311P(config-if)#switchport mode private-vlan host
6.2.11 Set private VLAN host port
[Syntax]
switchport private-vlan host-association pri-vlan-id add 2nd-vlan-id
no switchport private-vlan host-association
[Keyword]
add : Sets the secondary VLAN for the primary VLAN
[Parameter]
pri-vlan-id : <2-4094>
VLAN ID specified as the primary VLAN
2nd-vlan-id : <2-4094>
VLAN ID specified as the secondary VLAN
[Initial value]
none
[Input mode]
interface mode
[Description]
Specifies the primary VLAN that is associated as the host port of the private VLAN for the applicable interface, and associates
the secondary VLAN.
If this is executed with the "no" syntax, the setting of the primary VLAN associated as the host port of the applicable interface,
and the association of the secondary VLAN, are deleted.
[Note]
This command can be set only for a LAN/SFP port that has been set as the host port by the switchport mode private-vlan
command.
pri-vlan-id and 2nd-vlan-id must be associated by the private-vlan association command.
If the switchport mode private-vlan command is used to set the port type to something other than host port, the setting of this
command is deleted.
[Example]
Specify the following private VLAN for each interface.
LAN port #1 : Primary VLAN #100, Secondary VLAN #101
LAN port #2 : Primary VLAN #100, Secondary VLAN #102
LAN port #3 : Primary VLAN #100, Secondary VLAN #103
178 | Command Reference |
Layer 2 functions