Configuring Vlan Mapping - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 29
Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling

Configuring VLAN Mapping

The following procedures show how to configure each type of VLAN mapping on trunk ports. To verify
your configuration, enter either the show interfaces interface-id vlan mapping or the
show vlan mapping privileged EXEC command. See the
Status" section on page 29-18
commands in this section, see the Catalyst 4500 Series Switch Software Command Reference for this
release.
The following VLAN mapping types are discussed:
One-to-One Mapping
To configure one-to-one VLAN mapping to map a customer VLAN ID to a service-provider VLAN ID,
perform this task:
Command
Step 1
Switch# configure terminal
Step 2
Switch(config)# interface
interface-id
Step 3
Switch(config-if)# switchport mode
trunk
Step 4
Switch(config-if)# switchport vlan
mapping vlan-id translated-id
Step 5
Switch# end
Step 6
Switch# show vlan mapping
Step 7
Switch# copy running-config
startup-config
Use the no switchport vlan mapping vlan-id translated-id command to remove the VLAN mapping
information. Entering the no switchport vlan mapping all command deletes all mapping
configurations.
This example shows how to map VLAN IDs 1 to 5 in the customer network to VLANs 101 to 105 in the
service-provider network
in Switch A and Switch B; the traffic on all other VLAN IDs is dropped.
Switch(config)# interface gigabiethernet0/1
Switch(config-if)# switchport vlan mapping 1 101
Switch(config-if)# switchport vlan mapping 2 102
Switch(config-if)# switchport vlan mapping 3 103
OL_28731-01
One-to-One Mapping, page 29-11
Traditional Q-in-Q on a Trunk Port, page 29-12
Selective Q-in-Q on a Trunk Port, page 29-12
Purpose
Enters global configuration mode.
Enters interface configuration mode for the interface connected to the
service-provider network. You can enter a physical interface or an
EtherChannel port channel.
Configures the interface as a trunk port.
Enters the VLAN IDs to be mapped:
Note
Returns to privileged EXEC mode.
Verifies the configuration.
(Optional) Saves your entries in the configuration file.
(Figure
for the syntax of these commands. For more information about all
vlan-id—the customer VLAN ID (C-VLAN) entering the switch
from the customer network. The range is from 1 to 4094.
translated-id—the assigned service-provider VLAN ID (S-VLAN).
The range is from 1 to 4094.
Packets with unconfigured vlan_ids are dropped.
29-5). You configure the same VLAN mapping commands for a port
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
Configuring VLAN Mapping
"Monitoring and Maintaining Tunneling
29-11

Advertisement

Table of Contents
loading

Table of Contents