Configuring an Interface as a Private VLAN Promiscuous Port
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
Step 1
Step 2
Step 3
Step 4
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
Command or Action
switch(config-if)# no switchport
private-vlan host-association
Command or Action
switch# configure terminal
switch(config)# interface type slot/port
switch(config-if)# switchport mode
private-vlan promiscuous
switch(config-if)# switchport
private-vlan mapping {primary-vlan-id}
{secondary-vlan-list | add
secondary-vlan-list | remove
secondary-vlan-list}
switch(config-if)# no switchport
private-vlan mapping
Configuring a Private VLAN
Purpose
(Optional)
Removes the private VLAN association from the
port.
Purpose
Enters configuration mode.
Selects the port to configure as a private VLAN
promiscuous port. A physical interface is required.
This port cannot be on a Fabric Extender.
Configures the port as a promiscuous port for a private
VLAN. You can only enable a physical Ethernet port
as the promiscuous port.
Configures the port as a promiscuous port and
associates the specified port with a primary VLAN
and a selected list of secondary VLANs. The
secondary VLAN can be either an isolated or
community VLAN.
(Optional)
Clears the mapping from the private VLAN.
OL-16597-01