Configuring A Vlan As A Private Vlan; Associating Secondary Vlans With A Primary Private Vlan - Cisco N5010P-N2K-BE Software Configuration Manual

Nx-os software configuration guide
Table of Contents

Advertisement

Chapter 7
Configuring Private VLANs
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m

Configuring a VLAN as a Private VLAN

To create a private VLAN, you first create a VLAN, and then configure that VLAN to be a private
VLAN. Ensure that the private VLAN feature is enabled.
To create a private VLAN, perform this task:
Command
Step 1
switch# configure terminal
Step 2
switch(config)# vlan {vlan-id |
vlan-range}
Step 3
switch(config-vlan)# private-vlan
{community | isolated | primary}
This example shows how to assign VLAN 5 to a private VLAN as the primary VLAN:
switch# configure terminal
switch(config)# vlan 5
switch(config-vlan)# private-vlan primary
This example shows how to assign VLAN 100 to a private VLAN as a community VLAN:
switch(config-vlan)# exit
switch(config)# vlan 100
switch(config-vlan)# private-vlan community
This example shows how to assign VLAN 109 to a private VLAN as an insolated VLAN:
switch(config-vlan)# exit
switch(config)# vlan 109
switch(config-vlan)# private-vlan isolated
To disable a private VLAN, perform this task:
Command
switch(config-vlan)# no private-vlan
{community | isolated | primary}

Associating Secondary VLANs with a Primary Private VLAN

When you associate secondary VLANs with a primary VLAN, follow these guidelines:
OL-16597-01
The secondary-vlan-list parameter cannot contain spaces. It can contain multiple comma-separated
items. Each item can be a single secondary VLAN ID or a hyphenated range of secondary VLAN
IDs.
The secondary-vlan-list parameter can contain multiple community and isolated VLAN IDs.
Purpose
Enters configuration mode.
Places you into the VLAN configuration submode.
Configures the VLAN as either a community,
isolated, or primary private VLAN. In a private
VLAN, you must have one primary VLAN. You can
have multiple community and isolated VLANs.
Purpose
Removes the private VLAN configuration from the
specified VLAN(s) and returns it to normal VLAN
mode. If you delete either the primary or secondary
VLAN, the ports that are associated with the VLAN
become inactive.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Configuring a Private VLAN
7-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nexus 5000 series

Table of Contents