• If you use the
switchport trunk allowed vlan
command to specify the associated VLAN ID, and then specify this
command, it is removed from the specified VLAN ID.
• If the VLAN ID specified by this command is associated using the
switchport trunk allowed vlan
command,
switchport
trunk native vlan none
is specified.
[Example]
Set LAN port #1 as the trunk port, and specify VLAN #2 as the native VLAN.
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#switchport mode trunk
SWR2311P(config-if)#switchport trunk native vlan 2
6.2.10 Set private VLAN port type
[Syntax]
switchport
mode
private-vlan
port-type
no
switchport
mode
private-vlan
port-type
[Parameter]
port-type
:
Port mode
Setting value
Description
promiscuous
Promiscuous port
host
Host port
[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
166
| Command Reference | Layer 2 functions