I’m running Home Assistant OS on Home Assistant Blue (ODROID-N2), but I think this question applies in general to all HAOS style installations.
I’m trying to assign a second IP address on a different subnet so that integrations that talk to IOT devices that don’t accept connections from different subnets will work. E.g. Apple TV doesn’t appear to and Samsung TV ( Samsung Smart TV - Home Assistant ) is known to not accept connections from different subnets.
I’m trying to work with just using the single built-in ethernet device “eth0”, however there doesn’t appear to be a way (neither in the UI nor in the ha CLI) to create a virtual subinterface, e.g. “eth0:10”, at the host level and assign it an address. I didn’t find any help here that worked with the HAOS installation style.
I could try using a USB to ethernet adapter and attempt to assign a second address to a physical “eth1” interface that way.
adding USB to ethernet adapter worked. I could almost have done it without rebooting, i.e. just doing ha network reload after plugging in the adapter and plugging it into network. However, I put it on the wrong network, so had to ha host reboot to get it to rerun DHCP and get a new address.
I also run HA on one network and most of my wifi IOT devices on another VLAN. I was trying to nudge things into working by enabling MDNS broadcasts, etc. But just doing a 2nd NIC makes lots of sense.
Now I’ll have dongles in all 4 ODROID-N2+ USB ports-- dongles for Z-Wave, Zigbee, new Bluetooth support, & 2nd NIC. Oh crap, my Apple TV and Alexa devices are on yet a 3rd VLAN. Hmm, gotta think on that one.