Community discussions

MikroTik App
 
zstm
just joined
Topic Author
Posts: 9
Joined: Wed May 03, 2017 7:46 pm

QinQ not working

Sun Nov 27, 2022 8:33 pm

hello i try to set up QinQ according to https://help.mikrotik.com/docs/display/ ... ling(QinQ) but it doesn't work for me. Below is a diagram of what he wants to achieve.
--- BGP --- \
                     \
                  vlan 3515
                         \
                           \ SFP-SFPLUS16
                             \ ----------CRS326 --------- SFP-PLUS1---- QinQ vlan 2500 inside 3515 and 10 --------- 
                             /
                           /
                         /
                    vlan 10
---- BRAS    /
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: QinQ not working

Sun Nov 27, 2022 9:06 pm

Instead of posting a link to how it should be configured, post an export of your actual configuration (before posting, obfuscate any public addresses and service usernames, and remove the serial number).

Do you indeed want Q-in-Q (both inner and outer VLAN tag with ethertype 0x8100, aka Customer-VLAN) or "Q-in-ad" (inner tag with ethertype 0x8100, outer tag with ethertype 0x88a8 aka Service-VLAN, nevertheless referred to as Q-in-Q in the manual)?

I'm not sure whether CRS326 even supports stacking of two C-VLAN tags in hardware.
 
zstm
just joined
Topic Author
Posts: 9
Joined: Wed May 03, 2017 7:46 pm

Re: QinQ not working

Mon Nov 28, 2022 9:11 am

My config:
add ether-type=0x88a8 name=bridge1 protocol-mode=none vlan-filtering=yes
/interface bridge port
add bridge=bridge1 interface=sfp-sfpplus16 pvid=2500
add bridge=bridge1 interface=sfp-sfpplus1
/interface bridge vlan
add bridge=bridge1 tagged=sfp-sfpplus1,sfp-sfpplus16 vlan-ids=2500
from the sfpplus16 port the tagged vlan 3515 should exit and go to the sfpplus1 port as QinQ in vlan 2500
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: QinQ not working

Mon Nov 28, 2022 9:16 am

Remove sfp-sfpplus16 from the tagged list under /interface bridge vlan on the row for vlan-ids=2500.
 
zstm
just joined
Topic Author
Posts: 9
Joined: Wed May 03, 2017 7:46 pm

Re: QinQ not working

Mon Nov 28, 2022 9:32 am

/interface bridge
add ether-type=0x88a8 name=bridge1 protocol-mode=none vlan-filtering=yes
/interface bridge port
add bridge=bridge1 interface=sfp-sfpplus16 pvid=2500 tag-stacking=yes
add bridge=bridge1 interface=sfp-sfpplus1
/interface bridge vlan
add bridge=bridge1 tagged=sfp-sfpplus1 vlan-ids=2500
however, I still have no communication with the other party.
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: QinQ not working

Mon Nov 28, 2022 4:10 pm

If so, use port mirroring and another Mikrotik device to sniff on the mirror port to see what is actually going on. Be aware that most Windows network card drivers and some Linux ones strip the VLAN headers so the sniff may be misleading in these cases, that's why I recommend to use a second Mikrotik device as a sniffer.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: QinQ not working

Mon Nov 28, 2022 5:46 pm

My config:
add ether-type=0x88a8 name=bridge1 protocol-mode=none vlan-filtering=yes
/interface bridge port
add bridge=bridge1 interface=sfp-sfpplus16 pvid=2500
add bridge=bridge1 interface=sfp-sfpplus1
/interface bridge vlan
add bridge=bridge1 tagged=sfp-sfpplus1,sfp-sfpplus16 vlan-ids=2500
from the sfpplus16 port the tagged vlan 3515 should exit and go to the sfpplus1 port as QinQ in vlan 2500
Above should read as follows:
add ether-type=0x88a8 name=bridge1 protocol-mode=none vlan-filtering=yes
/interface bridge port
add bridge=bridge1 interface=sfp-sfpplus16 pvid=2500
add bridge=bridge1 interface=sfp-sfpplus1
/interface bridge vlan
add bridge=bridge1 tagged=sfp-sfpplus1 untagged=sfp-sfpplus16 vlan-ids=2500
 
zstm
just joined
Topic Author
Posts: 9
Joined: Wed May 03, 2017 7:46 pm

Re: QinQ not working

Mon Nov 28, 2022 6:06 pm

Ok, work. Thanks!
Last edited by BartoszP on Mon Nov 28, 2022 9:47 pm, edited 1 time in total.
Reason: removed excessive quotting of preceding post; be wise, quote smart. lines of quote, 1 line of post.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: QinQ not working

Mon Nov 28, 2022 6:45 pm

...
however, I still have no communication with the other party.
Reason above did not work is you added:

add bridge=bridge1 interface=sfp-sfpplus16 pvid=2500 tag-stacking=yes

Who is online

Users browsing this forum: Bing [Bot], TeWe, UkRainUa and 87 guests