EasyManuals Logo

Cisco Catalyst 4500 Series Software Configuration Guide

Cisco Catalyst 4500 Series
2086 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #881 background imageLoading...
Page #881 background image
30-11
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 30 Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling
Configuring VLAN Mapping
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 (Figure 30-5). You configure the same VLAN mapping commands for a port
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
Switch(config-if)# switchport vlan mapping 4 104
Switch(config-if)# switchport vlan mapping 4 105
Switch(config-if)# exit
In the previous example, at the ingress of the service-provider network, VLAN IDs 1 to 5 in the customer
network are mapped to VLANs 101 to 105, in the service provider network. At the egress of the service
provider network, VLANs 101 to 105 in the service provider network are mapped to VLAN IDs 1 to 5,
in the customer network.
Note Packets with unconfigured vlan_ids are dropped.
Traditional Q-in-Q on a Trunk Port
To configure VLAN mapping for traditional Q-in-Q on a trunk port or tunneling by default, perform the
following task:
Note Configuring tunneling by default bundles all packets on the port into the configured S-VLAN.
Entering the no switchport vlan mapping all command deletes all mapping configurations.
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# interface
interface-id
Enters interface configuration mode for the interface connected to the
service provider network. You can enter a physical interface or an
EtherChannel port channel.
Step 3
Switch(config-if)# switchport mode
trunk
Configures the interface as a trunk port.
Step 4
Switch(config-if)# switchport trunk
allowed vlan vlan-id
Configures the outer VLAN of the service provider network (S-VLAN) to
to be allowed on the interface. This should be the same outer VLAN ID
entered in the next step.
Step 5
Switch(config-if)# end
Returns to privileged EXEC mode.
Step 6
Switch# show interfaces
interface-id vlan mapping
Verifies the configuration.
Step 7
Switch# copy running-config
startup-config
(Optional) Saves your entries in the configuration file.

Table of Contents

Other manuals for Cisco Catalyst 4500 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco Catalyst 4500 Series and is the answer not in the manual?

Cisco Catalyst 4500 Series Specifications

General IconGeneral
SeriesCatalyst 4500 Series
CategorySwitch
Layer SupportLayer 2, Layer 3
Form FactorModular chassis
StackableNo
Chassis Slots3, 6, 7, 10
Power Supply OptionsAC, DC
RedundancyPower supply, Supervisor engine
Network ManagementCisco IOS Software CLI, SNMP, Cisco Prime Infrastructure
FeaturesSecurity, QoS
Port DensityUp to 384 ports per chassis
Security Features802.1X, ACLs, DHCP Snooping, Dynamic ARP Inspection, IP Source Guard
Supervisor Engine8-E

Related product manuals