Jump to content

Home Assistant VM in 2 VLANS with one NIC


Recommended Posts

Hi all,

 

I'm migrating my Home Assistant setup from a dedicated (but now dead) PC to a VM on Unraid.

 

My Unraid Server has only one physical NIC and runs several Dockers.

 

I have another stand alone server running OPNSense (where I manage "everything network").

 

My Home Assistant VM has to be on two VLANS:

 

  • The "General" one, that is not tagged and all devices use (including all dockers)
  • A "Untrusted" one (VLAN "20"), where I have some IOT devices in

 

On my standalone Home Assistant PC I had two physical NICs and my switch took over for tagging.

 

I guess, in my new setup I could create a virtual nic and tag that one?

 

I am really concernced to break things on my Unraid for all other dockers, etc.

So: Could someone please give an idiot-safe instruction what to do?

 

Thank you very much!

 

Edited by Slarti123
typos
Link to comment

Enable bridge for eth0 and add vlan20, then you will got br0 and br0.20

 

In HA VM, just add 2 virtual NIC br0 and br0.20 with random MAC address, tag vlan20 in Unraid eth0 port at switch side.

 

But you should setup HA VM and confirm it work 1st, then going vlan20 part. You may backup HA from old PC then restore in HA VM.

 

image.png.753685880ab7b9cbcababa7b949369fa.png

Edited by Vr2Io
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...