Network bridging

My HA is running on a 4 ports intel micro PC. I want to bridge all the ports to create a simple network switch (hub). Is the HA OS allow this operation? If yes, please direct me to the information.

What install method?

HAOS is based on Alpine Linux.

This should get you started: Bridge - Alpine Linux

Fair warning: I’ve not tried this – I use purpose-built switching and routing devices.

How do I get root access to the HA? Terminal?

There is a long thread around here with someone that had a similar idea wanting to use a 12-port NUC running HAOS as a switch. Conclusion: Don’t.

1 Like

Put HA on different hardware and install opnsense on the pc with 4 ports

Why do you want to bridge networks using HA?

No it is not.

1 Like

nickrout is correct. HA OS is built on buildroot, a Linux OS for embedded systems. Only the containers are built on Alpine Linux.

1 Like

Here is the long thread that odwide mentioned.

1 Like

Odd that you’d build the same OS on two bases and call it the same thing.
I was relying on this from my HAOS installation (which was an official deployed OVA):

[core-ssh ~]$ cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.19.1
PRETTY_NAME="Alpine Linux v3.19"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

So I guess I need to revise that statement and say that some HAOS platforms are built on Alpine Linux, @nickrout

You were probably in the HA container, and not in the OS itself. The SSH add-ons just give access to the HA container, for HA OS SSH access you need port 22222

1 Like

Thanks, that is almost certainly the case. And does explain the RFC1918 address (that is not on my network’s subnet) assigned on eth0. I figured there were some shenanigans, but didn’t think there’d be a container from a different OS running inside the VM that I deployed.

The OS is buildroot, the docker container for home assistant core is Alpine.

Other containers for add-ons are often built on Alpine, but others are on debian or other os bases. This is docker after all.

1 Like

Any way to find out the host running the docker for the HA?

Haos runs docker, in fact that’s it’s main purpose.

1 Like