switchport mode private-vlan
Use this command to make a Layer 2 port a host port, promiscuous port, or trunk port.
Use the no form of this command to remove the configuration.
Command Syntax
switchport mode private-vlan (host | promiscuous)
no switchport mode private-vlan
Parameters
host
This port type can communicate with all other host ports assigned to the same community VLAN, but it cannot communicate with the ports in the same isolated VLAN. All communications outside of this VLAN must pass through a promiscuous port in the associated primary VLAN.
promiscuous
A promiscuous port can communicate with all interfaces, including the community and isolated ports within a private VLAN
Default
By default, switchport mode private-vlan is host.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3 and changed in OcNOS version 3.0.
Example
#configure terminal
(config)#interface eth0
(config-if)#switchport mode private-vlan host
(config)#interface eth1
(config-if)#switchport mode private-vlan promiscuous
(config)#interface eth2
(config-if)#no switchport mode private-vlan
Last modified date: 07/06/2023