Virtual Local Area Network (VLAN) Commands
OL-32830-01 Command Line Interface Reference Guide
•
The association of secondary VLANs with a primary VLAN cannot be
removed if there are private VLAN ports that are members in the secondary
VLAN.
•
In MSTP mode, all the VLANs that are associated with a private VLAN must
be mapped to the same instance.
Example
The following example associate secondary VLAN 20,21,22 and 24 to primary
VLAN 2.
switchxxxxxx(config)#
switchxxxxxx(config-if)#
56.30 switchport private-vlan mapping
Use the switchport private-vlan mapping Interface Configuration mode command
to configure the VLANs of the private VLAN promiscuous port. Use the no form of
this command to reset to default.
Syntax
switchport private-vlan mapping
secondary-vlan-list
no switchport private-vlan mapping
Parameters
•
primary-vlan-id
•
add
secondary-vlan-list
added to the port.
•
secondary-vlan-list
remove
be removed from the port.
Default Configuration
No VLAN is configured.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
interface vlan 2
private-vlan association add 20-22,24
primary-vlan-id
—The VLAN ID of the primary VLAN.
—Specifies one or more secondary VLANs to be
—Specifies one or more secondary VLANs to
[add | remove]
56
1082