VLAN Commands

4-239

4
Command Usage
All ports assigned to a secondary (i.e., community) VLAN can pass traffic
between group members, but must communicate with resources outside of the
group via promiscuous ports in the associated primary VLAN.
Example

switchport private-vlan mapping

Use this command to map an interface to a primary VLAN. Use the no form to
remove this mapping.
Syntax
switchport private-vlan mapping primary-vlan-id
no switchport private-vlan mapping
primary-vlan-id – ID of primary VLAN. (Range: 1-4094, no leading zeroes).
Default Setting
None
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
Promiscuous ports assigned to a primary VLAN can communicate with any
other promiscuous ports in the same VLAN, and with the group members
within any associated secondary VLANs.
Example

show vlan private-vlan

Use this command to show the private VLAN configuration settings on this switch.
Syntax
show vlan private-vlan [community | primary]
community – Displays all community VLANs, along with their associated
primary VLAN and assigned host interfaces.
primary – Displays all primary VLANs, along with any assigned
promiscuous interfaces.
Console(config)#interface ethernet 1/3
Console(config-if)#switchport private-vlan host-association 3
Console(config-if)#
Console(config)#interface ethernet 1/2
Console(config-if)#switchport private-vlan mapping 2
Console(config-if)#