Configuring Port VLAN Mapping on a Trunk Port
Before You Begin
• Ensure that the physical or port channel on which you want to implement VLAN translation is configured
as a Layer 2 trunk port.
• Ensure that the translated VLANs are created on the switch and are also added to the Layer 2 trunk ports
trunk-allowed VLAN vlan-list.
Note
• Ensure that all translated VLANs are VXLAN enabled.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Cisco Nexus 9000 Series NX-OS VXLAN Configuration Guide, Release 7.x
22
As a best practice, do not add the ingress VLAN ID to the switchport allowed vlan-list
under the interface.
Command or Action
configure terminal
interface type port
[no] switchport vlan
mapping enable
[no] switchport vlan
mapping vlan-id
translated-vlan-id
[no] switchport vlan
mapping all
copy running-config
startup-config
Purpose
Enters global configuration mode.
Enters interface configuration mode.
Enables VLAN translation on the switch port. VLAN translation
is disabled 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.
• You can configure VLAN translation between the ingress
(incoming) VLAN and a local (translated) VLAN on a port.
For the traffic arriving on the interface where VLAN
translation is enabled, the incoming VLAN is mapped to a
translated VLAN that is VXLAN enabled.
On the underlay, this is mapped to a VNI, the inner dot1q is
deleted, and switched over to the VXLAN network. On the
egress switch, the VNI is mapped to a translated VLAN. On
the outgoing interface, where VLAN translation is configured,
the traffic is converted to the original VLAN and egress out.
Use the no form of this command to clear the mappings
Note
between a pair of VLANs.
Removes all VLAN mappings configured on the interface.
(Optional)
Copies the running configuration to the startup configuration.
Configuring VXLAN