Cisco Systems N3KC3048TP1GE association, Before You Begin, Procedure, Command or Action, Step

Models: N3KC3064TFAL3 N3KC3048TP1GE

1 164
Download 164 pages 5.98 Kb
Page 58
Image 58
association

Configuring Private VLANs

Associating Secondary VLANs with a Primary Private VLAN

The secondary-vlan-listparameter can contain multiple community VLAN IDs and one isolated VLAN ID.

Enter a secondary-vlan-listor use the add keyword with a secondary-vlan-listto associate secondary VLANs with a primary VLAN.

Use the remove keyword with a secondary-vlan-listto clear the association between secondary VLANs and a primary VLAN.

You change the association between a secondary and primary VLAN by removing the existing association and then adding the desired association.

If you delete either the primary or secondary VLAN, the VLAN becomes inactive on the port where the association is configured. When you enter the no private-vlancommand, the VLAN returns to the normal VLAN mode. All primary and secondary associations on that VLAN are suspended, but the interfaces remain in PVLAN mode. If you again convert the specified VLAN to PVLAN mode, the original associations are reinstated.

If you enter the no vlan command for the primary VLAN, all PVLAN associations with that VLAN are lost. However, if you enter the no vlan command for a secondary VLAN, the PVLAN associations with that VLAN are suspended and are reinstated when you recreate the specified VLAN and configure it as the previous secondary VLAN.

Before You Begin

Ensure that the PVLAN feature is enabled.

Procedure

 

Command or Action

Step 1

switch# configure terminal

Step 2

switch(config)# vlan primary-vlan-id

Step 3

switch(config-vlan)# private-vlan

 

association {[add] secondary-vlan-list

 

remove secondary-vlan-list}

Manual background Purpose

Manual background Enters configuration mode.

Enters the number of the primary VLAN that you are working in for the PVLAN configuration.

Associates the secondary VLANs with the primary VLAN. Use the remove keyword with a secondary-vlan-listto clear the association between secondary VLANs and a primary VLAN.

Step 4

switch(config-vlan)# no private-vlan

(Optional)

 

association

Removes all associations from the primary VLAN and

 

 

returns it to normal VLAN mode.

This example shows how to associate community VLANs 100 through 110 and isolated VLAN 200 with primary VLAN 5:

switch# configure terminal switch(config)# vlan 5

switch(config-vlan)#private-vlan association 100-110, 200

 

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

44

OL-26590-01

Page 58
Image 58
Cisco Systems N3KC3048TP1GE association, Before You Begin, Procedure, Command or Action, Step, switch# configure terminal