HA Intermittently Dropping Custom IP ROUTE

LATEST HA CORE!
I have a custom Shell_Command (Below) which executes via HA startup automation and sets a custom ROUTE to another VLAN. Everything works as expected until the unexpected :slight_smile: after a 4-5 days the custom route disappears. Nothing in the LOGS and nothing was restarted that I am aware of.
This happens on both my development and production servers, one on RPI-3b and another on RPI 5, both systems have the latest versions of CORE and up to date on all installed addons and intigrations.
My PING automation catches the issues, and I configured that automation to re-run the Shell Script for now as a work around.

I am sure not to many people use this for adding routes, but I would like to hear from you if your experiencing something similar, or have any thoughts why the Routes would be reset.

Regards,
Bill

shell_command:
condolan: ‘ip route add 192.168.1.0/24 via 192.168.0.203 metric 600’

Hello Bill,

How is this related to HA at all? Sounds like a firewall issue or router…

Also segmented networks are not officially supported within HA.

HA is designed and expects a flat subnet to work as intended.

This is because every segmented network is different for IP’s and number of segments and firewalls and sharing rules and about 650495849085 other things.
This does not mean you can’t use them or that they can’t be made to work, it means that to get them working you are the support structure on your own subnet(s). Consider it Advanced mode…

1 Like

Thanks for you reply.
It’s a HA problem because the IP Route is added in HAOS using shell command in configuration.yaml, works fine till it intermittently disappears for no reason. Very odd for linux to drop a route once its configured.