Matter Homelab
Network switch cabled to a white border router whose dotted mesh links connect a smart bulb, smart plug, and door sensor on a dark navy backdrop
network-design

IPv6 Requirements for Matter and Thread, Explained

Find out why Matter and Thread need local IPv6 even on IPv4 internet, and how to check Thread routes, multicast discovery, and Home Assistant settings.

By Matter Homelab Editorial · · Updated · 6 min read

Matter and Thread need working IPv6 on your home network and can operate with IPv4-only internet service. Matter uses IPv6 to communicate with devices, and Thread is an IPv6-only mesh. For a Matter controller to reach a Thread device, the local network needs a route through a Thread border router and working multicast discovery. Matter Handbook, Home Assistant Thread docs, OpenThread border router codelab.

How IPv6 reaches the Thread mesh

A Thread border router links the mesh to your Wi-Fi or Ethernet LAN. It advertises a route to the Thread off-mesh routable (OMR) prefix in an IPv6 router advertisement with a Route Information Option (RIO). A LAN host that installs that route can send packets for the Thread prefix to the border router. OpenThread Border Routing Manager, RFC 4191.

LAN hosts also need an address that Thread devices can reach. OpenThread uses a routable prefix advertised by a LAN router when available. If there is no suitable advertisement, the border router generates and advertises an on-link unique local address (ULA) prefix. These local routes can work without an ISP-provided IPv6 prefix or a DHCPv6 server. OpenThread Border Routing Manager, Home Assistant Matter docs.

The addresses you will see

AddressPrefixWhere the address comes fromWhat it is for
Link-localfe80::/10 rangeConfigured on the interfaceCommunication on a single link. RFC 4291.
Mesh-localULA under fd00::/8Each Thread device builds its address from the Mesh-Local Prefix. The device forming the network generates that prefix as part of the Operational Dataset.Communication inside the mesh. OpenThread IPv6 addressing, OpenThread network formation.
Off-mesh routable (OMR)A routable Thread prefix, such as the codelab’s ULA /64The Thread device configures an address from the prefix the border router publishes in Thread Network Data.Reaching Thread devices from the LAN. OpenThread Border Routing Manager, OpenThread border router codelab.
LAN on-linkA prefix advertised on Wi-Fi or EthernetLAN hosts can configure addresses from the prefix advertised by a LAN router or the Thread border router.Giving the controller an IPv6 address the Thread device can reach. OpenThread Border Routing Manager.

For hardware and placement, see the Thread border router guide. For the roles of the controller, mesh and border router, see how Matter, Thread and border routers fit together.

Where it breaks in practice

Routers and access points. Pairing can appear to succeed even when IPv6 is disabled on Wi-Fi, then control can fail. Multicast optimization on a router or access point can also interfere with Matter discovery. Google’s Matter preparation guide, Home Assistant Matter docs.

UniFi settings to check. For discovery problems on UniFi, 1Home documents these settings. Change one at a time and recheck control after the access point applies it. 1Home network diagnostic guide.

  • In Settings > WiFi > your WiFi network > Advanced Configuration, disable Multicast Enhancement, which converts multicast to unicast.
  • On the same screen, disable Multicast and Broadcast Control if your devices are being filtered. With it enabled, 1Home says devices need to be on the allowlist to advertise their mDNS services.
  • In Settings > Networks > Global Network Settings, check IGMP Snooping if discovery drops when devices roam between access points. The guide recommends disabling it for this problem.
  • In Settings > Networks > your network > DHCP > Domain Name, leave the field empty if it is set to local. The .local domain is reserved for mDNS.

For more on these controls, see the UniFi advanced wireless settings guide.

VLANs. For troubleshooting, put the controller, Wi-Fi Matter devices, Thread border router and commissioning phone on the same LAN or VLAN. This keeps link-local multicast on the same segment. The matter.js server documentation also advises against mDNS forwarders between segments. matter.js OS requirements.

Home Assistant. In Settings > System > Network, set IPv6 to Automatic, or use static IPv6 if your network requires it. Home Assistant documents Home Assistant OS 10 or newer for Thread-based Matter devices and recommends its Matter Server app. Home Assistant Matter docs.

For a standalone matter.js server outside Home Assistant OS, the project documents recent 64-bit Linux and macOS releases and excludes WSL. On Linux, it specifies NetworkManager 1.42 or later when NetworkManager handles routes. Use --network=host for its Docker image. matter.js OS requirements.

For Home Assistant in a VM, check IPv6 at the guest’s virtual network interface and at the hypervisor if it routes traffic. For Home Assistant Container, check that Docker has IPv6 enabled and that the Linux host forwards IPv6 if it routes container traffic. Home Assistant Thread docs.

If that affects your installation choice, the Home Assistant OS versus container comparison covers the trade-offs.

Check the controller’s IPv6 connection

  1. Enable IPv6 locally. Confirm IPv6 is enabled on the controller and the router or access point serving it. Keep IPv6 forwarding enabled on the equipment that routes between networks. Home Assistant’s network menu is listed above. Home Assistant Matter docs, Home Assistant Thread docs, Google’s Matter preparation guide.

  2. Check discovery. Put the controller and border router on the same LAN while troubleshooting. Recheck control after changing a multicast setting so you can identify which setting matters. matter.js OS requirements, 1Home network diagnostic guide.

  3. Inspect addresses and routes on a Linux controller. Replace eth0 with the controller’s LAN interface. Linux IPv6 HOWTO.

    ip -6 addr show dev eth0
    ip -6 route show dev eth0

    In the address list, look for a routable address from the LAN prefix in addition to the link-local address. In the route list, look for the OMR prefix with the border router as the next hop. OpenThread Border Routing Manager, RFC 4191.

    On an OpenThread Border Router with shell access, run sudo ot-ctl netdata show. In the codelab’s example, the OMR prefix is fd76:a5d1:fcb0:1707::/64 under Prefixes. Use your border router’s prefix when checking the controller’s route. OpenThread border router codelab.

  4. Check Linux router advertisement handling if the route is missing. If the Linux kernel handles router advertisements, read the interface setting with the command below. Replace wlan0 with the controller’s LAN interface. The codelab uses accept_ra=1 when forwarding is off and 2 when the host must forward IPv6. It sets accept_ra_rt_info_max_plen to at least 64. OpenThread border router codelab.

    sudo sysctl -n net.ipv6.conf.wlan0.accept_ra

    For a controller using the kernel’s router advertisement handling with IPv6 forwarding off, the following settings enable advertisements and allow routes advertised with the codelab’s prefix length. Reconnect to Wi-Fi after applying them to solicit a fresh advertisement. OpenThread border router codelab.

    sudo sysctl -w net.ipv6.conf.wlan0.accept_ra=1
    sudo sysctl -w net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen=64

    The codelab shows persisting the route setting by adding net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen = 64 to /etc/sysctl.conf. If NetworkManager or systemd-networkd handles the interface, use that manager’s configuration or connection profile. For a Linux host that only runs the Matter controller, matter.js advises keeping IPv6 forwarding off so the kernel can probe route reachability. OpenThread border router codelab, matter.js OS requirements.

  5. Check Docker IPv6 on Home Assistant OS. Open Terminal & SSH and run ha docker info. If enable_ipv6 is null or false, run ha docker options --enable-ipv6=true, then ha host reboot. The reboot temporarily interrupts Home Assistant. Home Assistant Thread docs.

  6. Check connection tracking if a stateful Linux firewall sits between the controller and the border router. Read the timeout on the kernel that filters the packets, such as the hypervisor when it provides the VM firewall. The matter.js guide recommends at least 1800 seconds for sleepy devices. matter.js OS requirements.

    sysctl net.netfilter.nf_conntrack_udp_timeout_stream

    If the value is below 1800, the guide uses the following command to set it to 3600 seconds. This changes the filtering kernel’s UDP stream timeout. matter.js OS requirements.

    sudo sysctl -w net.netfilter.nf_conntrack_udp_timeout_stream=3600

    If firewall rules restrict Matter by destination port, review rules pinned to UDP/5540. A device can advertise another port through mDNS. matter.js OS requirements.

For other symptoms, see the pairing failure fix list and why Matter devices keep going offline. For WAN outages, see does Matter work without internet.

Evidence and limits. The Matter Handbook, OpenThread codelab and Home Assistant 2026.11.2 documentation were checked on 2026-11-21. The commands and settings were documented without hands-on testing.

Sources

  1. Matter Handbook: Connectivity Transports
  2. OpenThread: Border Routing Manager
  3. OpenThread: IPv6 Addressing
  4. OpenThread: Form Thread Network
  5. OpenThread codelab: Border Router bidirectional IPv6 connectivity
  6. Home Assistant: Matter integration
  7. Home Assistant: Thread integration
  8. matter.js Matter Server: OS requirements
  9. Google Home and Nest Help: Prepare your smart home for Matter
  10. 1Home Server: Diagnosing network issues
  11. RFC 4291: IP Version 6 Addressing Architecture
  12. RFC 4191: Default Router Preferences and More-Specific Routes
  13. Linux IPv6 HOWTO: Displaying IPv6 addresses and routes

Related