switchport private-vlan association trunk

To associate an isolated trunk port with the primary and secondary VLANs of a private VLAN, use the switchport private-vlan association trunk command. To remove the isolated trunk port association, use the no form of this command.

switchport private-vlan association trunk primary-id secondary-id

no switchport private-vlan association trunk

Syntax Description


Primary VLAN ID. The range is from 1 to 3967 and from 4048 to 4093.


Secondary VLAN ID. The range is from 1 to 3967 and from 4048 to 4093.

Command Default


Command Modes

Interface configuration mode

Command History



This command was introduced.

Usage Guidelines

The secondary VLAN should be an isolated VLAN. Only one isolated VLAN under a given primary VLAN can be associated to an isolated trunk port.


This example shows how to map the secondary VLANs to the primary VLAN:

switch(config)# interface ethernet 1/1 
switch(config-if)# switchport mode private-vlan trunk secondary 
switch(config-if)# switchport private-vlan association trunk 5 100 

Related Commands


show interface switchport

Displays information on all interfaces configured as switch ports.

switchport mode private-vlan trunk

Configures the port as a secondary trunk port for a private VLAN.

show vlan private-vlan

Displays the status of the private VLAN.