1247
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
switchport private-vlan association trunk
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
Command Default
None
Command Modes
Interface configuration mode
Command History
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.
Examples
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
switch(config-if)#
Related Commands
primary-id
Primary VLAN ID. The range is from 1 to 3967 and from 4048 to 4093.
secondary-id
Secondary VLAN ID. The range is from 1 to 3967 and from 4048 to 4093.
Release
Modification
5.2(1)N1(1)
This command was introduced.
Command
Description
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.