11-17
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 11 Configuring VLANs
Configuring VLAN Mappings on a Per-Port or Per-ASIC Basis
Enabling or Disabling VLAN Mapping on an Individual Port
Note
Before using the
set port vlan-mapping
command to configure VLAN mapping on an individual port,
you must enable port VLAN mapping by entering the
set port vlan-mapping
mod/port
enable
command.
Enter the
set port vlan-mapping
mod/port
{
enable
|
disable
}
command to enable or disable VLAN
mapping on an individual port. VLAN translation occurs only when the mapping is enabled and the port
is trunking. For the ASICs that support VLAN mapping only on a per-ASIC basis, but with the ability
to enable or disable VLAN mapping on an individual port basis, this command is applied to the port
configuration only and not to the ASIC. If you disable VLAN mapping, the mapping is still preserved.
VLAN mapping is disabled by default.
To enable or disable VLAN mapping on an individual port, perform this task in privileged mode:
This example shows how to enable VLAN mapping on an individual port:
Console>(enable)
set port vlan-mapping 7/1 enable
VLAN mapping enabled on port 7/1.
Console>(enable)
Configuring VLAN Mapping on an Individual Port
Note
Before using the
set port vlan-mapping
command, you must enable the port VLAN mapping by
entering the
set port vlan-mapping
mod/port
enable
command.
Note
The source VLAN is the trunk VLAN (external to the switch) and the translated VLAN is internal to the
switch.
Enter the
set port vlan-mapping
mod/port
source-vlan-id
translated-vlan-id
command to configure
VLAN mapping on an individual port. This command causes the traffic on the
source-vlan-id
to be
translated to the
translated-vlan-id
. All traffic that is internally tagged with the
translated-vlan-id
is
tagged with the
source-vlan-id
before leaving the port. The VLAN translation occurs only if the port is
trunking. This command accepts the full range of ports.
4.
WS-X6748-SFP does not have per-ASIC VLAN mapping. VLAN mapping is per-two ASICs: Ports 1 through 24 and ports 25 through 48 (instead of only 12
ports per ASIC).
5.
WS-X6704-10GE: Mapping can be enabled or disabled on individual ports in the ASIC. 128 per-port VLAN mappings supported.
Task
Command
Step 1
Enable or disable VLAN mapping on an
individual port.
set port vlan-mapping
mod/port
{
enable
|
disable
}
Step 2
Display VLAN mapping configuration.
show port vlan-mapping
[
mod
|
mod/port
]