We have a Juniper QFX with a 10Gb port facing a 3rd party, configured as a standard trunk. Here's an example:

xe-0/0/1 {
    description xxxx;
    unit 0 {
        family ethernet-switching {
            interface-mode trunk;
            vlan {
                members [ vlan1 vlan2 ];

In the case above vlan1 and vlan2 are locally defined standard VLANs. The problem I have is that we use a vlan tag structure internally, and the 3rd party is not able to match it, so I'd like to rewrite their tag on ingress/egress so we can keep our internal structure. I figured this would be straightforward, but I haven't been able to make it work. I tried adding:

            vlan-rewrite {
                translate 2430 103;

But it seems to have no effect. Any thoughts?

EDIT: VLAN config as requested:

set vlans default vlan-id 1
set vlans default l3-interface irb.0
set vlans vlan1 vlan-id 103
set vlans vlan2 vlan-id 104
  • I'm looking at this, but a couple quick questions. 1. Are these boxes in a virtual chassis? 2. Could you paste in some more of your config - "show configuration vlans | display set". Jan 15, 2016 at 15:52
  • Hi Jordan, no virtual chassis, its just a standalone QFX5100. Here you go: set vlans default vlan-id 1 set vlans default l3-interface irb.0 set vlans vlan1 vlan-id 103 set vlans vlan2 vlan-id 104 Jan 15, 2016 at 16:01
  • Facing the same issue on EX4300
    – Abel
    Jul 19, 2016 at 13:42
  • Did you find a solution for your problem? I'm currently facing the same issue and would appreciate some input :)
    – Sascha
    Sep 1, 2016 at 12:33
  • Did any answer help you? if so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
    – Ron Maupin
    Aug 13, 2017 at 2:58

2 Answers 2


I'm not sure whether that is supported or not (I suspect it does) on the QFX series--the features exists in MX series and the EX9200's and was added for QFX in 13.2+.

Per TechLibrary article Configuring VLAN Translation with a VLAN ID List, I would see if you have the vlan-id-list or inner-vlan-id-list command available, and subsititute your vlan { members [ vlan1 vlan2 ] with vlan-id-list [ vlan1 vlan2 ].

The translation works by using the vlan-rewrite { translate <external> <internal> } as you have it.


Check out Juniper Docs

You would do it like

set vlans vlan1 interface xe-0/0/3.0 mapping 2430 swap

Do not confgure the vlan1 inside # edit interface xe-0/0/3.0 fam eth-sw hirachy

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.