Community discussions

MikroTik App
 
fabix05
just joined
Topic Author
Posts: 10
Joined: Tue Feb 04, 2020 3:14 pm

VLAN tagged/untagged on same router

Thu Feb 01, 2024 1:46 pm

Good morning everyone, I've been trying to understand how it works for days, now I have an rb3011 and I would like to have it on the same router
-1 tagged port on vlan 10
-1 tagged port on vlan 20
-1 untagged port on vlan 10
-1 untagged port on vlan 20
-1 trunk port with vlan 10,20
Having said that I can't find anywhere, I've been looking for days now, an example of a configuration similar to mine, I only found configurations with the ports all tagged or all untagged. can you help me in some way? A thousand thanks
 
User avatar
vingjfg
Member Candidate
Member Candidate
Posts: 294
Joined: Fri Oct 20, 2023 1:45 pm

Re: VLAN tagged/untagged on same router

Thu Feb 01, 2024 1:59 pm

Can you send the output of
/interface bridge export
 
fabix05
just joined
Topic Author
Posts: 10
Joined: Tue Feb 04, 2020 3:14 pm

Re: VLAN tagged/untagged on same router

Thu Feb 01, 2024 2:10 pm

i don't have, it's a lab test to know the vlan managment in mikrotik, my router it still needs to be configured
 
User avatar
vingjfg
Member Candidate
Member Candidate
Posts: 294
Joined: Fri Oct 20, 2023 1:45 pm

Re: VLAN tagged/untagged on same router

Thu Feb 01, 2024 2:20 pm

Ok, so supposing your bridge is called "bridge" and:
  • ether0: tagged port on vlan 10
  • ether1: tagged port on vlan 20
  • ether2: untagged port on vlan 10
  • ether3: untagged port on vlan 20
  • ether4: trunk port with vlan 10,20
The following should be close to what is needed.
/interface bridge
set [bridge=bridge] vlan-filtering=yes
/interface bridge port
add bridge=bridge interface=ether0 pvid=1 ingress-filtering=yes frames-type=admit-only-vlan-tagged
add bridge=bridge interface=ether1 pvid=1 ingress-filtering=yes frames-type=admit-only-vlan-tagged
add bridge=bridge interface=ether2 pvid=10 ingress-filtering=yes frames-type=admit-only-untagged-and-priority-tagged
add bridge=bridge interface=ether3 pvid=20 ingress-filtering=yes frames-type=admit-only-untagged-and-priority-tagged
add bridge=bridge interface=ether4 pvid=1 ingress-filtering=yes frames-type=admit-only-vlan-tagged
/interface bridge vlan
add bridge=bridge vlan-ids=10 tagged=ether0,ether4 untagged=ether2 comment="VLAN10"
add bridge=bridge vlan-ids=20 tagged=ether1,ether4 untagged=ether3 comment="VLAN20"
 
fabix05
just joined
Topic Author
Posts: 10
Joined: Tue Feb 04, 2020 3:14 pm

Re: VLAN tagged/untagged on same router

Thu Feb 01, 2024 3:02 pm

wow thank you, finally a clear explanation :D I'll try and let you know ! thanks
 
Mesquite
Member
Member
Posts: 420
Joined: Tue Jan 23, 2024 9:16 pm

Re: VLAN tagged/untagged on same router

Thu Feb 01, 2024 7:31 pm

 
TheCat12
Member Candidate
Member Candidate
Posts: 181
Joined: Fri Dec 31, 2021 9:13 pm

Re: VLAN tagged/untagged on same router

Thu Feb 01, 2024 9:42 pm

Just a small tip: do not turn on VLAN filtering until you've configured everything else because you may lose access to the router

Who is online

Users browsing this forum: gigabyte091, jaclaz, Kanzler, span and 18 guests