Purpose
Command or Action
(Optional)
Removes the PVLAN mapping from the port. If the
primary-vlan-id
is not supplied, all PVLAN mappings are
removed from the port.
switch(config-if)#
no switchport
private-vlan mapping trunk
[
primary-vlan-id
]
Step 6
The following example shows how to configure Ethernet interface 1/1 as a promiscuous trunk port for a
PVLAN and then map the secondary VLANs to the primary VLAN:
switch#
configure terminal
switch(config)#
interface ethernet 1/1
switch(config-if)#
switchport
switch(config-if)#
switchport mode private-vlan trunk promiscuous
switch(config-if)#
switchport private-vlan mapping trunk 5 100
switch(config-if)#
switchport private-vlan mapping trunk 5 200
switch(config-if)#
switchport private-vlan mapping trunk 6 300
Configuring an Isolated Trunk Port
In a PVLAN domain, isolated trunks are part of a secondary VLAN. Isolated trunk ports can carry multiple
isolated VLANs. Configuring an isolated trunk port involves two steps. First, you define the port as an isolated
trunk port and then you configure the association between the isolated and primary VLANs. Multiple isolated
VLANs can be enabled by configuring multiple associations.
Before You Begin
Ensure that the PVLAN feature is enabled.
Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Selects the port to configure as a PVLAN isolated trunk
port. This port can be on a FEX (identified by the chassis
switch(config)#
interface type
[
chassis
/]
slot
/
port
Step 2
option). The PVLAN isolated trunk port can be configured
on a Ethernet port and on a FEX port.
If this is a 10G breakout port, the
slot
/
port
syntax
is
QSFP-module
/
port
.
Note
If this is a QSFP+ GEM or a breakout port, the
port
syntax is
QSFP-module
/
port
.
Note
Configures the interface as a Layer 2 interface and deletes
any configuration specific to Layer 3 on this interface.
switch(config-if)#
switchport
Step 3
Configures the port as a secondary trunk port for a PVLAN.
switch(config-if)#
switchport mode
private-vlan trunk
[
secondary
]
Step 4
The
secondary
keyword is assumed if it is not
present.
Note
Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
39
Configuring Private VLANs
Configuring an Isolated Trunk Port