Automatische DSL-Wiedereinwahl
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hallo,
hat es jemand geschafft, ppp über DSL so zu konfigurieren, dass es länger als
24 Stunden im Netz bleibt?
Auch mit pppoe 3.3-1.2 bricht der pppd nach genau 24 Stunden mit folgender
Fehlermeldung ab:
Dec 12 19:03:32 katzenpost pppd[492]: LCP terminated by peer
Dec 12 19:03:33 katzenpost pppd[492]: ioctl(PPPIOCSASYNCMAP): Inappropriate
ioctl for device(25)
Dec 12 19:03:33 katzenpost pppd[492]: tcflush failed: Input/output error
Dec 12 19:03:33 katzenpost pppd[492]: Exit.
Die Telekom kappt hier die Verbindung. Laut Doku sollte aber eigentlich mit
persist
holdoff 60
in der /etc/ppp/peers/dsl-provider eine Wiederwahl nach 60 Sekunden erfolgen.
Auch schaffe ich es nicht, ppp automatisch wieder zu starten.
Ich habe ein Skript mit folgenem Eintrag in die cron-tab aufgenommen:
ps -ef | grep -v grep | grep -q ppp || /etc/init.d/ppp restart
Wenn ich den Befehl von Hand ausführe klappt er wunderbar und startet ppp,
wenn es nicht da ist. Von der cron-tab bringt er jedoch immer folgenden
Fehler:
Dec 12 21:04:14 katzenpost pppd[2734]: pppd 2.4.1 started by root, uid 0
Dec 12 21:04:14 katzenpost pppd[2734]: Serial connection established.
Dec 12 21:04:14 katzenpost pppd[2734]: Couldn't get channel number:
Input/output error
Dec 12 21:05:14 katzenpost pppd[2734]: Serial connection established.
Dec 12 21:05:14 katzenpost pppd[2734]: Couldn't get channel number:
Input/output error
Hat vielleicht jemand eine Idee, was dieser fehlende channel number ist, und
wie man im cron-Skript dafür sorgen kann, dass pppd ihn bekommt?
Tausend Dank,
Christian
PS:Hier noch meine komplette /etc/ppp/peers/dsl-provider:
# Configuration file for PPP, using PPP over Ethernet
# to connect to a DSL provider.
#
# See the manual page pppd(8) for information on all the options.
##
# Section 1
#
# Stuff to configure...
# MUST CHANGE: Uncomment the following line, replacing the user@provider.net
# by the DSL user name given to your by your DSL provider.
# (There should be a matching entry in /etc/ppp/pap-secrets with the
password.)
user XXXXXXXXXXXXXXXXXXXX0001@t-online.de
#user myusername@myprovider.net
# Use the pppoe program to send the ppp packets over the Ethernet link
# This line should work fine if this computer is the only one accessing
# the Internet through this DSL connection. This is the right line to use
# for most people.
#pty "pppoe -I eth0 -T 80"
# If the computer connected to the Internet using pppoe is also being used
# by other computers as a gateway to the Internet, use the following
# line instead:
pty "pppoe -I eth0 -T 80 -m 1452"
# An even more conservative version of the previous line, if things still
# don't work using -m 1452...
#pty "pppoe -I eth0 -T 80 -m 1412"
# The following two options should work fine for most DSL users.
# Assumes that your IP address is allocated dynamically
# by your DSL provider...
noipdefault
# Comment out if you already have the correct default route installed
defaultroute
##
# Section 2
#
# Uncomment if your DSL provider charges by minute connected
# and you want to use demand-dialing.
#
# Disconnect after 300 seconds (5 minutes) of idle time.
#demand
#idle 3600
##
# Section 3
#
# You shouldn't need to change these options...
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true
noauth
persist
mtu 1452
#eigene Einstellungen
usepeerdns
noaccomp
nopcomp
novj
novjccomp
nobsdcomp
nodeflate
noccp
nocrtscts
local
lock
holdoff 60
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9+RFXIyCLmEm4g9ERAgUbAJ0XIni7YUI9bVW/RJ976BiT7vTYFACgh0Jy
XTBE2M3j7LKCf0HTFsYjjPE=
=wnDN
-----END PGP SIGNATURE-----
Reply to: