Configuring Vlan Mapping For Selective Q-In-Q On A Private Vlan Secondary Trunk Port - Cisco Nexus 3000 Series Configuration Manual

Nx-os layer 2 switching configuration guide, release 6.x
Hide thumbs Also See for Nexus 3000 Series:
Table of Contents

Advertisement

Configuring Private VLANs
Step 10
This example shows how to configure the Layer 2 port 2/1 as a promiscuous trunk port associated with two
primary VLANs and their associated secondary VLANs:
switch# config t
switch(config)# interface ethernet 2/1
switch(config-if)# switchport
switch(config-if)# switchport mode private-vlan trunk promiscuous
switch(config-if)# switchport private-vlan trunk allowed vlan add 1
switch(config-if)# switchport private-vlan mapping trunk 2 add 3
switch(config-if)# switchport private-vlan mapping trunk 4 add 5
switch(config-if)# switchport private-vlan mapping trunk 1 add 20
switch(config-if)# exit
switch(config)#
Configuring VLAN Mapping for Selective Q-in-Q on a Private
VLAN Secondary Trunk Port
To configure VLAN mapping for selective Q-in-Q on a Private VLAN secondary trunk port, complete the
following steps.
Procedure
Step 1
Step 2
Step 3
Step 4
OL-29545-03

Configuring VLAN Mapping for Selective Q-in-Q on a Private VLAN Secondary Trunk Port

Command or Action
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
Command or Action
switch# configure terminal
switch(config)# interface
interface-id
switch(config-if)# switchport mode
private-vlan trunk secondary
switch(config-if)# switchport vlan
mapping vlan-id-range all
dot1q-tunnel outer vlan-id
Cisco Nexus 3000 Series NX-OS Layer 2 Switching Configuration Guide, Release 6.x
Purpose
(Optional)
Copies the running configuration to the startup
configuration.
Purpose
Enters global configuration mode.
Enters interface configuration mode for the interface
connected to the service provider network. You can enter
a physical interface or an EtherChannel port channel.
Configure the interface as a Private VLAN secondary
trunk port.
Enters the VLAN IDs to be mapped:
• vlan-id-range—The customer VLAN ID range
(C-VLAN) entering the switch from the customer
network. The range is from 1 to 4094. You can enter
a string of VLAN-IDs.
• all—Accepts all the VLAN IDs (C-VLAN) entering
the switch from the customer network.
35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents