Dear Mikrotik Community,
I’m trying to configure a rather simple VLAN set-up with my new Routerboard - CRS326 running RouterOS 6.42.1.
Got two cAP ACs running nicely over POE with a IoT device attached.
This IoT device should be in a separate VLAN. So I set up a untagged VLAN on the cAP AC, a bridge and a trunk to the CRS.
/interface vlan
add interface=ether1 name=ether1-vlan100 vlan-id=100
/interface bridge
add name=bridge-IoT protocol-mode=none pvid=100 vlan-filtering=yes
/interface bridge port
add bridge=bridge-IoT interface=ether2 pvid=100
add bridge=bridge-IoT interface=ether1-vlan100 pvid=100
/interface bridge vlan
add bridge=bridge-IoT tagged=bridge-IoT untagged=ether2,ether1-vlan100 vlan-ids=100
Then on my CRS I created the same trunk and a bridge.
/interface vlan
add interface=ether24 name=eth24-vlan100 vlan-id=100
/interface bridge
add comment="IoT devices" name=bridge-IoT pvid=100 vlan-filtering=yes
add admin-mac=CC:2D:E0:02:49:F0 auto-mac=no comment=VNET name=bridge-VNET \
vlan-filtering=yes
/interface bridge port
add bridge=bridge-IoT interface=eth24-vlan100 pvid=100
/interface bridge vlan
add bridge=bridge-IoT tagged=eth24-vlan100 untagged=bridge-IoT vlan-ids=100
This is fine so far. I am able to ping the IP-address on the cAP AC bridge and the IoT device itself.
Here comes thing I don’t understand. I want to a specific VM on port ethernet23 in that VLAN and so be able to talk to the IoT device.
There are other VMs on port ethernet23 that should not be affected and stay in the default VLAN.
How would I achieve that?
Things I already tried:
- trunk port on ethernet23 and configure 8021q with the linux vm using vconfig
- add a switch rule to change the VLAN ID and the port
- add a host entry under bridge hosts to set the VLAN ID using the source MAC address.
Best thing (IMHO) would be to let the port ethernet23 in two bridges (IoT bridge and normal).
It is also possible that I did a misconfiguration. Reading the posts from sindy in this Thead http://forum.mikrotik.com/t/mikrotik-rb2011uias-vlan-tagging-bridge/119001/6
there are many options for a proper VLAN configuration.
Thanks in advance,
kind regards,
Peter