I have moved my HomeAssistant to a new subnet but left my Google Assistant/speaker on the original subnet. Since doing this HA can no longer broadcast to the Google Speaker.
Testing multicasting using the below shows that this is not working: iperf -s -u -B 239.255.255.250 -i 1
and iperf -c 239.255.255.250 -u -b 1M -t 10
After some googling, I enabled Avahi and added the interfaces for both subnets.
Right now the firewall rules on both subnets are set to a single allow all rule.
Totally true, but some switches disable multicast altogether by default. It can cause real havoc on busy networks. I think you’re right that it’s probably not the case here.
IGMP Snooping probably does not make a difference. I have it turned of on all devices and everything works as expected.
This is an optimization to reduce traffic ports that don’t have clients using those groups. I am not sure whether the SSDP and mDNS discovery protocols are implemented correctly everywhere so that the clients join to the group using IGMP. If there are incorrectly implemented clients this IGMP Snooping optimization wil break their discovery phase. This is why I turned it off.
My approach would be do look with Wireshark in the VLANs where the devices are located that you want to work together. Then you will see what a device in a VLAN 1 is sending and whether those datagrams are repeated on the other VLAN 2.
UDP port: 5353 (for mDNS traffic used for device discovery)
Configuration for Google Devices:
Create a new UDP Broadcast Relay instance (if you’re separating it from the Sonoff setup, otherwise you can combine them):
Interfaces: Select the VLANs/networks where the Google devices and controllers (e.g., phones, tablets) are located.
Spoof Source: Set to Keep original.
Destination UDP port: Set to 5353.
Multicast group: Set to 224.0.0.251
Using the below to test, I could see the multicast traffice on both subnets.
tcpdump -i igc2.20 host 224.0.0.251 and port 5353
tcpdump -i igc1 host 224.0.0.251 and port 5353
I then ran the desired script on Home Assistant and all was sweet.
Many thanks for pointing me in the right direction.