Example
This example associates primary private VLAN 200 with community private VLAN 2.
Console# config
Console(config)# vlan database
Console(config-vlan)# vlan 200
Console(config-vlan)# exit
Console(config)# interface vlan 200
Console(config-if)# private-vlan community add 2
switchport mode
The switchport mode Interface Configuration mode command configures the VLAN
membership mode of a port. To return to the default configuration, use the no form of this
command.
Syntax
switchport mode {access | trunk | general}
switchport mode private-vlan {promiscuous | community | isolated}
no switchport mode
•
access — Indicates an untagged layer 2 VLAN port.
•
trunk — Indicates a trunking layer 2 VLAN port.
•
general — Indicates a full 802-1q supported VLAN port.
•
promiscuous — Indicates a promiscuous private-vlan port.
•
community — Indicates a community private-vlan port.
•
isolated — Indicates an isolated private-vlan port.
Default Configuration
All ports are in access mode, and belong to the default VLAN (whose VID=1).
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
•
A port cannot be defined as promiscuous or isolated if it is a member of a VLAN.
•
If a port is defined as promiscuous or isolated, it is no longer a member of the default VLAN.
D E L L C O N F I D E N T I A L – P R E L I M I N A R Y 9 / 1 3 / 0 6 – F O R P R O O F O N LY
405
VLAN Commands