2-1059
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport private-vlan association trunk
switchport private-vlan association trunk
To configure the association between a secondary VLAN and a VLAN on a private VLAN trunk port, use
the switchport private-vlan association trunk command. To remove the private VLAN mapping from
the port, use the no form of this command.
switchport private-vlan association trunk {primary-vlan-id} {secondary-vlan-id}
no switchport private-vlan association trunk {primary-vlan-id}
Syntax Description
Defaults Private VLAN mapping is disabled.
Command Modes Interface configuration mode
Command History
Usage Guidelines Multiple private VLAN pairs can be specified so that a private VLAN trunk port can carry multiple
secondary VLANs. If an association is specified for the existing primary VLAN, the existing association
is replaced.
Only isolated secondary VLANs can be carried over a private VLAN trunk.
Note Community secondary VLANs on a private VLAN trunk are not supported in this release.
If there is no trunk association, any packets received on the secondary VLANs are dropped.
Examples This example shows how to configure a port with a primary VLAN (VLAN 18) and secondary VLAN
(VLAN 20):
Switch(config-if)# switchport private-vlan association trunk 18 20
Switch(config-if)#
This example shows how to remove the private VLAN association from the port:
Switch(config-if)# no switchport private-vlan association trunk 18
Switch(config-if)#
primary-vlan-id Number of the primary VLAN of the private VLAN relationship.
secondary-vlan-id Number of the secondary VLAN of the private VLAN relationship.
Release Modification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.2(20)EW Support for community VLAN was added.