I am trying to set up ether2 as an access port on VLAN 10 with a DHCP server on that VLAN. I ran the following to create the VLAN and assign the access port:
/interface bridge
set [find name=bridge] vlan-filtering=yes
/interface vlan
add interface=bridge name=vpn vlan-id=10
/ip pool
add name=vpn ranges=10.10.110.2-10.10.110.254
/ip dhcp-server
add address-pool=vpn interface=vpn lease-time=10m name=vpn
/interface bridge port
set [find bridge=bridge interface=ether2] frame-types=\
admit-only-untagged-and-priority-tagged pvid=10
/ip address
add address=10.10.110.1/24 interface=vpn network=10.10.110.0
/ip dhcp-server network
add address=10.10.110.0/24 gateway=10.10.110.1
I was hoping this would allocate IPs in the 10.10.110.2-10.10.110.254 range on ether2, but I don’t get an IP allocated when connecting to this port.
I am running RouterOS 7.13 on a hAP ac². I’ve seen some guides showing adding ether2 as an untagged port on the bridge (under /interface bridge vlan), but it seems like this is already created dynamically by RouterOS.
I assume I’m missing something obvious. Here’s my full configuration as it is now (the majority of it is stock):
# 2023-12-27 20:33:27 by RouterOS 7.13
# software id = XXXX-XXXX
#
# model = RBD52G-5HacD2HnD
# serial number = XXXXXXXXXXXX
/interface bridge
add admin-mac=XX:XX:XX:XX:XX:XX auto-mac=no comment=defconf \
ingress-filtering=no name=bridge port-cost-mode=short vlan-filtering=yes
/interface vlan
add interface=bridge name=vpn vlan-id=10
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk mode=dynamic-keys name=XXX \
supplicant-identity=MikroTik
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
country="united kingdom" disabled=no distance=indoors frequency=2437 \
installation=indoor mode=ap-bridge security-profile=XXX ssid=XXX \
wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
20/40/80mhz-XXXX disabled=no distance=indoors frequency=auto \
installation=indoor mode=ap-bridge security-profile=XXX ssid=XXX \
wireless-protocol=802.11
add disabled=no mac-address=XX:XX:XX:XX:XX:XX master-interface=wlanX mode=\
station name=wlan3 ssid=XXX wds-default-bridge=bridge
/ip pool
add name=default-dhcp ranges=10.10.10.2-10.10.10.254
add name=vpn ranges=10.10.110.2-10.10.110.254
/ip dhcp-server
add address-pool=default-dhcp interface=bridge lease-time=10m name=defconf
add address-pool=vpn interface=vpn lease-time=10m name=vpn
/routing bgp template
set default disabled=no output.network=bgp-networks
/routing ospf instance
add disabled=no name=default-v2
/routing ospf area
add disabled=yes instance=default-v2 name=backbone-v2
/interface bridge port
add bridge=bridge comment=defconf frame-types=\
admit-only-untagged-and-priority-tagged ingress-filtering=no interface=\
ether2 internal-path-cost=10 path-cost=10 pvid=10
add bridge=bridge comment=defconf ingress-filtering=no interface=ether3 \
internal-path-cost=10 path-cost=10
add bridge=bridge comment=defconf ingress-filtering=no interface=ether4 \
internal-path-cost=10 path-cost=10
add bridge=bridge comment=defconf ingress-filtering=no interface=ether5 \
internal-path-cost=10 path-cost=10
add bridge=bridge comment=defconf ingress-filtering=no interface=wlan1 \
internal-path-cost=10 path-cost=10
add bridge=bridge comment=defconf ingress-filtering=no interface=wlan2 \
internal-path-cost=10 path-cost=10
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ip settings
set max-neighbor-entries=8192
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=wlan3 list=WAN
/ip address
add address=10.10.10.1/24 interface=bridge network=10.10.10.0
add address=10.10.110.1/24 interface=vpn network=10.10.110.0
/ip dhcp-client
add comment=defconf interface=ether1
add interface=wlan3
/ip dhcp-server network
add address=10.10.10.0/24 comment=defconf gateway=10.10.10.1
add address=10.10.110.0/24 gateway=10.10.110.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=10.10.10.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,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 out-interface-list=WAN
/routing bfd configuration
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
/system clock
set time-zone-name=Europe/London
/system note
set show-at-login=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
My current setup connects to another wireless AP using wlan3 (5GHz) and uses that as the WAN interface. Can anyone see what’s wrong with my configuration?