Command Line Reference Guide

Private VLAN (PVLAN) | 793
switchport mode private-vlan
c s
Set the PVLAN mode of the selected port.
Syntax
[no] switchport mode private-vlan {host | promiscuous | trunk}
To remove the PVLAN mode from the selected port, use the no switchport mode private-vlan
command.
Parameters
Defaults
disabled
Command Modes
INTERFACE
Command
History
Usage
Information
The assignment of the various PVLAN port types to port and port channel (LAG) interfaces is
demonstrated below.
Example
Figure 30-6. Examples of switchport mode private-vlan Command
Related
Commands
host Enter host to configure the selected port or port channel as an isolated interface in a
PVLAN, as described above.
promiscuous Enter promiscuous to configure the selected port or port channel as an
promiscuous interface, as described above.
trunk Enter trunk to configure the selected port or port channel as a trunk port in a PVLAN,
as described above.
Version 8.3.5.0 Introduced on S55
Version 7.8.1.0 Introduced on C-Series and S-Series
Force10#conf
Force10(conf)#interface GigabitEthernet 2/1
Force10(conf-if-gi-2/1)#switchport mode private-vlan promiscuous
Force10(conf)#interface GigabitEthernet 2/2
Force10(conf-if-gi-2/2)#switchport mode private-vlan host
Force10(conf)#interface GigabitEthernet 2/3
Force10(conf-if-gi-2/3)#switchport mode private-vlan trunk
Force10(conf)#interface port-channel 10
Force10(conf-if-gi-2/3)#switchport mode private-vlan promiscuous
private-vlan mode Set the mode of the selected VLAN to either community or isolated.
private-vlan mapping
secondary-vlan
Set the mode of the selected VLAN to primary and then associate
secondary VLANs to it.
show interfaces private-vlan Display type and status of PVLAN interfaces.
show vlan private-vlan mapping Display primary-secondary VLAN mapping.