2-539
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set port vlan-mapping
set port vlan-mapping
To configure VLAN mapping on a per-port basis, use the set port vlan-mapping command.
set port vlan-mapping mod/port {enable | disable}
set port vlan-mapping mod/port source_vlan_id translated_vlan_id
Syntax Description
Defaults VLAN mapping is disabled on all ports.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines VLAN mapping occurs only if you enter the set port vlan-mapping mod/port enable command and only
if the port is operationally trunking. The set port vlan-mapping mod/port source_vlan_id
translated_vlan_id command takes effect only after VLAN mapping is enabled.
When you enable VLAN mapping and specify a source_vlan_id value and a translated_vlan_id value,
traffic coming in on a trunk port with the source_vlan_id value is translated to the VLAN with the
translated_vlan_id value. Also, any traffic internally tagged with the translated_vlan_id value is tagged
with the source_vlan_id value before leaving the port.
Some port ASICs support VLAN mapping only on a per-ASIC basis, but VLAN mapping is enabled or
disabled on a per-port basis. With these types of ASICs, the set port vlan-mapping mod/port
{enable|disable } command is applied only to the port configuration and not to the ASIC.
You cannot enable global VLAN mapping and per-port/per-ASIC VLAN mapping simultaneously.
Examples This example shows how to enable VLAN mapping on a specified port:
Console> (enable) set port vlan-mapping 7/1 enable
VLAN mapping enabled on port 7/1.
Console> (enable)
mod/port Number of the module and the port on the module.
enable Enables VLAN mapping.
disable Disables VLAN mapping.
source_vlan_id Number of the source VLAN; valid values are from 1 to 4094.
translated_vlan_id Number of the VLAN that is mapped to the source VLAN; valid values are
from 1 to 4094.