Hi all.
I connected to internet using adsl modem with pppoe.
The problem is that i get disconnected every 5 minutes (approximately)
of idle time.
Connection details:
---------------------------------------
root:/etc/ppp# cat options | grep ^[^#]
asyncmap 0
auth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
persist
----------------------------------------------
root:/etc/ppp# cat peers/dsp-provider | grep ^[^#]
noipdefault
usepeerdns
defaultroute
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
connect /bin/true
noauth
persist
mtu 1492
noaccomp
default-asyncmap
plugin rp-pppoe.so eth0
noproxyarp
user "xxx"
Bookmark/Search this post with:
Re: ADSL modem disconnecting every 5 minutes
Switch to 'root' in a shell and look at the PPP messages in /var/log/messages; the cause of the disconnect should be logged.
Re: ADSL modem disconnecting every 5 minutes
This is the the /var/log/messages "before" and "after":
/******************************************************/
/* BEFORE - has interner */
root:/var/log# grep 'ppp' messages
Jul 23 21:43:15 boxx pppd[2269]: Terminating on signal 15
Jul 23 21:43:15 boxx pppd[2269]: Connect time 0.8 minutes.
Jul 23 21:43:15 boxx pppd[2269]: Sent 142 bytes, received 1207 bytes.
Jul 23 21:43:15 boxx pppd[2269]: Connection terminated.
Jul 23 21:43:15 boxx pppd[2269]: Exit.
Jul 23 21:43:20 boxx pppd[3247]: Plugin rp-pppoe.so loaded.
Jul 23 21:43:20 boxx pppd[3248]: pppd 2.4.4 started by root, uid 0
Jul 23 21:43:20 boxx pppd[3248]: PPP session is 2375
Jul 23 21:43:20 boxx pppd[3248]: Using interface ppp0
Jul 23 21:43:20 boxx pppd[3248]: Connect: ppp0 <--> eth0
Jul 23 21:43:22 boxx pppd[3248]: PAP authentication succeeded
Jul 23 21:43:22 boxx pppd[3248]: peer from calling number 00:02:3B:02:2F:32 authorized
Jul 23 21:43:22 boxx pppd[3248]: local IP address 77.125.93.48
Jul 23 21:43:22 boxx pppd[3248]: remote IP address 77.125.88.254
Jul 23 21:43:22 boxx pppd[3248]: primary DNS address 80.179.52.100
Jul 23 21:43:22 boxx pppd[3248]: secondary DNS address 80.179.55.100
/************************************************************************/
/* AFTER - no internet ... */
root:/var/log# grep 'ppp' messages
Jul 23 21:43:15 boxx pppd[2269]: Terminating on signal 15
Jul 23 21:43:15 boxx pppd[2269]: Connect time 0.8 minutes.
Jul 23 21:43:15 boxx pppd[2269]: Sent 142 bytes, received 1207 bytes.
Jul 23 21:43:15 boxx pppd[2269]: Connection terminated.
Jul 23 21:43:15 boxx pppd[2269]: Exit.
Jul 23 21:43:20 boxx pppd[3247]: Plugin rp-pppoe.so loaded.
Jul 23 21:43:20 boxx pppd[3248]: pppd 2.4.4 started by root, uid 0
Jul 23 21:43:20 boxx pppd[3248]: PPP session is 2375
Jul 23 21:43:20 boxx pppd[3248]: Using interface ppp0
Jul 23 21:43:20 boxx pppd[3248]: Connect: ppp0 <--> eth0
Jul 23 21:43:22 boxx pppd[3248]: PAP authentication succeeded
Jul 23 21:43:22 boxx pppd[3248]: peer from calling number 00:02:3B:02:2F:32 authorized
Jul 23 21:43:22 boxx pppd[3248]: local IP address 77.125.93.48
Jul 23 21:43:22 boxx pppd[3248]: remote IP address 77.125.88.254
Jul 23 21:43:22 boxx pppd[3248]: primary DNS address 80.179.52.100
Jul 23 21:43:22 boxx pppd[3248]: secondary DNS address 80.179.55.100
root:/var/log#
/******************************************************/
Re: ADSL modem disconnecting every 5 minutes
Is "Terminating on signal 15" really the first pppd message after "secondary DNS address ..."?
I would have expected some other message indicating why a 'signal 15' was sent.
Re: ADSL modem disconnecting every 5 minutes
I executed "poff -a" before. It sends this signal to pppd.
After this i executed "pon dsl-provider".
Re: ADSL modem disconnecting every 5 minutes
We need the log of ppp disconnecting without 'poff' - if you run 'poff' that's absolutely useless because you're interfering with ppp and not demonstrating the problem.
Re: ADSL modem disconnecting every 5 minutes
After this (poff -a) i did 'pon dsl-provider'. This brings connection up, so i can use internet. I saved
output of 'grep ppp /var/log/messages > /tmp/ppp.before'. After couple of minutes i lost connection.
I did 'grep ppp /var/log/messages > /tmp/ppp.after' and 'diff /tmp/ppp.before /tmp/ppp.after' - it's the same...
But i found something in the log:
Any ideas ?
Re: ADSL modem disconnecting every 5 minutes
Is there something before the 'LCP terminated by peer'? The reason for dropping the connection is usually given.
Re: ADSL modem disconnecting every 5 minutes
Nothing suspisious ...
Re: ADSL modem disconnecting every 5 minutes
That's a very rude peer, disconnecting you without a message giving the reason. It is probably a timeout; you will have to ensure that a packet which counts as 'data' is sent before the timeout period; obviously those LCP packets aren't counted. Maybe a simple 'ping' to another machine might do, but ICMP packets are also often ignored.