Configuring Vlan Translation On A Trunk 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 VLANs

Configuring VLAN Translation on a Trunk Port

You can configure VLAN translation between the ingress VLAN and a local VLAN on a port. The traffic
arriving on the ingress VLAN maps to the local VLAN at the ingress of the trunk port and the traffic that is
internally tagged with the translated VLAN ID is mapped back to the original VLAN ID before leaving the
switch port.
Before You Begin
• Ensure that the physical or port channel on which you want to implement VLAN translation is configured
• Ensure that the translated VLANs are created on the switch and are also added to the Layer 2 trunk ports
• For FEX port-channel trunk interfaces, the last VLAN in the allowed VLAN list must be associated with
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# interface type port
Step 3
switch(config-if)# [no] switchport vlan
mapping enable
Step 4
switch(config-if)# [no] switchport vlan
mapping vlan-id translated-vlan-id
Step 5
switch(config-if)# [no] switchport vlan
translation all
Step 6
switch(config-if)# copy running-config
startup-config
as a Layer 2 trunk port.
trunk-allowed VLAN vlan-list.
a translated VLAN in one of the VLAN maps configured on the FEX fabric interface.
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.x
Purpose
Enters global configuration mode.
Enters interface configuration mode.
(Optional)
Enables VLAN translation on the switch port after VLAN translation is
explicitly disabled. VLAN translation is enabled by default.
Use the no form of this command to disable VLAN
Note
translation.
Translates a VLAN to another VLAN.
• The range for both the vlan-id and translated-vlan-id arguments is
from 1 to 4094.
• When you configure a VLAN mapping between a VLAN and a (local)
VLAN on a port, traffic arriving on the VLAN gets mapped or
translated to the local VLAN at the ingress of the switch port, and the
traffic internally tagged with the translated VLAN ID gets mapped to
the original VLAN ID before leaving the switch port. This method of
VLAN mapping is a two-way mapping.
Note
Use the no form of this command to clear the mappings between
a pair of VLANs.
Removes all VLAN translations configured on the interface.
(Optional)
Copies the running configuration to the startup configuration.
The VLAN translation configuration does not become effective
Note
until the switch port becomes an operational trunk port
Configuring VLAN Translation on a Trunk Port
37

Advertisement

Table of Contents
loading

Table of Contents