14-15
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
OL-4266-08
Chapter 14 Configuring VLANs
Configuring VLANs
Configuring VLAN Translation on a Trunk Port
To translate VLANs on a trunk port, perform this task:
This example shows how to map VLAN 1649 to VLAN 755 Gigabit Ethernet port 5/2:
Router#
configure terminal
Router(config)#
interface gigabitethernet 5/2
Router(config-if)#
switchport vlan mapping 1649 755
Router(config-if)#
end
Router#
This example shows how to verify the configuration:
Router#
show interface gigabitethernet 5/2 vlan mapping
State: enabled
Original VLAN Translated VLAN
------------- ---------------
1649 755
Enabling VLAN Translation on Other Ports in a Port Group
To enable VLAN translation on other ports in a port group, perform this task:
Command
Purpose
Step 1
Router(config)#
interface
type
1
slot/port
1.
type
=
ethernet
,
fastethernet
,
gigabitethernet
, or
tengigabitethernet
Selects the Layer 2 trunk port to configure.
Step 2
Router(config-if)#
switchport vlan mapping enable
Enables VLAN translation.
Step 3
Router(config-if)#
switchport vlan mapping
original_vlan_ID
translated_vlan_ID
Translates a VLAN to another VLAN. The valid range is
1 to 4094.
When you configure a VLAN mapping from the original
VLAN to the translated VLAN on a port, traffic arriving
on the original VLAN gets mapped or translated to the
translated VLAN at the ingress of the switch port, and the
traffic internally tagged with the translated VLAN gets
mapped to the original VLAN before leaving the switch
port. This method of VLAN mapping is a two-way
mapping.
Router(config-if)#
no switchport vlan mapping
{
all
|
original_vlan_ID
translated_vlan_ID
}
Deletes the mapping.
Step 4
Router(config-if)#
end
Exits configuration mode.
Step 5
Router#
show interface
type
1
slot/port
vlan
mapping
Verifies the VLAN mapping.
Command
Purpose
Step 1
Router(config)#
interface
type
1
slot/port
Selects the LAN port to configure.
Step 2
Router(config-if)#
switchport vlan mapping enable
Enables VLAN translation.
Router(config-if)#
no switchport vlan mapping
enable
Disables VLAN translation.