After moving IoT devices onto their own VLAN with a VLAN setup guide, you may be able to ping a smart plug or Chromecast that Home Assistant cannot discover. The ping tests an IP path. Discovery may use multicast DNS (mDNS), whose link-local announcements remain inside each VLAN under ordinary routing. A scoped reflector can repeat those announcements between the intended links, while separate unicast firewall rules still control the device’s actual service.
What mDNS Does—and Where It Stops
mDNS lets devices query and announce names on the local link without a conventional DNS server; DNS-based service discovery uses those records to describe available services. IPv4 mDNS uses 224.0.0.251 and IPv6 uses ff02::fb, both on UDP port 5353. Those multicast groups are link-local. RFC 6762[1] recommends sending responses with an IP TTL of 255 for compatibility with older queriers that check it. That is different from sending with TTL 1, and it is not a claim that every current receiver uses the old TTL check.
Home Assistant’s Zeroconf integration[2] searches for supported services. Google Cast uses it for automatic discovery, so allowing a TCP connection from Home Assistant on VLAN 10 to a Cast device on VLAN 20 does not by itself supply discovery. There is a support boundary here: the Cast documentation[3] does not recommend or support automatic discovery across subnets, although it describes mDNS forwarding or a known-host list as alternatives when separate subnets are unavoidable. Other integrations use SSDP, DHCP or their own methods. Confirm the target integration’s method before choosing an mDNS reflector.
A reflector repeats eligible mDNS queries and responses on selected local interfaces, sharing names and service metadata across them. Once Home Assistant learns the device address, its application connection still needs permission through the firewall. Test those stages separately: first discovery, then TCP or UDP access to the documented service. Merely allowing multicast at the firewall does not make the router repeat it between links.
Pick the Place That Already Touches Both VLANs
| Option | Use when | Boundary to check |
|---|---|---|
OPNsense os-mdns-repeater |
OPNsense is the gateway for both VLANs | Select only the intended interfaces; check the installed plugin exists for your release. |
| Avahi reflector on Linux | A Linux router or separate host has interfaces in both VLANs | Set allow-interfaces under [server] and enable reflection under [reflector]. |
| Other vendor's mDNS feature | Your router or managed network offers a supported reflector | Follow its current documentation and verify the exact networks and service scope. |
Choose one reflector between these networks. Avahi’s manual warns that two can bounce packets back and forth. Whether the service runs directly on Linux or in a container, it needs working access to both VLAN interfaces; an image labeled Avahi does not establish that access. In this example Home Assistant remains a client on one link, with the reflector on the host connecting both.
OPNsense gateway
OPNsense’s Multicast DNS Proxy guide[4] uses the os-mdns-repeater plugin. Install it through System → Firmware → Plugins if it is available for your release, then open Services → MDNS Repeater. Enable the service and select the two intended VLAN interfaces, leaving WAN and unrelated guest links out. The guide specifies two to five interfaces; this example needs only two. The plugin’s current daemon is an IPv4 mDNS repeater, so do not treat it as a relay for ff02::fb or as proof of IPv6 discovery. Save and apply, then test from both VLANs. Interface selection scopes which networks exchange metadata; it does not limit discovery to one approved smart device. Keep application access restricted separately, using the OPNsense IoT rules guide for that unicast policy.
Avahi on a Linux router or multi-homed host
For a Debian router already connected to VLAN 10 and VLAN 20, Avahi offers a direct reflector. The interface names below are examples: use ip -br addr on your host to confirm its actual VLAN subinterfaces. The host must be able to receive multicast on both links. Use a planned maintenance window if changing discovery on a production router.
Install the packaged daemon and browsing utility:
sudo apt update
sudo apt install avahi-daemon avahi-utils
Edit /etc/avahi/avahi-daemon.conf. Put the interface allowlist in [server], not [reflector]. Put the reflection switches in [reflector]:
[server]
allow-interfaces=eth0.10,eth0.20
[reflector]
enable-reflector=yes
reflect-ipv=no
Keep the other options in the existing file; this is an excerpt, not a replacement configuration. In the Debian Avahi manual[5], allow-interfaces limits the links Avahi uses; an empty list otherwise permits eligible local interfaces beyond these two VLANs. That can expose discovery on an unintended local segment, including a WAN-facing link. reflect-ipv=no prevents translation between IPv4 and IPv6; it does not disable IPv6 mDNS on allowed interfaces when Avahi’s IPv6 support is enabled. The packaged manual also documents reflect-filters for allowed service names or types. If you need that narrower scope, confirm your installed version supports the option and test the resulting advertisements.
Restart and check the daemon:
sudo systemctl restart avahi-daemon
sudo systemctl status avahi-daemon
journalctl -u avahi-daemon -n 50 --no-pager
A failed daemon start calls for checking the option’s section and the actual interface names first. Then inspect local firewall permission to receive and send UDP 5353 on those two links. Keep the change limited to the intended interfaces, leaving WAN and unrelated guest traffic outside it.
A Two-VLAN Test You Can Repeat
Suppose the main LAN is VLAN 10 (192.168.10.0/24) and IoT is VLAN 20 (192.168.20.0/24). The Avahi host has eth0.10 and eth0.20; Home Assistant is on VLAN 10 and a device supported by its Zeroconf integration is on VLAN 20. These are example addresses and names, not a claim about your network.
First, confirm the device advertises an mDNS service on VLAN 20. A Linux client there can run avahi-browse -a -r; on macOS, dns-sd -B <service-type> local browses a specific service. Use the service type in that device's current integration documentation. Do not assume a Sonos speaker is _googlecast._tcp or that every device publishes _home-assistant._tcp: Home Assistant advertises that last type for discovery of the Home Assistant instance itself.
Browse next from VLAN 10 with avahi-browse -a -r, or open Settings → System → Network → Zeroconf Browser in Home Assistant. The Linux command browses all service types; Home Assistant’s browser shows the specific services its Zeroconf subsystem searches for, so the two lists need not be identical. Compare each tool’s entries before and after enabling reflection. If the intended service remains absent, work back through its source-VLAN advertisement, reflector logs, interface list and local firewall, confirming the clients’ VLANs too. An entry arriving on VLAN 10 establishes that discovery metadata crossed the boundary; application access is the next check.
Then try the actual Home Assistant integration under Settings → Devices & Services. A supported discovery flow may appear in Discovered, but it is not guaranteed for every device or integration. Check Home Assistant's Network integration interface selection and whether Zeroconf is enabled if the browser is empty. A restart can retrigger some scans, but homeassistant.update_entity is not an mDNS rescan command. If discovery succeeds and setup or control fails, check the unicast route and firewall rule for that integration. Use the device's documented ports rather than opening the whole IoT VLAN.
Finally test from the other VLAN only if you intend discovery in both directions. An Avahi reflector exchanges queries and announcements across selected links; it is not a one-way authorization policy. If your goal is only for Home Assistant to control one known device, a manual-IP integration may be simpler when the integration supports it. Compare the convenience of discovery with the metadata exposure before leaving the reflector enabled.
What This Fix Does Not Cover
SSDP is a separate discovery protocol, commonly used by UPnP and some media devices; mDNS reflection does not relay its multicast traffic. A device can also require callbacks, additional UDP traffic, IPv6 reachability or access from the phone as well as Home Assistant. The exact requirements belong to the individual integration. If a device appears in Zeroconf Browser but not in the integrations list, ask whether that integration supports automatic discovery. If it appears but cannot be controlled, inspect the data-plane path instead of adding another reflector.
Keep the two paths separate when you finish: a service announcement travels from the device’s VLAN through the reflector to Home Assistant; the application connection then travels to the device through the allowed route and ports. Verify each path for the integration you actually use, including IPv6 separately where relevant. Leave unrelated interfaces out and keep the source-VLAN and destination-VLAN observations with the configuration. That gives you a useful comparison after the next network change.