Two ethernet ports in Home Assistant

HA is vm installed on ProxMox. HA uses vmbr0 now. I would like to also have HA use vmbr1 for IP cameras on Frigate which is installed as add-on in HA.
The plan is to have my PoE switch and cameras, plugged into the second motherboard port. I added vmbr1 to the hardware list for HA VM in Proxmox.
Do I now just add another IPV4 instance in the HA configure networks interface?
Will that automatically use vmbr1?
First post here. New to using HA, But got my bedroom light working to schedule already!

I dont have proxmox but I think that will work, but maybe just the other port when that is in another IPv4 subnet.

When you add it as a ethernet adapter in the vm settings it should.

Once you added the interface in the VM and restart HA system (not just HA core), then it should be available in the network settings as a tab.

Unless you really know your way around network routing and protocols, then you are setting yourself up for a disaster though.
IPv6 needs to be handled and that require a good knowledge about that protocol, which is quite different from IPv4, so your IPv4 knowledge can’t be used there.
Of course IPv6 can be disabled, unless you use Matter or other devices that require it. Mind you that it will NOT get easier later if you disable it now and then later decides to reenable it, when you need Matter. Quite the opposite!

All the discovery protocols of your devices and HA needs to be handled too, which means your frigate network devices will probably not be autodiscovered or they will and all other devices on your HA system will start to fail, because their autodiscover have been lost.

I decided to bare metal install home assistant on the server. Now the two nics are directly revealed to HA. I so far only intend to have HA and Frigate on the server. The networking errors presented in the Frigate log were many. I am hoping it will integrate more nicely now. To experiment I have to have some time available, as it requires taking the current surveillance system offline to try the integration. It is all PoE hardwired to a QNAP right now. Running HA OS directly removes some layers of complication I hope.

I came back to this install lately. Not working out.
I have HA installed on a dedicated machine. It is a direct install, not a VM. Nothing else installed.
I have two Ethernet ports. Both are seen by HA. Each has a static IP. I wish to use one for the cameras that are POE, the other is for HA itself.
At first Frigate ran, but did not show a feed. As I messed about more, it now does not start.
Do I need MQTT for this setup? I noticed someone else had Frigate operating without MQTT, using the HA as host with it’s IP. Will Frigate connect to cameras that are on the other Ethernet port? I am trying that IP in the camera path line.
For now those are my two questions.

HA is not a router, so this setup is not really supported by the code.

You might be able to get it work with a lot of fiddling and a lot of maintenance, if you have the right skills and knowledge.
You need to understand

  • IPv4 and IPv6 (IPv6 is nothing like IPv4, so do not think your IPv4 knowledge is enough)
  • protocols on both IP networks, especially the discovery protocols, where the standard ones are ZeroConfig, SSDP and uPNP, but some devices might have their own proprietary ones too.
  • multihomed services, because not all services are made to run in this setup and a broadcast with a wrong address in a discovery protocol can cause havoc quickly.

Are you saying MQTT is the way around these issues? It is installed and I have tried it. But may not have the required config or script.

Frigate is the HACS add on. Frigate ( Full Access )

What is the right way depends on your entire network setup.
HA is meant to run with a flat network topology, because many IoT devices are using non-routable protocols.

MQTT can be routed, but can all your devices in other networks use MQTT?
If they can then use your router to handle the routing and let HA go through the router to the devices.

The actual questions are similar to what Wally asked. Why are you trying to use HA (on a bare metal install) as a router with poe?

Why not simply connect the poe switch to your actual router and let it do its thing? Lots of people with a single ethernet port on their server have installed Frigate this way successfully.

Essentially, what are you trying to achieve with 2 ethernet ports when the rest of the world is managing just fine with 1?

Thank you folks.
I added the POE switch and camera addresses to the overall network and finally got them showing in Frigate. My network knowledge is quite shallow. But you folks clued me in that I was over my head trying to combine it all into the one machine. Now I get to try and hook MQTT to it and do notifications. Questions are sure to follow.
Also need to figure out firewall rules for OPNsense to make sure those cams are private.