Hello,

yesterday night my DSL line was disconnecet and it doesn't reconnect
automatically.
Here's some information:

The /var/log/messages:
...

Jun 23 21:16:41 server kernel: ATM dev 0: DSL line goes down
Jun 23 21:16:41 server kernel: ATM dev 0: ADSL line is down
Jun 23 21:17:39 server pppd[3314]: No response to 3 echo-requests
Jun 23 21:17:39 server pppd[3314]: Serial link appears to be disconnected.
Jun 23 21:17:39 server pppd[3314]: Connect time 4125.2 minutes.
Jun 23 21:17:39 server pppd[3314]: Sent 2362462509 bytes, received
3611343304 bytes.
Jun 23 21:17:45 server pppd[3314]: Connection terminated.

...

Jun 23 21:17:45 server pppd[3314]: Modem hangup
Jun 23 21:17:49 server pppd[3314]: Using interface ppp0
Jun 23 21:17:49 server pppd[3314]: Connect: ppp0 <--> 8.35
Jun 23 21:18:19 server pppd[3314]: LCP: timeout sending Config-Requests
Jun 23 21:18:19 server pppd[3314]: Connection terminated.
Jun 23 21:18:20 server pppd[3314]: Modem hangup
Jun 23 21:18:24 server pppd[3314]: Using interface ppp0
Jun 23 21:18:24 server pppd[3314]: Connect: ppp0 <--> 8.35
Jun 23 21:18:54 server pppd[3314]: LCP: timeout sending Config-Requests
Jun 23 21:18:54 server pppd[3314]: Connection terminated.
Jun 23 21:18:54 server pppd[3314]: Modem hangup

(latest messages repeated till 22:22:31)

Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6d40 failed (-84)!
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6cc0 failed (-84)!
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6c40 failed (-84)!
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6dc0 failed (-84)!
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6d40 failed (-84)!
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6cc0 failed (-84)!
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6c40 failed (-84)!
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6dc0 failed (-84)!
Jun 23 22:23:01 server pppd[3314]: LCP: timeout sending Config-Requests
Jun 23 22:23:01 server pppd[3314]: Connection terminated.
Jun 23 22:23:01 server pppd[3314]: Modem hangup
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6d40 failed (-84)!
Jun 23 22:23:01 server kernel: ATM dev 0: usbatm_complete: urb
0xf7fd6cc0 failed (-84)!
Jun 23 22:23:01 server kernel: usb 4-1: USB disconnect, address 2
Jun 23 22:23:02 server kernel: usb 4-1: new full speed USB device
using uhci_hcd and address 4
Jun 23 22:23:03 server kernel: usb 4-1: Product: Speed Touch 330
Jun 23 22:23:03 server kernel: usb 4-1: Manufacturer: ALCATEL
Jun 23 22:23:03 server kernel: usb 4-1: SerialNumber: 0090D086BB0E
Jun 23 22:23:03 server kernel: usb 4-1: configuration #1 chosen from 1 choice
Jun 23 22:23:03 server kernel: usb 4-1: reset full speed USB device
using uhci_hcd and address 4
Jun 23 22:23:03 server kernel: speedtch 4-1:1.0: found stage 1
firmware speedtch-1.bin
Jun 23 22:23:04 server kernel: speedtch 4-1:1.0: found stage 2
firmware speedtch-2.bin
Jun 23 22:23:05 server pppd[3314]: Exit.


After this message, pppd stops to retry to reconnect...

The situation in /proc/net/atm was:

server:# cat vc
Address Itf VPI VCI   Fam Flags Reply Send buffer     Recv buffer      [refcnt]
server:# cat svc
Itf VPI VCI           State      Remote
server:# cat speedtch\:0
Speed Touch 330  (usb-0000:00:1d.2-1)
MAC: 00:90:d0:86:bb:0e
AAL5: tx 1086640 ( 0 err ), rx 851365 ( 653 err, 0 drop )
Line up
server:# cat pvc
Itf VPI VCI   AAL RX(PCR,Class) TX(PCR,Class)
server:# cat devices
Itf Type    ESI/"MAC"addr AAL(TX,err,RX,err,drop) ...               [refcnt]
  0 speedtch0090d086bb0e  0 ( 0 0 0 0 0 )  5 ( 1086640 0 851365 653 0 ) [1]
server:# cat arp
IPitf TypeEncp Idle IP address      ATM address

But this time i tried to reconnect it manually (without reboot the
server) and it works.

I simply do:

server:# ifdown ppp0
/usr/bin/poff: No pppd is running.  None stopped.

and after

server:# ifup ppp0
Plugin /usr/lib/pppd/2.4.4/pppoatm.so loaded.
using channel 4
Using interface ppp0
Connect: ppp0 <--> 8.35
sent [LCP ConfReq id=0x1 <magic 0x46c080da>]
rcvd [LCP ConfReq id=0x1 <auth chap MD5> <magic 0x6f45f3a2>]
sent [LCP ConfAck id=0x1 <auth chap MD5> <magic 0x6f45f3a2>]
sent [LCP ConfReq id=0x1 <magic 0x46c080da>]
rcvd [LCP ConfAck id=0x1 <magic 0x46c080da>]
sent [LCP EchoReq id=0x0 magic=0x46c080da]
rcvd [CHAP Challenge id=0x1 <8492495b6332ee25f78462db5f4bb5d6>, name =
"bras10k-01-mi"]
sent [CHAP Response id=0x1 <74fc0ed0a0590e19a18df50b2395cc4c>, name =
"[EMAIL PROTECTED]"]
rcvd [LCP EchoRep id=0x0 magic=0x6f45f3a2]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 62.94.58.1>]
sent [IPCP ConfAck id=0x1 <addr 62.94.58.1>]
rcvd [IPCP ConfNak id=0x1 <addr 80.67.119.194>]
sent [IPCP ConfReq id=0x2 <addr 80.67.119.194>]
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfAck id=0x2 <addr 80.67.119.194>]
Cannot determine ethernet address for proxy ARP
local  IP address 80.67.119.194
remote IP address 62.94.58.1


Now I suspect the script doesn't works correctly (it's very strange
because in the past it's worked fine..)
Anyway here's my script using to reconnect pppd automatically:

#!/bin/bash
DATE=`date +"%d/%m/%Y %H:%M:%S"`
HOSTS=`/bin/cat /home/rizla/scripts/host_list`

contatore=0

for i in $HOSTS
do

        if [ "`/bin/ping -c1 $i |grep ttl`" ]
        then

        contatore=${contatore+1}
fi
done

if [ $contatore == 0 ]
then

        ifdown ppp0 > /dev/null 2>&1 ; ifup ppp0 > /dev/null 2>&1 ;
sleep 20 ;mail -s "restartato pppd e modem" [EMAIL PROTECTED]
else
        echo "Script eseguito correttamente alle ore $DATE" >>
/home/rizla/scripts/esecuzioni.txt
fi

exit
----------------

In /home/rizla/scripts/host_list there are some hosts:

62.94.58.1
137.204.72.1
213.155.192.5
217.29.77.55



---
And this is the speedtouch script called by pppd:

debug
kdebug 1
lcp-echo-interval 20
lcp-echo-failure 3
noipdefault
defaultroute
user '[EMAIL PROTECTED]'
noauth
noaccomp
nopcomp
novj
holdoff 4
persist
maxfail 0
updetach
plugin /usr/lib/pppd/2.4.4/pppoatm.so
8.35


Could someone please tell me how to solve this problem about automatic
reconnection ?

Many thanks.

Fabrizio

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]

        

Reply via email to