2-855
Catalyst 3750 Switch Command Reference
OL-8552-07
Chapter 2 Catalyst 3750 Switch Cisco IOS Commands
switchport private-vlan
switchport private-vlan
Use the
switchport private-vlan
interface configuration command to define a private-VLAN
association for an isolated or community port or a mapping for a promiscuous port. Use the
no
form of
this command to remove the private-VLAN association or mapping from the port.
switchport private-vlan
{
association
{
host
primary-vlan-id
secondary-vlan-id
|
mapping
primary-vlan-id
{
add
|
remove
}
secondary-vlan-list
} |
host-association
primary-vlan-id
secondary-vlan-id
|
mapping
primary-vlan-id
{
add
|
remove
}
secondary-vlan-list
}
no switchport private-vlan
{
association
{
host
|
mapping
} |
host-association
|
mapping
Syntax Description
Defaults
The default is to have no private-VLAN association or mapping configured.
Command Modes
Interface configuration
Command History
Usage Guidelines
Private-VLAN association or mapping has no effect on the port unless the port has been configured as
a private-VLAN host or promiscuous port by using the
switchport mode private-vlan
{
host
|
promiscuous
} interface configuration command.
If the port is in private-VLAN host or promiscuous mode but the VLANs do not exist, the command is
allowed, but the port is made inactive.
The
secondary_vlan_list
parameter cannot contain spaces. It can contain multiple comma-separated
items. Each item can be a single private-VLAN ID or a hyphenated range of private-VLAN IDs. The list
can contain one isolated VLAN and multiple community VLANs.
association
Define a private-VLAN association for a port.
host
Define a private-VLAN association for a community or isolated host port.
primary-vlan-id
The VLAN ID of the private-VLAN primary VLAN. The range is from 2 to
1001 and 1006 to 4094.
secondary-vlan-id
The VLAN ID of the private-VLAN secondary (isolated or community) VLAN.
The range is from 2 to 1001 and 1006 to 4094.
mapping
Define private-VLAN mapping for a promiscuous port.
add
Associate secondary VLANs to the primary VLAN.
remove
Clear the association between secondary VLANs and the primary VLAN.
secondary-vlan-list
One or more secondary (isolated or community) VLANs to be mapped to the
primary VLAN.
host-association
Define a private-VLAN association for a community or isolated host port.
Release
Modification
12.2(20)SE
This command was introduced.