Skip to content
Contents
GuidesOpenWrt

Network diagnosis by hop

On a wired client read the address, prefix, default gateway and DNS from its lease. Try the LAN gateway. If that works, read the WAN lease and default route in LuCI. Compare a known reachable IP with a hostname from the same client. A missing WAN address points upstream; names failing with working IP connectivity sends you to the resolver.

On a wired client read the address, prefix, default gateway and DNS from its lease. Try the LAN gateway. If that works, read the WAN lease and default route in LuCI. Compare a known reachable IP with a hostname from the same client. A missing WAN address points upstream; names failing with working IP connectivity sends you to the resolver.

Gateway, lease or DNS? Start with the first missing hop

On a wired client read the address, prefix, default gateway and DNS from its lease. Try the LAN gateway. If that works, read the WAN lease and default route in LuCI. Compare a known reachable IP with a hostname from the same client. A missing WAN address points upstream; names failing with working IP connectivity sends you to the resolver.

ip -br addr ; ip route

A DNS answer and a reachable port are separate checks

dnsmasq manual

One name, two resolvers

Ask the LAN resolver for a local hostname and a public one, naming the resolver explicitly. For a private suffix forward only that suffix to its authoritative internal server. Keep public names on the normal upstream. After a change try an uncached name and compare with the client's usual lookup. A browser using its own encrypted DNS may give a different answer.

nslookup probe.lab.test 192.168.1.1

dnsmasq manual

An IPv6 address on WAN is only half the picture

Check WAN6 for a delegated prefix, then look for a LAN prefix and a default route on a client. A link-local address alone cannot reach a public service. Test with an IPv6 destination and then a hostname. Check firewall forwarding even when there is no address translation.

ip -6 addr ; ip -6 route

IPv6 Stateless Address Autoconfiguration · DHCP for IPv6

Who answered this client's DHCP request?

Capture only a test client's renewal interval on the affected VLAN. Compare the server identifier, offered gateway and DNS to the authorized scope. Multiple offers can be legitimate with managed redundancy; map each source MAC to its port. With a relay, examine both the client VLAN and server side. Option 43 encodes vendor-specific information.

tcpdump -ni br-lan -c 20 'arp or port 67 or port 68'

dnsmasq manual · tcpdump manual

Two cables between switches

Before adding the second cable decide whether the ports form one agreed aggregation group or two independent paths protected by spanning tree. A bundle usually hashes flows across members, so compare several flows and observe port counters. A single transfer can remain on one member.

Ethernet Bridging

Where does an untagged frame go?

Write down the switch port facing the AP and the one facing the router. An access port assigns its PVID to untagged ingress. A trunk must carry the intended VLAN tag at both ends. Keep one management port as it was. Join each SSID in turn and compare the DHCP subnet; then try reaching the other subnet to test the firewall separately.

bridge vlan show

Ethernet Bridging · VLANs in OpenWrt 21

Test the guest network in both directions

Join the guest SSID with one device. Check its lease, DNS and internet access. Then try a LAN-only service and the router's management page. Permit DHCP and DNS to the router where needed, restrict management input and allow guest forwarding only to intended networks. Wireless client isolation also needs a second client on that SSID to test it.

nft list ruleset

OpenWrt firewall4

Discovery works, but can the phone reach the service?

mDNS normally stays on its link. Across VLANs, restrict reflection to the interfaces that need discovery. First see whether the phone learns the service name. Then test the advertised host and port under your firewall rules. Seeing a speaker in the list does not establish a working audio connection.

tcpdump -ni br-lan udp port 5353

Multicast DNS

An IPTV stream reaches every port

IGMP snooping constrains layer-two delivery using group membership. A proxy deals with multicast subscription across routed interfaces. First identify the incoming service VLAN, the decoder's interface and the multicast group. During playback inspect membership on the bridge, then observe the uplink subscription. Changing both features together hides which hop failed.

bridge mdb show

Ethernet Bridging

Which network does the smart device use?

A Matter device on Wi-Fi already uses the IP LAN. A Thread device needs a Thread border router to reach the adjacent IP network; identify a supported 802.15.4 radio before choosing software. Track presence with actual observations and a timeout because a sleeping client can retain its lease. To view an IP camera remotely, test its LAN stream first, then give a VPN client access to that service alone.

OpenThread Border Router · Device tracker integration · Tailscale subnet routers

References and media

Type Attachment Source Language Version or date
Diagram A DNS answer and a reachable port are separate checks GeeksMeta en 2026-11-27
Document dnsmasq manual Simon Kelley en —
Document IPv6 Stateless Address Autoconfiguration IETF en —
Document DHCP for IPv6 IETF en —
Document tcpdump manual The Tcpdump Group en —
Document Ethernet Bridging Linux kernel en —
Video VLANs in OpenWrt 21 onemarcfifty en OpenWrt 21.02
Document OpenWrt firewall4 OpenWrt en —
Document Multicast DNS IETF en —
Document OpenThread Border Router OpenThread en —
Document Device tracker integration Home Assistant en —
Document Tailscale subnet routers Tailscale en —
Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments