2-468
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco 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 VLANs 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 the 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
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.
If there is no trunk association, any packets received on 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 PVLAN association from the port:
Switch(config-if)# no switchport private-vlan association trunk 18
Switch(config-if)#
Related Commands show interfaces switchport
switchport mode
primary-vlan-id Number of the primary VLAN of the PVLAN 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.