Specifications
8-10
Cisco MWR 2941 Mobile Wireless Edge Router Release 3.5 Software Configuration Guide, Cisco IOS Release 15.1(3)MR
OL-26895-01
Chapter 8 Configuring IEEE 802.1Q Tunneling and Layer 2 Protocol Tunneling
Configuring VLAN Mapping
This example shows how to bundle all traffic on the port to leave the router with the S-VLAN ID of 100.
Router(config)# interface gigabiethernet0/1
Router(config-if)# switchport mode dot1q-tunnel
Router(config-if)# switchport access vlan 100
Router(config-if)# exit
Configuring Selective QinQ on a Tunnel Port
Beginning in privileged EXEC mode, follow these steps to configure VLAN mapping for selective QinQ
on a trunk port. Note that you can configure one-to-one mapping and selective QinQ on the same
interface, but you cannot use the same C-VLAN IDs in both configurations.
Use the no switchport vlan mapping vlan-id outer vlan-id command to remove the VLAN mapping
configuration. Entering no switchport vlan mapping all deletes all mapping configurations.
This example shows how to configure selective QinQ mapping on the port so that traffic with a C-VLAN
ID of 1 to 5 enters the router with an S-VLAN ID of 100. The traffic of any other VLAN IDs is tagged
as VLAN 123.
Router(config)# interface gigabiethernet0/1
Router(config-if)# switchport mode dot1q-tunnel
Router(config-if)# switchport access vlan 123
Router(config-if)# switchport vlan mapping 1 100
Router(config-if)# switchport vlan mapping 2 100
Router(config-if)# switchport vlan mapping 3 100
Router(config-if)# switchport vlan mapping 4 100
Router(config-if)# switchport vlan mapping 5 100
Step 6
show running-config interface type
number
Verify the configuration.
Step 7
copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
interface interface-id Enter interface configuration mode for the interface connected to the
service-provider network.
Step 3
switchport mode dot1q-tunnel Configure the interface as a 802.1Q port.
Step 4
switchport vlan mapping
original-vlan-id translated-vlan-id
Enter the VLAN IDs to be mapped:
• vlan-id—the customer VLAN ID (C-VLAN) entering the router from
the customer network. The range is from 1 to 4094. You can enter a
string of VLAN-IDs.
• outer-vlan-id—Enter the outer VLAN ID (S-VLAN) of the
service-provider network. The range is from 1 to 4094.
Step 5
end Return to privileged EXEC mode.
Step 6
show running-config interface type
number
Verify the configuration.
Step 7
copy running-config startup-config (Optional) Save your entries in the configuration file.