VLAN Mapping (VLAN Translation) on Juniper

vlan-translation-single-tag

On Juniper devices, VLAN translation term is used for mentioning the swap of incoming VLAN id to a new VLAN id. In the below configuration examples, we will do this job on Juniper devices.

In the first example, we will swap the incoming VLAN 60 tag with the new VLAN 120 tag and incoming VLAN tag 70 with the new VLAN tag 140. The other packets with the different VLAN tag than 60 and 70, will be dropped if there is no other VLAN translation configuration. Only the incoming packets with the VLAN tag 60 and VLAN tag 70 will be passed and they will be swapped with VLAN id 120 and 140.

vlan mapping (translation) single tag
 

VLAN Mapping (Translation) – Single Tag
The configuration of the above scenario is below:

[edit]
Router# set vlans VLAN_120_Outgoing vlan-id 120
[edit]
Router# set interface ge-0/0/0.0 mapping 60 swap
 [edit]
Router# set vlans VLAN_140_Outgoing vlan-id 140
[edit]
Router# set interface ge-0/0/0.0 mapping 70 swap
Router# show configuration vlans
vlan-120 {
  vlan-id 120;
    interface {
      ge-0/0/0.0 {
        mapping {
          60 {
            swap;
          }
        }
      }
    }
    dot1q-tunneling;
}
vlan-140 {
  vlan-id 140;
    interface {
      ge-0/0/0.0 {
        mapping {
          70 {
            swap;
          }
        }
      }
    }
    dot1q-tunneling;
}

Here, we use “dot1q-tunneling” command because of the fact that there are more than one VLAN. If we make this translation for one VLAN, we do not need this command.

We're Sorry!
Full Access is for only IPCisco Crew...
With IPCisco Membership, You Can Access:
• All Certification Courses (Cisco, Juniper, Nokia and Huawei),
• Thousands of Questions (Lesson Quizes and Special Quiz Section),
• Carieer Consultancy, CV/Resume Check, Career Advice Meeting,
• Cheat Sheets, Job Interview Trainings, Network Tools,
You will be Member of a Big IPCisco Community,
You will Learn Network Lessons with Always,
New And Different Learning Styles!
We are waiting for you!

Lesson tags: vlan mapping
Back to: JNCIS > VLANs

Leave a Reply

Your email address will not be published. Required fields are marked *