Home/Support/Support Forum/how make failover work
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

how make failover work

0 votes
i have the Digi Connect IT 4 and i would like to know if there is any way to make it work like this :

when it is connected to the lan it is not accessible from the LTE and only when the lan is down the LTE is accessible .
if it is possible please let me know how i can accomplish that ?
asked Jan 31, 2020 in Digi Connect Cellular by asherbersh New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
Hi and welcome to Digi Forums!

The functionality you request would need to implemented via a script. Do you mean Eth WAN and not LAN? If you did mean LAN then changes references from wan to lan where found.

System > Scheduled Tasks > Custom Scripts > add a new script.
Name = Disable_modem_if_Eth_WAN_UP
Run mode = Interval
Interval = 5m # This is 5 mins, reduce if needed
Run single = Enabled

Script to use
#!/bin/sh

# disable the cellular modem connection if WAN is up
# enable the cellular modem connection if WAN is down

wan_iface_name='wan'
modem_iface_name='modem'
wan_iface_state="$(runt get network.interface.$wan_iface_name.ipv4.up)"

case "$wan_iface_state" in
1) # up
config set network.interface.$modem_iface_name.enable false
;;
0) # down
config set network.interface.$modem_iface_name.enable true
;;
*) # unknown state
accns_log w config "custom test: unknown state for $wan_iface_name interface ($wan_iface_state)"
;;
esac
end of script

Log script output = Enabled
Log script errors = Enabled


Potentially you'll also need this script to monitor the Eth WAN interface, but that will depend on your network topology. http://ftp1.digi.com/support/documentation/accelerated/config_examples/WAN_Cont_Test_Failover.pdf

For any further help or investigation on that issue, please review our support options on our website: https://www.digi.com/support and mail our support team at tech.support@digi.com


Thank you

Ben
Digi Technical Support Engineer
answered Feb 3, 2020 by bengartland Seasoned Professional (169 points)
Hi,

how to base the failover on ICMP reply and not on interface status?

Thank you,
Tomer.
...