Community discussions

MikroTik App
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

QinQ vlan bridge - help needed

Sat Feb 17, 2024 2:33 pm

Hi all, long time lurker, first time poster.

I have vlan filtering setup and a dhcp server running on a bridge, a trunk from a service provider with S-TAG outer and C-TAG inner ids for the end user routers. I need to allocate IP addresses down the link to each router on the other end of the cvlans.

I setup vlan filtering on a bridge, added the vlan that's mapped to the S-TAG and adding vlans on the bridge I can see the end user routers C-TAG id and mac addresses in the hosts on the bridge.

The DHCP server attached to the bridge sees the DHCP discovery from the end user devices and offers an address, but it's not getting back down the cvlans to the end user routers.

Here's my current config;
/interface bridge
add name=bridge1 vlan-filtering=yes

/interface bonding
add mode=802.3ad name="SL LACP" slaves=sfpplus1

/interface vlan
add interface="SL LACP" name=slc-VIC vlan-id=161

/ip dhcp-server
add address-pool=slc-VIC disabled=no interface=bridge1 name=server1

/interface bridge port
add bridge=bridge1 frame-types=admit-only-vlan-tagged interface=slc-VIC

/interface bridge settings
set allow-fast-path=no use-ip-firewall=yes use-ip-firewall-for-vlan=yes

/interface bridge vlan
add bridge=bridge1 tagged=slc-VIC untagged=bridge1 vlan-ids=2,8

/ip address
add address=192.168.0.1/24 interface=bridge1 network=192.168.0.0

/ip dhcp-server network
add address=192.168.0.0/24 dns-server=1.1.1.1,8.8.8.8 gateway=192.168.0.1

/ip pool
add name=slc-VIC ranges=192.168.0.10-192.168.0.20

Now .. if I set the PVID on the bridge to 2, the router on cvlan 2 gets an IP allocated. If I set it to 8, the router on cvlan 8 gets an ip.

It seems there's no tagging on the way back down the cvlans, I'm sure I'm missing something simple.
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

Re: QinQ vlan bridge - help needed

Mon Feb 19, 2024 12:55 am

Bump

Anyone have any clues for me please?
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

Re: QinQ vlan bridge - help needed

Mon Feb 19, 2024 12:20 pm

I've got this configuration setup on an old CCR1016, could that be causing problems? It's running the latest stable firmware v6.49.13
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

Re: QinQ vlan bridge - help needed

Thu Feb 22, 2024 1:42 am

Talking to myself here a little, and hoping bumping this up the list will catch the attention of someone who can help me. ;-)

I've ordered a new CCR2116 and will cut the link across to that on the weekend, I'm hoping my Bridge/VLAN Filtering configuration will just work on this new router. We'll see.
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

Re: QinQ vlan bridge - help needed

Sat Feb 24, 2024 12:17 am

Ok, so the new router, running 7.13.15 does the same thing, so seemingly not related to the old hardware.

If anyone has any clues on where I should look it would be greatly appreciated. Cheers.
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

Re: QinQ vlan bridge - help needed

Wed Feb 28, 2024 12:50 pm

Well, I've abandoned the idea and gone with /32 static routes and set proxy-arp on each vlan instead.
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1281
Joined: Tue Jun 23, 2015 2:35 pm

Re: QinQ vlan bridge - help needed

Wed Feb 28, 2024 1:25 pm

why is that
/interface vlan
add interface="SL LACP" name=slc-VIC vlan-id=161

/interface bridge vlan
add bridge=bridge1 tagged=slc-VIC untagged=bridge1 vlan-ids=2,8
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

Re: QinQ vlan bridge - help needed

Wed Feb 28, 2024 1:41 pm

Why is what?
 
MrYan
Member Candidate
Member Candidate
Posts: 160
Joined: Sat Feb 27, 2010 6:13 pm

Re: QinQ vlan bridge - help needed

Wed Feb 28, 2024 3:35 pm

I'd have approached this a different way albeit likely it won't meet your intentions. Rather than pop VLAN 161 off before it gets to the bridge, I'd have added "SL LACP" into the bridge.

Then add a vlan interface that decapsulates VLAN 161:
/interface vlan add interface=bridge1 name=vlan-161 vlan-id=161

And on top of the vlan-161 interface, add another pair of vlan interface for VLANs 2 & 8:
/interface vlan add interface=vlan-161 name=vlan-2 vlan-id=2
/interface vlan add interface=vlan-161 name=vlan-8 vlan-id=8

Then you configure DHCP onto the interfaces vlan-2 and vlan-8. What it wouldn't do however is to make both of those a single bridge domain which is what you seem to be aiming for.
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

Re: QinQ vlan bridge - help needed

Wed Feb 28, 2024 4:15 pm

I'll give it a try, I need to allocate public addresses to the end user routers down the vlans, even segmenting to /30 is 4 addresses per user which is too wasteful.
 
MrYan
Member Candidate
Member Candidate
Posts: 160
Joined: Sat Feb 27, 2010 6:13 pm

Re: QinQ vlan bridge - help needed

Wed Feb 28, 2024 9:56 pm

You could put vlan-2 and vlan-8 into another bridge and run DHCP server on that second bridge. As only a single bridge can be hardware accelerated that might be an issue on some hardware. The CCR1036 won't be impacted as it doesn't have a switch chip. The CCR2116 does have a switch chip so performance may be impacted.
 
allegro
just joined
Topic Author
Posts: 9
Joined: Sat Feb 17, 2024 1:38 pm

Re: QinQ vlan bridge - help needed

Thu Feb 29, 2024 1:22 am

I can't just drop the vlans into a bridge, it causes duplicate mac address errors on the carrier side. I need vlan filtering on the bridge to work.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Kanzler, nmorgowicz, rjp0 and 32 guests