Configuring A Layer 2 Interface As A Private Vlan Promiscuous Port - Cisco Nexus 7000 Series Configuration Manual

Nx-os layer 2 switching
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Configuring a Layer 2 Interface as a Private VLAN Promiscuous Port

Command or Action
Example:
switch(config-if)# switchport private-vlan association
trunk 10 101
switch(config-if)#
Step 8
exit
Example:
switch(config-if)# exit
switch(config)#
Step 9
show interface switchport
Example:
switch# show interface switchport
Step 10
copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
This example shows how to configure the Layer 2 port 2/1 as a private VLAN isolated trunk port associated
with three different primary VLANs and an associated secondary VLAN:
switch# config t
switch(config)# interface ethernet 2/1
switch(config-if)# switchport mode private-vlan trunk secondary
switch(config-if)# switchport private-vlan trunk allowed vlan add 1
switch(config-if)# switchport private-vlan association trunk 10 101
switch(config-if)# switchport private-vlan association trunk 20 201
switch(config-if)# switchport private-vlan association trunk 30 102
switch(config-if)# exit
switch(config)#
Configuring a Layer 2 Interface as a Private VLAN Promiscuous Port
You can configure a Layer 2 interface as a private VLAN promiscuous port and then associate that promiscuous
port with the primary and secondary VLANs.
Before You Begin
Ensure that the private VLAN feature is enabled.
Ensure that you are in the correct VDC (or enter the switchto vdc command). You can repeat VLAN names
and IDs in different VDCs, so you must confirm that you are working in the correct VDC.
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
76
Configuring Private VLANs Using NX-OS
Purpose
Exits interface configuration mode.
(Optional)
Displays information on all interfaces configured as
switch ports.
(Optional)
Copies the running configuration to the startup
configuration.

Advertisement

Table of Contents
loading

Table of Contents