OpenWrt · 802.11s mesh · VLANs

OpenWrt Network Lab

Three D-Link Aquila Pro AI M30 A1 routers running OpenWrt, joined by a wireless mesh. One routes and serves addresses; the other two extend it at Layer 2, and a second VLAN rides the same wireless backhaul.

Based on a read-only inspection of all three routers on 2 August 2026 and the troubleshooting that followed.

Three nodesD-Link M30 A1 routers
OpenWrt 24.10.2Same release on every node
802.11s mesh5 GHz backhaul, SAE
Two VLANsVLAN 1 and VLAN 20
One gatewayDHCP, DNS and firewall

Interactive topology · Archify

One gateway, two mesh nodes,
one trunk across the air.

The main node connects to the upstream network and owns DHCP, DNS and the firewall. Nodes 2 and 3 join it over an 802.11s mesh on 5 GHz channel 48. Each node offers wired ports and a pair of SSIDs, one per VLAN.

Reading the map: the WAN lands on the main gateway. Mesh links connect it to the other two nodes, and every node serves its own wired ports and wireless networks. The nodes were mutually peered, though the map draws only the links to the gateway.

Explore the interactive topology Expand / collapse

The detailed map keeps readable labels. Use the pan buttons, swipe the frame, or focus it and press ← / →. Home / End reach either edge; viewer controls are on the right.

Six layers

A mesh is a set of decisions about where things live.

These layers describe the design rather than a build order. Each one answers a question a multi-router home network has to settle: who routes, how nodes link, how VLANs cross, where services run, how clients move and how faults are found.

01

One image, three roles

Same firmware everywhere; different jobs.

All three nodes report OpenWrt 24.10.2 revision r28739 on the M30 A1, although each runs a different LuCI build. The main node faces the upstream network with DHCP on its WAN and WAN6 interfaces and holds a static LAN address. The other two are given LAN addresses and a gateway, but they are not routers: their VLAN 20 interface has no protocol and no default route, so each acts as a Layer-2 access point. [S1]

Keeping the firmware identical makes the mesh easier to reason about; the differing LuCI builds are a small maintenance note.

02

The wireless backhaul

Use the 5 GHz radio as the link between rooms.

Each node runs a mesh-point interface on its 5 GHz radio at channel 48 with an 80 MHz VHT channel, protected with SAE and with mesh forwarding on. At inspection each node showed two established mesh peers, so all three were directly linked; the main node’s two links reported airtime metrics of 10 and 34. The 2.4 GHz radio is on only at the main node, on channel 6; the two mesh nodes have it switched off. [S1]

A batman-adv interface is defined on the main node, with the gateway-server mode and bridge-loop avoidance set, but the live mesh was plain 802.11s. The same radio also carries client traffic, so backhaul and clients share airtime. That is the design trade-off of a single-radio backhaul.

03

VLANs across the mesh

Tag on the trunk, untag at the edge.

Every node uses a bridge with VLAN filtering. VLAN 1 is untagged on lan1, lan3 and lan4; VLAN 20 is untagged on lan2; and the mesh port carries both VLANs tagged. A separate SSID serves each VLAN. Only the main node has a Layer-3 interface for VLAN 20, a static network with its own DHCP pool, so the VLAN’s gateway lives in one place. [S1]

The consequence is simple and worth stating: a wired device’s VLAN is decided by which physical port it uses. A cable in any port other than lan2 lands in VLAN 1, which is exactly the situation the diagnosis below begins with.

04

Services in one place

Let the gateway serve addresses, names and policy.

The main node runs dnsmasq and odhcpd for both networks, with a pool starting at 100 and a limit of 150 on each. Its firewall uses OpenWrt’s stock layout: the WAN zone rejects input and forward and masquerades, LAN may forward to WAN, and the usual WAN allowances for DHCP renewal, ping, IGMP, DHCPv6, ICMPv6 and IPsec are present. The two mesh nodes had DHCP, firewall and odhcpd services disabled, which avoids competing servers on the shared VLANs. [S1]

VLAN 20 is placed in the same trusted firewall zone as the main LAN. It therefore has its own broadcast domain and addressing, and traffic between the networks is not filtered by a zone boundary.

05

Roaming

Make the same SSID behave across rooms.

On the main node and node 3, the VLAN 1 5 GHz network enables 802.11r fast transition over the distribution system, 802.11k neighbour reports and 802.11v BSS transition, with a shared mobility domain. Those settings let compatible clients move between nodes without a full re-authentication. [S1]

06

Diagnose from the edge

Test the layers in order before changing anything.

A wired laptop on node 3 received a 169.254 address, and a wired server on the same node had no internet. Rather than touch the mesh, the diagnosis worked from the cable inward: link and VLAN membership, reachability across the mesh, DHCP logs at the gateway, then the client’s own configuration. [S2]

The gateway’s logs showed the laptop receiving a DHCP Offer but never sending a Request, which points to the client side. The server held a static address inside the dynamic pool plus a stray lease, so a reservation with an infinite lease was added on the gateway. Its routing table had only the local subnet, because, as diagnosed, the netplan file had a duplicate routes key and wrong indentation. The mesh and VLAN configuration was never the cause.

A real fault, from the edge inward

The network was fine.
Two clients were not.

The sequence follows the diagnosis across the mesh node and the gateway. It shows what each check ruled out.

Reading the sequence: the laptop’s link and VLAN port checked out and the path across the mesh worked. The gateway offered an address the laptop never requested. The server’s problems were an overlapping static address and a missing default route.

Explore the diagnosis sequence Expand / collapse

Pan across participants with the buttons or ← / → when the frame is focused. Scroll inside the viewer to follow the sequence vertically; Home / End reach either horizontal edge.

Reserve before relying on a static address.

The server’s address sat inside the router’s dynamic range with no reservation, which invites conflicts. A host entry with an infinite lease reserves it for that device. The DHCP-client messages seen when dnsmasq restarted were the router checking for another DHCP server and were harmless.

Validate remote network changes safely.

The corrected netplan file was checked with a dry-run generate step, and applying it with a timed trial protects an SSH session from locking the user out. The permissions warning netplan printed was separate and easy to fix.

Sources & checks

Where the details come from.

The configuration and diagnosis described here come from the sources below.

Sources
  • [S1] Router inspection. A recorded read-only SSH inspection of all three nodes on 2 August 2026: OpenWrt and LuCI versions, network and bridge-VLAN settings, wireless interfaces, DHCP and firewall configuration, service states and live mesh peers and paths. Pending configuration changes were reported clean.
  • [S2] Diagnosis. The same session’s later checks: link state and VLAN membership on node 3, ping tests, DHCP logs on the main gateway, the DHCP reservation and its verification, and the client’s routing table and netplan file.

The takeaway

Put policy in one place,
and diagnose from the edge inward.

A three-node mesh stays understandable when the gateway owns addressing and firewalling, the other nodes only bridge, and each VLAN is carried tagged over the backhaul. The same discipline made a confusing wired-client fault straightforward: rule out each layer, then fix the one that failed.

Back to the beginning ↑