My setup: hAP ax3 + L2 switch
L2 switch has 3 VLANs defined (1, 30, 70) and is connected to hAP via trunk port for inter-VLAN routing (no firewall filter rules are defined at this moment, so traffic flows freely between all VLANs).
What I cannot achieve: expand VLAN 70 and corresponding 10.10.70.0/24 subnet to WLAN interface (virtual).
So far I ended up with a routing table where network 10.10.70.0/24 sits behind two interfaces (“bridge” and “vlan70-media” and it stops traffic flowing).
Does it even make sense to spread VLAN subnet over to WLAN? Do I make some fundamental network design mistake?
Code: Select all
# jan/17/2023 22:11:14 by RouterOS 7.7
# software id = xxx
#
# model = C53UiG+5HPaxD2HPaxD
# serial number = xxx
/interface bridge
add admin-mac=xxx auto-mac=no comment=defconf name=bridge \
vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name=ether1-wan
set [ find default-name=ether2 ] disabled=yes
set [ find default-name=ether3 ] disabled=yes
set [ find default-name=ether4 ] name=ether4-infra-media
set [ find default-name=ether5 ] name=ether5-console
/interface wifiwave2
set [ find default-name=wifi1 ] channel.band=5ghz-ax .skip-dfs-channels=\
disabled .width=20/40/80mhz configuration.country=Canada .hide-ssid=yes \
.mode=ap .ssid=WIFI24 disabled=no security.authentication-types=\
wpa2-psk,wpa3-psk
set [ find default-name=wifi2 ] channel.band=2ghz-ax .skip-dfs-channels=\
10min-cac .width=20/40mhz configuration.mode=ap .ssid=WIFI50 \
security.authentication-types=wpa2-psk,wpa3-psk
add configuration.country=Canada .hide-ssid=no .mode=ap .ssid=MEDIA disabled=\
no mac-address=xxx master-interface=wifi1 name=wifi70-media \
security.authentication-types=wpa2-psk,wpa3-psk
/interface vlan
add interface=bridge name=vlan30-infra vlan-id=30
add interface=bridge name=vlan70-media vlan-id=70
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add name=pool1 ranges=10.10.70.139-10.10.70.149
/ip dhcp-server
add address-pool=pool1 interface=bridge name=server1
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4-infra-media
add bridge=bridge comment=defconf interface=ether5-console
add bridge=bridge comment=defconf ingress-filtering=no interface=wifi1
add bridge=bridge comment=defconf interface=wifi2
add bridge=bridge ingress-filtering=no interface=wifi70-media
/interface bridge settings
set use-ip-firewall-for-vlan=yes
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set disable-ipv6=yes forward=no
/interface bridge vlan
add bridge=bridge tagged=ether4-infra-media,bridge vlan-ids=30
add bridge=bridge tagged=ether4-infra-media,bridge untagged=wifi70-media \
vlan-ids=70
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1-wan list=WAN
/ip address
add address=10.10.1.1/24 comment="defconf, mgmt, VID=1" interface=bridge \
network=10.10.1.0
add address=10.10.30.1/24 comment="infra, VID=30" interface=vlan30-infra \
network=10.10.30.0
add address=10.10.70.1/24 comment="media, VID=70" interface=vlan70-media \
network=10.10.70.0
add address=10.10.70.2/24 interface=bridge network=10.10.70.0
/ip dhcp-client
add comment=defconf interface=ether1-wan
/ip dhcp-server network
add address=10.10.70.0/24 dns-server=10.10.1.1 gateway=10.10.70.2
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,new,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none log-prefix=MASQ out-interface-list=WAN
/system clock
set time-zone-name=America/Toronto
/system logging
add prefix="DHCP===" topics=dhcp
/system ntp client
set enabled=yes
/system ntp server
set enabled=yes
/system ntp client servers
add address=0.ca.pool.ntp.org
add address=1.ca.pool.ntp.org
add address=2.ca.pool.ntp.org
add address=3.ca.pool.ntp.org
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN