From c3e29c958737e39ba7073883557a20fe836bca26 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 15 Nov 2022 11:28:14 +0100 Subject: [PATCH] fix for WLHA softioc with 2 network interfaces --- startup.script_linux | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/startup.script_linux b/startup.script_linux index 1ce1a19..a0f3a03 100644 --- a/startup.script_linux +++ b/startup.script_linux @@ -20,8 +20,9 @@ system "ip a s `ip r|awk '/^default /{print $5;exit}'`|awk -F'[/ ]+' -vP='epicsE < /tmp/$(IOC).net system "rm /tmp/$(IOC).net" -# Default, we will switch it off when necessary +# Default: Automatic, we will switch it off when necessary epicsEnvSet EPICS_CA_AUTO_ADDR_LIST YES +epicsEnvUnset EPICS_CA_ADDR_LIST # Office (only officicial EPICS subnets, not SLS beamlines!) ifEnvSet $(IP_ADDR) ~129.129.130.* EPICS_CA_ADDR_LIST "129.129.131.255 129.129.137.255" @@ -73,6 +74,10 @@ ifEnvSet $(IP_ADDR) ~172.19.* EPICS_CA_AUTO_ADDR_LIST NO ifEnvSet $(IP_ADDR) ~172.25.* EPICS_CA_ADDR_LIST "172.25.60.255 172.25.11.255" ifEnvSet $(IP_ADDR) ~172.25.* EPICS_CA_AUTO_ADDR_LIST NO +# WLHA +ifEnvSet $(IP_ADDR) ~172.21.11.* EPICS_CA_ADDR_LIST 172.21.11.255 +ifEnvSet $(IP_ADDR) ~172.21.11.* EPICS_CA_AUTO_ADDR_LIST NO + # set some search paths epicsEnvSet EPICS_DRIVER_PATH "bin/R$(EPICS_RELEASE)_$(EPICS_HOST_ARCH):bin:snl:$(EPICS_MODULES=/ioc/modules)" epicsEnvSet CFG, $(PWD)/cfg