Switching

 View Only
  • 1.  dot1q tunneling on EX4300

    Posted 08-18-2025 16:31

    I'm encountering an error when configuring Q-in-Q on an EX4300. I'd like to accept a trunk tagged with S-vlans from a vendor, and a list of tagged C-vlans from a customer, encapsulate the customer vlans, and push them inside the vendor S-vlan for transit. The following statement commits:

    set interfaces ge-0/0/15 description customer-handoff
    set interfaces ge-0/0/15 flexible-vlan-tagging
    set interfaces ge-0/0/15 encapsulation extended-vlan-bridge
    set interfaces ge-0/0/15 unit 1200 vlan-id-list 20-40
    set interfaces ge-0/0/15 native-vlan-id 1
    set interfaces ge-0/0/15 unit 1200 input-vlan-map push
    set interfaces ge-0/0/15 unit 1200 output-vlan-map pop
    set interfaces ge-0/0/15 mtu 9000
    
    set interfaces xe-0/2/1 description vendor-trunk
    set interfaces xe-0/2/1 flexible-vlan-tagging
    set interfaces xe-0/2/1 encapsulation extended-vlan-bridge
    set interfaces xe-0/2/1 unit 1200 vlan-id 1200
    set interfaces xe-0/2/1 mtu 9000
    
    set vlans siteA interface ge-0/0/15.1200
    set vlans siteA interface xe-0/2/1.1200

    However, the documentation provides the following style of config, which doesn't commit and throws an error: 

    set interfaces ge-0/0/15 description customer-handoff
    set interfaces ge-0/0/15 flexible-vlan-tagging
    set interfaces ge-0/0/15 encapsulation extended-vlan-bridge
    set interfaces ge-0/0/15 unit 1200 vlan-id-list 20-40
    set interfaces ge-0/0/15 native-vlan-id 1
    set interfaces ge-0/0/15 unit 1200 input-vlan-map push
    set interfaces ge-0/0/15 unit 1200 output-vlan-map pop
    set interfaces ge-0/0/15 mtu 9000
    
    set interfaces xe-0/2/1 description vendor-trunk
    set interfaces xe-0/2/1 flexible-vlan-tagging
    set interfaces xe-0/2/1 encapsulation flexible-ethernet-services
    set interfaces xe-0/2/1 unit 1200 encapsulation vlan-bridge
    set interfaces xe-0/2/1 unit 1200 vlan-id 1200
    set interfaces xe-0/2/1 mtu 9000
    
    set vlans siteA interface ge-0/0/15.1200
    set vlans siteA interface xe-0/2/1.1200
    
    [edit interfaces xe-0/2/1]
      'unit 1200'
         Link encapsulation type is not valid for device type
    error: configuration check-out failed

    Is there a better documentation source I should follow? 

    Can anyone provide feedback about the best config to achieve this scenario? 

    Thanks for the feedback! 



    ------------------------------
    J D
    ------------------------------


  • 2.  RE: dot1q tunneling on EX4300

    Posted 08-19-2025 01:05

    The doc is valid, but not for EX4300:

    KB86903: EX4300 does not support flexible-ethernet-services statement in flexible-vlan-tagging

    In case of SP style config, you can use encapsulation extended-vlan-bridge only for Q-in-Q scenario.



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



  • 3.  RE: dot1q tunneling on EX4300

    Posted 08-19-2025 08:33

    Model: ex4300-24t

    Junos: 18.4R1.8

    Testing working on real hardware 9th October 2022
    Followed this guide:
     

    https://supportportal.juniper.net/s/article/EX-QFX-How-to-configure-QinQ-using-ELS-on-Junos-OS?language=en_US

     

    Customer Port

    set interfaces ge-0/0/9 description "Customer Port"

    set interfaces ge-0/0/9 flexible-vlan-tagging

    set interfaces ge-0/0/9 native-vlan-id 1

    set interfaces ge-0/0/9 encapsulation extended-vlan-bridge

    set interfaces ge-0/0/9 unit 2000 vlan-id-list 1-4094

    set interfaces ge-0/0/9 unit 2000 input-vlan-map push

    set interfaces ge-0/0/9 unit 2000 output-vlan-map pop

    Service port

    set interfaces ge-0/0/1 description "Service port ( trunk to other switch)"

    set interfaces ge-0/0/1 flexible-vlan-tagging

    set interfaces ge-0/0/1 encapsulation extended-vlan-bridge

    set interfaces ge-0/0/1 unit 2000 vlan-id 2000

    VLAN, or I think more correctly Bridge Domain

    set vlans V2000 interface ge-0/0/1.2000

    set vlans V2000 interface ge-0/0/9.2000


    I also referred to 

    https://saidvandeklundert.net/2016-01-14-q-in-q-on-qfx-and-ex/



    ------------------------------
    JNCIE-ENT 907
    ------------------------------



  • 4.  RE: dot1q tunneling on EX4300

    Posted 08-20-2025 10:28

    Oliver and Simon, thanks for those resources!

    I tested this config in production for a site, and it's passing encapsulated traffic as expected. 



    ------------------------------
    J D
    ------------------------------



  • 5.  RE: dot1q tunneling on EX4300

    Posted 08-21-2025 01:17

    Hi all,

    Weird...I'm test on vJunos-Switch the config not work if uplink port not same config as port facing customer.

    -------------------------------------------



  • 6.  RE: dot1q tunneling on EX4300

    Posted 08-21-2025 04:10

    I had a lot of issues getting this to work in the virtual environment. From memory, I got it working on the vQFX as a switch. 

     



    ------------------------------
    JNCIE-ENT 907JNCIE-ENT 907
    ------------------------------



  • 7.  RE: dot1q tunneling on EX4300

    Posted 08-21-2025 04:10
    Edited by Simon Bingham (technical debt collector) 08-21-2025 04:10

    .