I have 20 or so unattended units. I use cross bridge AT&T . I have some locations where the network stays up and recovers from outages perfectly for weeks at a time. I have other locations/units that the ppp session is marked as up while I have no internet connectivity.
I have resorted to pinging my internet server periodically but even that is not reliable as the network stays up sometime for only a few minutes. Short of changing my application to an on demand solution. Are there any other options ? I would rather have the pppd manage itself.
# cat /etc/ppp/peers/cross-bridge
linkname ppp0
230400
defaultroute
replacedefaultroute
usepeerdns
ipcp-max-failure 4
ipcp-restart 10
lcp-echo-interval 30
lcp-echo-failure 8
lcp-max-terminate 10
noauth
novj
crtscts
persist
holdoff 10
maxfail 0
user cross-bridge
connect ‘/usr/sbin/chat -v -t 10 -f /etc/ppp/peers/cross-bridge_chat’
# cat /etc/ppp/peers/cross-bridge_chat
SAY “Cross Bridge chatn”
ECHO OFF
ABORT ‘NO DIAL TONE’
ABORT ‘NO DIALTONE’
ABORT ‘NO ANSWER’
ABORT ‘NO CARRIER’
ABORT ‘DELAYED’
ABORT ‘VOICE’
ABORT ‘BUSY’
” ‘AT’
OK ‘ATZ’
K ‘AT+CSQ’
OK ‘AT&D2*C1E-V1S0=0’
OK ‘AT&C1’
OK ‘AT+CGMI’
OK ‘AT+CGDCONT=1,”IP”,”a105.2way.net”‘
SAY “Dialing…n”
OK ‘ATD*99***1#’
SAY “Waiting for CONNECT…n”
TIMEOUT 60
CONNECT ”
SAY “Connectedn”