Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Before You Begin
Ensure that the private VLAN feature is enabled.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Selects the port to configure as a private VLAN isolated
trunk port. This port can be on a Fabric Extender
(identified by the chassis option).
switch(config)# interface type
[chassis/]slot/port
Step 2
Configures the port as a secondary trunk port for a
private VLAN.
switch(config-if)# switchport mode
private-vlan trunk [secondary]
Step 3
The secondary keyword is assumed if it is not
present.
Note
Associates the isolated trunk port with the primary and
secondary VLANs of a private VLAN. The secondary
switch(config-if)# switchport
private-vlan association trunk
{primary-vlan-id} {secondary-vlan-id}
Step 4
VLAN should be an isolated VLAN. Only one isolated
VLAN can be mapped under a given primary VLAN.
(Optional)
Removes the private VLAN association from the port.
If the primary-vlan-id is not supplied, all private VLAN
associations are removed from the port.
switch(config-if)# no switchport
private-vlan association trunk
[primary-vlan-id]
Step 5
This example shows how to configure Ethernet interface 1/1 as a promiscuous trunk port for a private VLAN
and then map the secondary VLANs to the primary VLAN:
switch# configure terminal
switch(config)# interface ethernet 1/1
switch(config-if)# switchport mode private-vlan trunk secondary
switch(config-if)# switchport private-vlan association 5 100
switch(config-if)# switchport private-vlan association 6 200
Configuring the Allowed VLANs for PVLAN Trunking Ports
Isolated trunk and promiscuous trunk ports can carry traffic from regular VLANs along with private VLANs.
Before You Begin
Ensure that the private VLAN feature is enabled.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
98 OL-16597-01
Configuring a Private VLAN
Configuring the Allowed VLANs for PVLAN Trunking Ports