Displaying And Clearing Private Vlan Statistics; Configuration Examples For Private Vlans - 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

Displaying and Clearing Private VLAN Statistics

To display private VLAN configuration information, perform one of the following tasks:
Command
clear vlan [id vlan-id] counters
show vlan counters

Configuration Examples for Private VLANs

The following example shows how to create the three types of private VLANs, how to associate the secondary
VLANs to the primary VLAN, how to create a private VLAN host and promiscuous port and assign them to
the correct VLAN, and how to create a VLAN interface, or SVI, to allow the primary VLAN to communicate
with the rest of the network:
switch# configure terminal
switch(config)# vlan 2
switch(config-vlan)# private-vlan primary
switch(config-vlan)# exit
switch(config)# vlan 3
switch(config-vlan)# private-vlan community
switch(config-vlan)# exit
switch(config)# vlan 4
switch(config-vlan)# private-vlan isolated
switch(config-vlan)# exit
switch(config)# vlan 2
switch(config-vlan)# private-vlan association 3,4
switch(config-vlan)# exit
switch(config)# interface ethernet 1/11
switch(config-if)# switchport
switch(config-if)# switchport mode private-vlan host
switch(config-if)# exit
switch(config)# interface ethernet 1/12
switch(config-if)# switchport
switch(config-if)# switchport mode private-vlan promiscuous
switch(config-if)# exit
switch(config)# interface ethernet 1/11
switch(config-if)# switchport private-vlan host-association 2 3
switch(config-if)# exit
switch(config)# interface ethernet 1/12
switch(config-if)# switchport private-vlan mapping 2 3,4
switch(config-if)# exit
switch(config)# interface vlan 2
switch(config-vlan)# private-vlan mapping 3,4
switch(config-vlan)# exit
switch(config)#
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x

Displaying and Clearing Private VLAN Statistics

Purpose
Clears counters for all VLANs or for a specified
VLAN.
Displays information on Layer 2 packets in each
VLAN.
85

Advertisement

Table of Contents
loading

Table of Contents