I do a lot of cisco. A couple years ago bought a Mikrotik and loved it, set it up as a router for my telescope gear, multi-path, OSPF… worked great. No VLAn’s, just subnets.
Needed a new access point for home so bought a hAP ax2, I thought a real simple configuration - two vlan’s, a few SSID’s… and I just cannot get the VLAN’s to work properly, and would appreciate any help.
The desire is ethernet 1 is going to be an uplink port, native (PVID) 1, trunked VLAN 134. Several SSID’s, some on VLAN 1 (those called Reboot-2 and Reboot-5 in the config) and some on VLAN 134 (RebootGuest-2 and RebootGuest-5). The plan is VLAN 134 is just a pass thru, the device is managed from and has an IP on VLAN 1 (192.168.130.213) but for testing I have an address on VLAN 134 also (192.168.134.213). No routing needed, upstream OPNsense handles that.
I have connectivity to the two IP addresses, which are present on their respective vlan’s. And the wifi for VLAN 134 is working, but when I associate with (for example) Reboot-5 SSID, the association and authentication work, but it cannot pull an IP indicating it has no connectivity through on VLAN 1.
I’ve tried all sorts of combinations of tagging and untagging on the various ports and VLAN’s, and I am guessing that I am losing a tag or being filtered somewhere, but I just cannot get the right combination. I’ve spent a lot of time on this http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1 success.
Here is the current config that doesn’t work:
# nov/03/2023 10:05:03 by RouterOS 7.8
# software id = XVHW-0BBF
#
# model = C52iG-5HaxD2HaxD
# serial number = XXXXXXXXXXXXXXXXXXXXXXXXX
/interface bridge
add admin-mac=48:A9:8A:XX:XX:XX auto-mac=no comment=defconf name=bridge vlan-filtering=yes
/interface vlan
add interface=bridge name=vlan1 vlan-id=1
add interface=bridge name=vlan134 vlan-id=134
/interface wifiwave2 security
add authentication-types=wpa2-psk,wpa3-psk disabled=no name=InternalPSK
add authentication-types=wpa2-psk,wpa3-psk disabled=no name=GuestPSK
/interface wifiwave2
set [ find default-name=wifi2 ] channel.band=2ghz-n .skip-dfs-channels=10min-cac .width=20mhz configuration.country="United States" .mode=ap .ssid=Reboot datapath.bridge=bridge .vlan-id=1 disabled=no name=Reboot-2 security=InternalPSK
set [ find default-name=wifi1 ] channel.band=5ghz-ac .skip-dfs-channels=10min-cac .width=20/40/80mhz configuration.country="United States" .mode=ap .ssid=Reboot datapath.bridge=bridge .vlan-id=1 disabled=no name=Reboot-5 security=InternalPSK
add configuration.mode=ap .ssid=RebootGuest datapath.vlan-id=134 disabled=no mac-address=4A:A9:8A:CA:C8:45 master-interface=Reboot-2 name=Guest-2 security=GuestPSK
add configuration.mode=ap .ssid=RebootGuest datapath.vlan-id=134 disabled=no mac-address=4A:A9:8A:CA:C8:44 master-interface=Reboot-5 name=Guest-5 security=GuestPSK
/interface bridge port
add bridge=bridge comment=defconf frame-types=admit-only-untagged-and-priority-tagged interface=ether2
add bridge=bridge comment=defconf frame-types=admit-only-untagged-and-priority-tagged interface=ether3
add bridge=bridge comment=defconf frame-types=admit-only-untagged-and-priority-tagged interface=ether4
add bridge=bridge comment=defconf frame-types=admit-only-untagged-and-priority-tagged interface=ether5
add bridge=bridge comment=defconf frame-types=admit-only-untagged-and-priority-tagged interface=Reboot-5
add bridge=bridge comment=defconf frame-types=admit-only-untagged-and-priority-tagged interface=Reboot-2
add bridge=bridge interface=ether1
add bridge=bridge frame-types=admit-only-vlan-tagged interface=Guest-2 pvid=134
add bridge=bridge frame-types=admit-only-vlan-tagged interface=Guest-5 pvid=134
add bridge=bridge frame-types=admit-only-vlan-tagged interface=vlan134 pvid=134
add bridge=bridge frame-types=admit-only-vlan-tagged interface=vlan1
/interface bridge vlan
add bridge=bridge tagged=bridge,Reboot-2,Reboot-5 untagged=ether1,ether2,ether3,ether4,ether5,vlan1 vlan-ids=1
add bridge=bridge tagged=ether1,bridge,Guest-2,vlan134,Guest-5 vlan-ids=134
/ip address
add address=192.168.130.213/24 interface=vlan1 network=192.168.130.0
add address=192.168.134.213/24 comment="Temporary just to test connectivity" interface=vlan134 network=192.168.134.0
/ip dns
set allow-remote-requests=yes servers=192.168.130.1
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.130.1 pref-src="" routing-table=main suppress-hw-offload=no
/system clock
set time-zone-name=America/New_York