Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Vlan-Translate on QFX5120

    Posted 06-22-2021 06:18
    Hello,

    i try to translate vlan 800 to 18 with this configuration:
    root@sx04a# show
    flexible-vlan-tagging;
    unit 0 {
    family ethernet-switching {
    interface-mode trunk;
    vlan {
    members 18;
    }
    vlan-rewrite {
    translate 800 18;
    }
    }
    }

    {master:0}[edit interfaces ge-0/0/1]
    At this Port, there is a Test Device with an vlan-interface on vlan18 and i can not reach it with this configuration. is there any step i forgett ?

    We use vxlan / evpn on all switches, maybe vlan-translate not work with it.


  • 2.  RE: Vlan-Translate on QFX5120

    Posted 06-23-2021 10:36
    If you are using VxLAN w/ EVPN encap, the VLAN-ID is stripped out(unless purposely instructed not too), so if the local side uses a vlan-id of 800, but the far side it's using 18, just configure the same VNI on both sides, and the necessary VLAN-IDs for the ports, and you should be good.


  • 3.  RE: Vlan-Translate on QFX5120
    Best Answer

    Posted 06-23-2021 10:43
    Enterprise style translation isn't supported with VXLAN. You can use service provider style as per the below example:

    set interfaces ae0 flexible-vlan-tagging
    set interfaces ae0 encapsulation extended-vlan-bridge
    set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:22
    set interfaces ae0 esi all-active
    set interfaces ae0 aggregated-ether-options lacp active
    set interfaces ae0 aggregated-ether-options lacp periodic fast
    set interfaces ae0 aggregated-ether-options lacp system-id 00:00:00:00:00:11
    set interfaces ae0 unit 101 vlan-id 101
    set interfaces ae0 unit 102 vlan-id 102
    
    set vlans VLAN1001 vlan-id 1001
    set vlans VLAN1001 interface ae0.101
    set vlans VLAN1001 vxlan vni 1001
    set vlans VLAN1002 vlan-id 1002
    set vlans VLAN1002 interface ae0.102
    set vlans VLAN1002 vxlan vni 1002​

    Here we take any VLANs tagged with VLAN 101 or 102 and translate them to VNI 1001 and 1002 respectively. VLANs are only locally significant so you can map the VNI to any VLAN on remote VTEPs.

    ------------------------------
    DANIEL HEARTY
    Principal Engineer
    ------------------------------



  • 4.  RE: Vlan-Translate on QFX5120

    Posted 06-25-2021 03:19
    Thanks Daniel for this "Hack" it works well :)