Gbit Tech (818) 809-6743
C-7 #1050088  ·  Liability insured  ·  UniFi Certified PartnerNever the cheapest. Built to last.

UniFi Lab 08

mDNS casting across VLANs

Internet works on IoT. Phone still cannot find the TV. Discovery needs mDNS Proxy across VLANs.

IntermediateAbout 8 minNetwork

Your job: turn mDNS Proxy to Auto (or Custom with LAN and IoT). Keep IoT → LAN denied. Do not open the firewall to fix casting.

Run: mDNS Proxy off · Multicast Filtering off · IoT → LAN deny

Phone discoveryLAN phone → IoT TV · VLAN 30

TV not found · mDNS Proxy Off

mdns_offTV not found · mDNS Proxy Off

Goal: Cast finds TV across VLANs

Controls Why

Path and discovery

Trunk locked healthy
  1. GatewaymDNS Proxy OffOnline
  2. Trunk healthyNative LAN · Tagged IoT 30
  3. Switch + APWiFi Multicast Filtering OffOK
  4. WiFi · Default / LANUnicast and multicast pass
  5. LAN phoneSender · Default / LANSearching · TV not found
  6. mDNS discovery · LAN to IoTStops at the VLAN edge
  7. IoT TV / ChromecastSTOPCast target · VLAN 30 · Internet OKTV not found · mDNS Proxy Off

Discovery LAN phone to IoT TV

SettingNowNeed
mDNS ProxyOffAuto or Custom
Networks in proxyNoneLAN + IoT
Multicast FilteringOffOff
DiscoveryTV not foundAirPlay / Cast
IoT internetOKPreset
IoT → LANDeniedStay denied

mDNS Proxy Off · discovery stops at the VLAN edge

IoT TV

VLAN 30 · preset healthy
IP192.168.30.50
DHCP / DNSOK
InternetOnline
IoT → GatewayAllow (preset)
IoT → ExternalAllow (preset)
LAN reachDenied
Seen by phoneNo

Legend

  • Healthy / TV found
  • TV not found / proxy Off
  • LAN exposed (blocks win)

Controls

IoT → Gateway and IoT → External stay preset Allow. Discovery settings and IoT → LAN only.

mDNS Proxy
WiFi Multicast Filtering
IoT → Internal / LAN

Custom services, teaching labels

_airplay._tcp.local_googlecast._tcp.localNetwork count limit varies by gateway

Out of scope for this lab

Full IGMP courseSonos deep diveOpening IoT → LAN as the fixZBF Gateway rewrite (Lab 07)

Why this fails

mDNS Proxy Off

TV not found · AirPlay unavailable

After you isolate IoT, unicast internet can work while multicast discovery dies at the VLAN edge. Turn mDNS Proxy to Auto, or Custom with both networks. Do not open IoT → LAN to make casting work.

Why Broken and Fixed
D08 mDNS Proxy across VLANs, BrokenBroken. Phone on LAN, TV on IoT. IoT to LAN is Block. mDNS Proxy: Off. TV Not found.BrokenLANPhoneBlockmDNS Proxy: OffIoTTVNot foundD08 mDNS Proxy across VLANs, FixedFixed. mDNS Proxy: Auto bridges discovery between LAN and IoT. IoT to LAN still Block. TV Found.FixedLANPhoneBlockmDNS Proxy: AutoIoTTVFound
Proxy discovery. Keep LAN denied.

Console words

  • TV not foundPhone search shows no AirPlay or Cast target.Showing
  • mDNS Proxy OffSettings · mDNS Proxy = Off.Showing
  • Custom missing networkCustom lists LAN only or IoT only.Clear
  • Multicast Filtering OnSSID drops wired to wireless multicast.Clear
  • LAN exposedIoT → LAN allowed. Blocks the win.Clear
  • Cast finds TV across VLANsProxy on both networks. LAN denied.Clear

Gear in this lab

  • 1 Cloud Gateway / UDM class
  • 1 Switch + AP
  • 1 Phone on LAN
  • 1 TV / Chromecast on IoT VLAN 30
Change on win: none yet

Config only. Counts only, no prices.

A teaching lab, not a quote and not a design for your site. Settings are simplified from the UniFi Network app. No account, and nothing from this lab is saved.