Configuring A Layer 2 Interface As A Private Vlan Host 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 Private VLANs Using NX-OS
Command or Action
Option
no private-vlan mapping
Example:
switch(config-if)# private-vlan mapping 100-105, 109
Step 4
exit
Example:
switch(config-if)# exit
switch(config)#
Step 5
show interface vlan primary-vlan-id private-vlan mapping
Example:
switch(config)# show interface vlan 101 private-vlan
mapping
Step 6
copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
This example shows how to map the secondary VLANs 100 through 105 and 109 on the Layer 3 interface of
the primary VLAN 5:
switch # config t
switch(config)# interface vlan 5
switch(config-if)# private-vlan mapping 100-105, 109
switch(config-if)# exit
switch(config)#

Configuring a Layer 2 Interface as a Private VLAN Host Port

You can configure a Layer 2 interface as a private VLAN host port. In private VLANs, host ports are part of
the secondary VLANs, which are either community VLANs or isolated VLANs.
We recommend that you enable BPDU Guard on all interfaces configured as a host port.
Note
You then associate the host port with both the primary and secondary VLANs.
Before You Begin
Ensure that the private VLAN feature is enabled.
Description
Clears the mapping to the Layer 3
interface between the secondary VLANs
and the primary VLANs.
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
Configuring a Layer 2 Interface as a Private VLAN Host Port
Purpose
Exits interface configuration mode.
(Optional)
Displays the interface private VLAN
information.
(Optional)
Copies the running configuration to the startup
configuration.
71

Advertisement

Table of Contents
loading

Table of Contents