Q-in-Q Vlan re-mapping on Metro 6524

Unanswered Question
Sep 25th, 2008
User Badges:


does anybody experienced problems in vlan remapping on Metro 6524 ?

This is my machine

sh ver

Cisco Internetwork Operating System Software

IOS (tm) s6523_rp Software (s6523_rp-ADVIPSERVICESK9-M), Version 12.2(18)ZU2, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2007 by cisco Systems, Inc.

Compiled Tue 30-Jan-07 03:51 by alnguyen

Image text-base: 0x40101040, data-base: 0x42D50000

ROM: System Bootstrap, Version 12.2(17r)SX3, RELEASE SOFTWARE (fc1)

BOOTLDR: s6523_rp Software (s6523_rp-ADVIPSERVICESK9-M), Version 12.2(18)ZU2, RELEASE SOFTWARE (fc2)

TSIswec0d uptime is 17 weeks, 6 days, 4 hours, 23 minutes

Time since TSIswec0d switched to active is 17 weeks, 6 days, 4 hours, 21 minutes

System returned to ROM by power-on (SP by power-on)

System image file is "sup-bootflash:s6523-advipservicesk9-mz.122-18.ZU2.bin"

This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:


If you require further assistance please contact us by sending email to

[email protected].

cisco ME-C6524GS-8S (R7000) processor (revision 1.3) with 458752K/65536K bytes of memory.

Processor board ID CAT1209C01F

R7000 CPU at 300Mhz, Implementation 0x27, Rev 3.3, 256KB L2, 1024KB L3 Cache

Last reset from power-on

SuperLAT software (copyright 1990 by Meridian Technology Corp).

X.25 software, Version 3.0.0.

Bridging software.

TN3270 Emulation software.

1 Virtual Ethernet/IEEE 802.3 interface

32 Gigabit Ethernet/IEEE 802.3 interfaces

1915K bytes of non-volatile configuration memory.

65536K bytes of Flash internal SIMM (Sector size 256K).

Configuration register is 0x2102

I try to explain my net config.

Basically I've a Huawei provider switch passing me the outer vlan as 726 on g1/31, my Juniper router is config on g1/25 with outer vlan 200 and inner 16 and 20.

Metro Ethernet

interface GigabitEthernet1/25

description towards router


switchport mode dot1q-tunnel

switchport vlan mapping enable

switchport vlan mapping 200 726

no ip address

no cdp enable

spanning-tree bpdufilter enable



interface GigabitEthernet1/31

description towards PROVIDER


switchport mode dot1q-tunnel

switchport vlan mapping enable

switchport vlan mapping 726 200

no ip address

no cdp enable

spanning-tree bpdufilter enable


> show configuration interfaces ge-7/1/3


mtu 1518;

unit 16 {

vlan-tags outer 200 inner 16;

family inet {




unit 20 {

vlan-tags outer 200 inner 20;

family inet {




Metro Ethernet should remap outer vlan incoming on g1/31 from 723 to 200 and on g1/25 from 200 to 723...

I'm pretty sure the Juniper firewall is config well, I'm not sure the Metro Ethernet is doing what expected.

Pls let me know if you have an idea.



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
william.caban Thu, 09/25/2008 - 09:52
User Badges:

AFAIK, if you specify outer vlan on the Juniper side you should configure the port in the Cisco as a regular 802.1q trunk and allow that particular outer vlan.

On the other side, if you configure the Cisco with the "dot1q-tunnel" statement, you should define "switchport access vlan XXX" with your QinQ "transport" vlan. But in that case, the Juniper should not define an outer vlan (unless you are planning to do some sort of HVPLS).



James Lasky Fri, 09/26/2008 - 01:39
User Badges:


as far as I understand you are talking of putting a 3rd outer vlan at the provider interconnection, I'd like to swap the 2nd outer vlan at the interconnection, from 726 to 200..



guruprasadr Thu, 10/09/2008 - 00:15
User Badges:
  • Gold, 750 points or more


Can you please help me with the exact Q-in-Q Configuation on Juniper Routers.

Kindly share if any useful documents available. Thanks in Advance for Help.

Best Regards,

Guru Prasad R

James Lasky Thu, 10/09/2008 - 00:42
User Badges:

Hi Guru

what do you exaclty need ?

In the juniper.net site you can easily find the documentation depending on your junos release.



guruprasadr Thu, 10/09/2008 - 03:56
User Badges:
  • Gold, 750 points or more

HI Riccardo,

Thanks for your response.

I am looking for a exact/good documentation on Juniper Routers J - Series.

Also, if you have a good Document on Q-in-Q deployments, please forward the same too.


Guru Prasad R


This Discussion