I am running HA on a RPi4 and would like to have two IP addresses on eth0. I’m trying to connect my Samsung TV to HA, but they are on separate VLANs and Samsung TV will not communicate across VLANs. I trying to solve the problem by having an IP address for each VLAN. I know that this can be done on a native RPi, but how can I do it on the HA system?
Why does TV need to retrieve data from HA?
You should be able to allow need communication from HA to Samsung. I wouldn’t expect you need “to:HA / from:Samsung”
Unfortunately, that will not work. From the Samsung TV integration documentation:
Blockquote Known issues and restrictions
Subnet/VLAN
Samsung SmartTV does not allow WebSocket connections across different subnets or VLANs. If your TV is not on the same subnet as Home Assistant this will fail. It may be possible to bypass this issue by using IP masquerading or a proxy.
ha network info
#to confirm your primary interface like eth0
ha network vlan eth0 10 --ipv4-method dhcp --ipv6-method disabled
ha network vlan eth0 10 \
--ipv4-method static \
--ipv4-address 192.168.10.50/24 \
--ipv4-gateway 192.168.10.1 \
--ipv4-nameserver 192.168.10.1
ha network reload
In Settings → System → Network, you’ll now see a second interface named eth0.10 something like this. Assign appropriate IPv4 settings if needed.
didnt test it but i think this can do the trick
Thanks, I was able to define the second address easily. I haven’t tested it yet with the TV, but I’m impressed how easy it was. Here’s hoping that the TV thinks so too!
Glad i was able to help you
There is one additional required step; it is necessary to specify using both both (Settings → System → Network ->) Network Adapters and to remember to restart HA.
The second adapter allowed connecting the Samsung TV without a problem.