Community discussions

MikroTik App
 
Pl07R3K
just joined
Topic Author
Posts: 14
Joined: Fri Feb 11, 2022 4:15 pm

Does anyone know how to link a container with 802.1Q VLANs?

Mon Dec 05, 2022 5:21 pm

I have built an mDNS-reflector container (avahi on Alpine Linux) and I don't know how to direct broadcasts from vlan10 and vlan20 (UDP packets to 224.0.0.251:5353) to it.
Has anyone already tried to connect from a container to VLANs.?
/interface bridge
add name=bridge1
/interface vlan
add interface=bridge1 name=bridge1.10 vlan-id=10
add interface=bridge1 name=bridge1.20 vlan-id=20
add interface=bridge1 name=bridge1.99 vlan-id=99
/interface ethernet switch port
set 1 vlan-header=add-if-missing vlan-mode=secure
set 2 default-vlan-id=100 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=10 vlan-header=always-strip vlan-mode=secure
set 4 default-vlan-id=10 vlan-header=always-strip vlan-mode=secure
set 5 vlan-mode=secure
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
/interface ethernet switch vlan
add independent-learning=yes ports=ether2,switch1-cpu switch=switch1 vlan-id=99
add independent-learning=yes ports=ether2,ether4,ether5,switch1-cpu switch=switch1 vlan-id=10
add independent-learning=yes ports=ether2,switch1-cpu switch=switch1 vlan-id=20
add independent-learning=yes ports=ether2,ether3 switch=switch1 vlan-id=100
 
elico
Member Candidate
Member Candidate
Posts: 143
Joined: Mon Nov 07, 2016 3:23 am

Re: Does anyone know how to link a container with 802.1Q VLANs?

Tue Jan 10, 2023 5:02 am

Did you got your answer?

Who is online

Users browsing this forum: No registered users and 3 guests