Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

PurposeCommand or Action
(Optional)
Removes the private VLAN association from the
port.
switch(config-if)# no switchport
private-vlan host-association
Step 5
This example shows how to configure Ethernet port 1/12 as a host port for a private VLAN and associate it
to primary VLAN 5 and secondary VLAN 101:
switch# configure terminal
switch(config)# interface ethernet 1/12
switch(config-if)# switchport mode private-vlan host
switch(config-if)# switchport private-vlan host-association 5 101
Configuring an Interface as a Private VLAN Promiscuous Port
In a private VLAN domain, promiscuous ports are part of the primary VLAN. Configuring a promiscuous
port involves two steps. First, you define the port as a promiscuous port and then you configure the mapping
between a secondary VLAN and the primary VLAN.
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
promiscuous port. A physical interface is required.
This port cannot be on a Fabric Extender.
switch(config)# interface type slot/port
Step 2
Configures the port as a promiscuous port for a private
VLAN. You can only enable a physical Ethernet port
as the promiscuous port.
switch(config-if)# switchport mode
private-vlan promiscuous
Step 3
Configures the port as a promiscuous port and
associates the specified port with a primary VLAN
switch(config-if)# switchport
private-vlan mapping {primary-vlan-id}
Step 4
and a selected list of secondary VLANs. The
{secondary-vlan-list | add
secondary VLAN can be either an isolated or
community VLAN.
secondary-vlan-list | remove
secondary-vlan-list}
(Optional)
Clears the mapping from the private VLAN.
switch(config-if)# no switchport
private-vlan mapping
Step 5
This example shows how to configure Ethernet interface 1/4 as a promiscuous port associated with primary
VLAN 5 and secondary isolated VLAN 200:
switch# configure terminal
switch(config)# interface ethernet 1/4
switch(config-if)# switchport mode private-vlan promiscuous
switch(config-if)# switchport private-vlan mapping 5 200
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
96 OL-16597-01
Configuring a Private VLAN
Configuring an Interface as a Private VLAN Promiscuous Port