Switching

 View Only
last person joined: 11 days ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Q in Q tunnel on QFX

    Posted 29 days ago

    I'm planning to configure a Q-in-Q tunnel on a Juniper QFX switch running JunOS 23.x, and I'd like to confirm if my approach looks correct.

    • xe-0/0/0 → Customer-facing interface (receives traffic on VLANs 2–50)

    • xe-0/0/1 → Provider-facing interface (currently a trunk carrying VLANs 10 and 20)

    The goal is to use VLAN 100 as the outer service tag (S-tag) for double-tagged traffic. The provider-facing interface should continue to carry both:

    • Regular single-tagged VLANs (10 and 20)

    • Double-tagged frames (outer VLAN 100, inner VLANs 2–50)

    Below is the draft configuration plan.
    Could you please review it and let me know if any adjustments are needed to make this work properly?

    set interfaces xe-0/0/0 flexible-vlan-tagging
    set interfaces xe-0/0/0 encapsulation extended-vlan-bridge
    set interfaces xe-0/0/0 unit 100 vlan-id-list 2-50
    set interfaces xe-0/0/0 unit 100 input-vlan-map push
    set interfaces xe-0/0/0 unit 100 input-vlan-map vlan-id 100
    set interfaces xe-0/0/0 unit 100 output-vlan-map pop
     
     
    set interfaces xe-0/0/1 flexible-vlan-tagging
    set interfaces xe-0/0/1 encapsulation extended-vlan-bridge
    set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk
    set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members 10
    set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members 20
    set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members 100


    ------------------------------
    ARUNKUMAR RAJASEKARAN
    ------------------------------


  • 2.  RE: Q in Q tunnel on QFX

    Posted 28 days ago

    Nope:

    1. you don't have to specify any vlan-id for the S-vlan on the UNI interface
    2. you forgot to show the vlan definitions (and you don't define the S-Vlan with its dot1q tag)
    3. the S-Vlan is not a normal vlan, therefore it's not configured within the family ethernet-switching on unit 0, on the NNI
    4. As you want both normal vlans and S-Vlan on your NNI, its encap must be flexible-ethernet-services
    5. As QinQ is a point to point tunnel, you should deactivate MAC learning on it

    Therefore:

    set interfaces xe-0/0/0 flexible-vlan-tagging
    set interfaces xe-0/0/0 encapsulation extended-vlan-bridge
    set interfaces xe-0/0/0 unit 100 vlan-id-list 2-50
    set interfaces xe-0/0/0 unit 100 input-vlan-map push
    set interfaces xe-0/0/0 unit 100 output-vlan-map pop
    
    set interfaces xe-0/0/1 flexible-vlan-tagging
    set interfaces xe-0/0/1 encapsulation flexible-ethernet-services
    set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk
    set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members 10
    set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members 20
    set interfaces xe-0/0/1 unit 100 encapsulation vlan-bridge
    set interfaces xe-0/0/1 unit 100 vlan-id 100
    
    set vlans qinq-100 interface xe-0/0/0.100
    set vlans qinq-100 interface xe-0/0/1.100
    set vlans qinq-100 switch-options no-mac-learning



    ------------------------------
    Olivier Benghozi
    ------------------------------



  • 3.  RE: Q in Q tunnel on QFX

    Posted 28 days ago

    Thanks for your valuable inputs, Oliver.

    S-vlan should not have the vlan-id assigned to it , correct (set vlans qinq-100 vlan-id 100)? Kindly confirm.

    mac-learning should be disabled on qinq vlan as well?



    ------------------------------
    ARUNKUMAR RAJASEKARAN
    ------------------------------



  • 4.  RE: Q in Q tunnel on QFX

    Posted 28 days ago

    Correct, in the vlan definition, the vlan-id is not defined for the S-VLAN.

    It's defined in the unit on the NNI, and nowhere on the UNI (but uses the unit number).

    mac-learning should be disabled ; not mandatory, but useful and relevant, as it's completely useless to learn MAC on a tunnel (as show in Juniper doc: Configuring Q-in-Q Tunneling and VLAN Q-in-Q Tunneling and VLAN Translation ).



    ------------------------------
    Olivier Benghozi
    ------------------------------



  • 5.  RE: Q in Q tunnel on QFX

    Posted 28 days ago

    Thanks Oliver for the clarification. Could you please let me know how we can include untagged traffic. Basically I want to consider untagged traffic as vlan 1 ( native vlan) and add outer tag as we are doing it for tagged traffic.

    The following commands will help?

     set interfaces xe-0/0/0 native-vlan-id 1

    set interfaces xe-0/0/0 input-native-vlan-push enable



    ------------------------------
    nura irtt
    ------------------------------



  • 6.  RE: Q in Q tunnel on QFX

    Posted 28 days ago
    Edited by Olivier Benghozi 28 days ago

    Yes. And at the UNI side (xe-0/0/0), change this, too:

    vlan-id-list 1-50

    At the NNI side you'll obtain dot1q outer 100 + inner 1.



    ------------------------------
    Olivier Benghozi
    ------------------------------



  • 7.  RE: Q in Q tunnel on QFX

    Posted 27 days ago

    Hi Oliver,

    Thanks for your continuous support.

    We applied the recommended configuration changes and connected a test laptop to the UNI port while generating continuous ICMP requests. Both the UNI and NNI ports successfully learned the MAC addresses. However, we observed that the UNI port received 44 packets, but none of them were forwarded to the NNI side.

    We enabled packet capture on the UNI interface (using tcpdump from the shell), and we did not see any ICMP or ARP traffic arriving at the switch. Instead, we only saw IPv6 multicast packets, which were not being flooded toward the NNI port.

    are we missing anything here?

    Logical interface xe-0/0/0.100 (Index 859) (SNMP ifIndex 538)
        Flags: Up SNMP-Traps Redundancy-Device 0x20004000 VLAN-Tag [  1-4094 ] In(push .100) Out(pop)  Encapsulation: Extended-VLAN-Bridge
        Input packets : 44
        Output packets: 0
        Protocol eth-switch, MTU: 9216
          Flags: 0x4000000
     
     
      Logical interface xe-1/0/47.100 (Index 858) (SNMP ifIndex 537)
        Flags: Up SNMP-Traps 0x20004000 VLAN-Tag [ 0x8100.100 ]  Encapsulation: VLAN-Bridge
        Input packets : 0
        Output packets: 0                   
        Protocol eth-switch, MTU: 9216
          Flags: 0x4000000
     
    admin@US-Navy-QFX5120-SW01-B> show ethernet-switching table | match 100 
        VLAN100            yy.yy.yy.yy.yy.yy   D             -           xe-1/0/47.100         0                    0       
        VLAN100            xx.xx.xx.xx.xx.xx   D             -           xe-0/0/0.100         0                    0 
     
     
    01:52:26.786788  In xx.xx.xx.xx.xx.xx > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 68: vlan 70, p 0, ethertype IPv6, truncated-ip6 - 26 bytes missing! ff80::182f:6132:725d:5a1f > ff02::16: HBH [icmp6]
    01:52:26.803341  In xx.xx.xx.xx.xx.xx > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 68: vlan 70, p 0, ethertype IPv6, truncated-ip6 - 26 bytes missing! ff80::182f:6132:725d:5a1f > ff02::16: HBH [icmp6]
    01:52:27.265954  In xx.xx.xx.xx.xx.xx > 33:33:00:00:00:16, ethertype 802.1Q (0x8100), length 68: vlan 70, p 0, ethertype IPv6, truncated-ip6 - 46 bytes missing! fe80::182f:6132:725d:5a1f > ff02::16: HBH [icmp6]



    ------------------------------
    nura irtt
    ------------------------------



  • 8.  RE: Q in Q tunnel on QFX

    Posted 27 days ago
    1. you cannot really rely on the in/out bytes/packets values per unit on EX/QFX
    2. did you try with two real devices at each side ?
    3. maybe post the actual real content of both interfaces and vlan definition
    4. and what is the model of the switch btw?


    ------------------------------
    Olivier Benghozi
    ------------------------------



  • 9.  RE: Q in Q tunnel on QFX

    Posted 27 days ago

    We connected the laptops for testing. Customer switch was not connected. 

    Switch model is qfx5120 running 23.4R2.

    Below is the applied configuration,

    set interfaces xe-0/0/0 flexible-vlan-tagging
    set interfaces xe-0/0/0 encapsulation extended-vlan-bridge
    set interfaces xe-0/0/0 unit 100 vlan-id-list 1-4094
    set interfaces xe-0/0/0 unit 100 input-vlan-map push
    set interfaces xe-0/0/0 unit 100 output-vlan-map pop
     
    set interfaces xe-0/0/1 flexible-vlan-tagging
    set interfaces xe-0/0/1 encapsulation flexible-ethernet-services
    set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode trunk
    set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members 10
    set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members 20
    set interfaces xe-0/0/1 unit 100 encapsulation vlan-bridge
    set interfaces xe-0/0/1 unit 100 vlan-id 100
     
    set vlans qinq-100 interface xe-0/0/0.100
    set vlans qinq-100 interface xe-0/0/1.100



    ------------------------------
    nura irtt
    ------------------------------



  • 10.  RE: Q in Q tunnel on QFX

    Posted 27 days ago

    I guess you forgot:

    set interfaces xe-0/0/0 native-vlan-id 1

    And you should probably:

    set vlans qinq-100 switch-options no-mac-learning

    At the NNI, you will receive double-tagged frames (maybe the laptop doesn't like them).



    ------------------------------
    Olivier Benghozi
    ------------------------------