Article View: comp.os.linux.networking
Article #648linux ppp problems
From: R. Van Eeckhout
Date: Sun, 15 Jun 1997 00:00
Date: Sun, 15 Jun 1997 00:00
171 lines
8268 bytes
8268 bytes
Hi ,
I do have severe problem in connecting to my internet provider when i use
linux . These problems do not show up when i use Win95 .
In the rare occasions that i can connect the connection is stable for
the rest of the time .
But the connections (almost) always breaks when the ppp protocols start .
I always recieve the next message lines .
Jun 15 16:37:30 home pppd[367]: LCP terminated at peer's request
Jun 15 16:37:30 home pppd[367]: Modem hangup
Jun 15 16:37:30 home pppd[361]: Serial connection established.
Jun 15 16:37:30 home pppd[367]: Connection terminated.
Jun 15 16:37:30 home pppd[367]: Exit.
I believe that the message "LCP terminated at peer's request" means
that the modem at the other side does close the connection . Is
this correct ?
Is there any body who has gad and solved these problems ?
I do include my ppp-script , chat script and the relevant lines
out of /var/log/messages . If there is some clever person who
can see what is wrong . I would not be angry if he would let me know
wat is wrong .
######################################################################
## First commes the ppp script .
######################################################################
#!/bin/sh
cp /etc/resolv.conf.ping /etc/resolv.conf
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
MODEM=/dev/ttyS1 # The modem device
TELEPHONE=402182 # The telephone number for the connection
ACCOUNT=NoWay # The account name for logon
PASSWORD=Hidden # The password for this account
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.0.0.0 # The proper netmask if needed
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD MODEM
#
# This is the location of the script which dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer.ping.33
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
/usr/sbin/pppd $MODEM 38400 crtscts \
modem \
noipdefault \
debug \
asyncmap 0 \
defaultroute \
$LOCAL_IP:$REMOTE_IP \
bsdcomp 14 \
domain ping.be \
domain eunet.be \
connect $DIALER_SCRIPT
#################################################################
## Nex File /etc/ppp/ppp-on-dialer.ping.33
#################################################################
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
chat -v \
TIMEOUT 300 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
'' \rAT \
OK ATDT$TELEPHONE \
CONNECT '\n\n\n' \
'' '\d\d\d' \
'' '' \
'' '' \
'' '' \
ogin: $ACCOUNT \
assword: $PASSWORD
####################################################
## The relevant line out of /var/log/messages .
####################################################
Jun 15 15:43:56 home syslogd 1.3-0: restart.
Jun 15 15:43:56 home kernel: klogd 1.3-0, log source = /proc/kmsg started.
Jun 15 15:43:57 home kernel: Loaded 5197 symbols from /boot/System.map.
Jun 15 15:43:57 home kernel: Symbols match kernel version.
Jun 15 15:43:57 home kernel: Swansea University Computer Society NET3.035 for Linux 2.0
Jun 15 15:43:57 home kernel: NET3: Unix domain sockets 0.12 for Linux NET3.035.
Jun 15 15:43:57 home kernel: VFS: Diskquotas version dquot_5.6.0 initialized
Jun 15 15:43:57 home kernel:
Jun 15 15:43:57 home kernel: Serial driver version 4.13 with no serial options enabled
Jun 15 15:43:57 home kernel: tty00 at 0x03f8 (irq = 4) is a 16550A
Jun 15 15:43:57 home kernel: tty01 at 0x02f8 (irq = 3) is a 16550A
Jun 15 15:43:57 home kernel: Floppy drive(s): fd0 is 1.44M, fd1 is 360K PC
Jun 15 15:43:57 home kernel: FDC 0 is an 8272A
Jun 15 15:43:57 home kernel: JAVA Binary support v1.01 for Linux 1.3.98 (C)1996 Brian A. Lantz
Jun 15 15:43:57 home kernel: lp2 at 0x0278, (polling)
Jun 15 15:43:57 home kernel: CSLIP: code copyright 1989 Regents of the University of California
Jun 15 15:43:57 home kernel: SLIP: version 0.8.4-NET3.019-NEWTTY-MODULAR (dynamic channels, max=256).
Jun 15 15:43:57 home kernel: SLIP linefill/keepalive option.
Jun 15 15:43:57 home kernel: PPP: version 2.2.0 (dynamic channel allocation)
Jun 15 15:43:57 home kernel: PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
Jun 15 15:43:57 home kernel: PPP line discipline registered.
Jun 15 15:43:57 home kernel: Linux PCMCIA Card Services 2.8.17
Jun 15 15:43:57 home kernel: Intel PCIC probe: not found.
Jun 15 15:44:03 home sendmail[83]: starting daemon (8.7.5): SMTP+queueing@00:15:00
Jun 15 15:44:03 home kernel: iBCS: socksys registered on character major 30
Jun 15 15:44:41 home kernel: registered device ppp0
Jun 15 16:18:19 home login: 2 LOGIN FAILURES ON tty1, rudy
Jun 15 16:20:00 home su: rudy on /dev/ttyp0
Jun 15 16:21:34 home pppd[243]: pppd 2.2.0 started by rudy, uid 407
Jun 15 16:21:35 home chat[245]: timeout set to 300 seconds
Jun 15 16:21:35 home chat[245]: abort on (\nBUSY\r)
Jun 15 16:21:35 home chat[245]: abort on (\nNO ANSWER\r)
Jun 15 16:21:35 home chat[245]: send (rAT^M)
Jun 15 16:21:35 home chat[245]: expect (OK)
Jun 15 16:21:35 home chat[245]: rAT^M^M
Jun 15 16:21:35 home chat[245]: OK -- got it
Jun 15 16:21:35 home chat[245]: send (ATDT402182^M)
Jun 15 16:21:35 home chat[245]: expect (CONNECT)
Jun 15 16:21:35 home chat[245]: ^M
Jun 15 16:21:55 home chat[245]: ATDT402182^M^M
Jun 15 16:21:55 home chat[245]: CONNECT -- got it
Jun 15 16:21:55 home chat[245]: send (^J^J^J^M)
Jun 15 16:21:55 home chat[245]: send (\d\d\d^M)
Jun 15 16:21:58 home chat[245]: send (^M)
Jun 15 16:21:58 home last message repeated 2 times
Jun 15 16:21:58 home chat[245]: expect (ogin:)
Jun 15 16:21:58 home chat[245]: 38400^M
Jun 15 16:21:58 home chat[245]: Dial4.leuven.eunet.be Port S23^M
Jun 15 16:21:58 home chat[245]: ^M
Jun 15 16:21:58 home chat[245]: ^M
Jun 15 16:21:58 home chat[245]: Eunet belgium login: -- got it
Jun 15 16:21:58 home chat[245]: send (NoWay^M)
Jun 15 16:21:58 home chat[245]: expect (assword:)
Jun 15 16:21:58 home chat[245]: ^M
Jun 15 16:21:58 home chat[245]: Eunet belgium login:^M
Jun 15 16:21:58 home chat[245]: Eunet belgium login:Way^M
Jun 15 16:21:58 home chat[245]: PasswoHidden: -- got it
Jun 15 16:21:58 home chat[245]: send (Hidden^M)
Jun 15 16:22:01 home pppd[243]: Serial connection established.
Jun 15 16:22:02 home pppd[243]: Using interface ppp0
Jun 15 16:22:02 home pppd[243]: Connect: ppp0 <--> /dev/ttyS1
Jun 15 16:22:06 home pppd[243]: LCP terminated at peer's request
Jun 15 16:22:06 home pppd[243]: Modem hangup
Jun 15 16:22:06 home pppd[243]: Connection terminated.
Jun 15 16:22:06 home pppd[243]: Exit.
Technical Details
Message-ID:
<33A40E43.89B@ping.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10669a,2cd0a13ab71a79f9,start X-Google-Attributes: gid10669a,public X-Google-Thread: 10c329,2cd0a13ab71a79f9,start X-Google-Attributes: gid10c329,public From: "R. Van Eeckhout" <Rudy.VanEeckhout@ping.be> Subject: linux ppp problems Date: 1997/06/15 Message-ID: <33A40E43.89B@ping.be> X-Deja-AN: 248618753 Organization: Privat Newsgroups: comp.os.linux.networking,,fido.belg.linux Content-Disposition: inline; filename="Internet.txt"