Specifications
2-865
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport private-vlan association trunk
switchport priva te-vlan association trunk
To configure the association between a secondary VLAN and a VLAN on a private VLAN trunk port, use
the switchport private-vl an 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-vl an association trunk {p rimary-vlan -id}
Syntax Description
Defaults Private VLAN mapping is disabled.
Command Modes Interface configur ation mode
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 c an 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, an y packets received on the secon dary VLANs are dropped.
Examples This example shows how to configure a port with a prima ry VLAN (VLAN 18) and second ary 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)#
This example shows how to configure interf ace FastEthernet 5/2 a s a secondary trunk port, an d verify
the configuration:
Switch# configure terminal
Switch(config)# interface fastethernet 5/2
Switch(config-if)# switchport mode private-vlan trunk secondary
Switch(config-if)# switchport private-vlan trunk native vlan 10
Switch(config-if)# switchport private-vlan trunk allowed vlan 10. 3-4
Switch(config-if)# switchport private-vlan association trunk 3 301
Switch(config-if)# end
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.