Reply To: Static Route dont come UP after fault

Home Page Forums Network Management Signal a BUG Static Route dont come UP after fault Reply To: Static Route dont come UP after fault

#53684

redfive
Participant

What Zs version are you using ? As far as I remember, I’ve seen this ‘incorrect’ behavior with static routes ‘lost’ some releases ago, I had done a little script, in cron-job, which was executed every 2 min or so, my remote network was 192.168.196.0/24, while the inner remote vpn’s ip address was 10.10.10.2

# Bash script: add_route_vpn-Cron
if route -n | grep '^192.168.196.0' ; then
exit ;
else
if ping -q -c 1 10.10.10.2; then
route add -net 192.168.196.0 netmask 255.255.255.0 gw 10.10.10.2 metric 1 ;
fi
fi

Regards