Traditional Q-In-Q On A Trunk Port - Cisco Catalyst 4500 Series Configuration Manual

Release ios xe 3.3.0sg and ios 15.1(1)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Configuring VLAN Mapping
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:
Configuring tunneling by default bundles all packets on the port into the configured S-VLAN.
Note
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 trunk
allowed vlan vlan-id
Step 5
Switch(config-if)# end
Step 6
Switch# show interfaces
interface-id vlan mapping
Step 7
Switch# copy running-config
startup-config
Entering the no switchport vlan mapping all command deletes all mapping configurations.
Selective Q-in-Q on a Trunk Port
To configure VLAN mapping for selective Q-in-Q on a trunk port, perform this task:
Note
You cannot configure one-to-one mapping and selective Q-in-Q on the same interface.
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
27-12
Chapter 27
Configuring 802.1Q Tunneling, VLAN Mapping, and Layer 2 Protocol Tunneling
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.
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.
Returns to privileged EXEC mode.
Verifies the configuration.
(Optional) Saves your entries in the configuration file.
OL-25340-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents