🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.linux.isp
Article #48

Re: ppp problem

#48
From: David Kirkpatrick
Date: Wed, 10 Mar 1999 00:00
197 lines
10048 bytes
Some info below.  Some logs would be helpfull with debug 7.

Generic info for RH 5.2.  Assumption: you installed PPP.
-------------------------------------------------------------------
RH puts ppp scripts in /usr/doc/ppp-2.3.5
Copy ppp-on, ppp-on-dialer, options to /etc/ppp.
BTW:I have copied /dev/null to options.
These need to be made execuitable.  Execute chmod 755 on ppp-on
and ppp-on-dialer
-------------------------------------------------------------------
Modify ppp-on by editing the following:
TELEPHONE, ACCOUNT, PASSWORD
------------------------------------------------------------------
For exec command. put in correct device probably
cua1 (for RH5.2) and modem speed
-------------------------------------------------------------------
Edit /etc/resolv.conf and put in ISP nameserver given you by your
ISP.
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
You usually get two from your isp.
--------------------------------------------------------------------
execute ppp-on & and monitor logs with
tail -f /var/log/messages.
+++++++++++++++++++++++++++++++++++++++
OR:
Control Pannel: Modem configuration.  Select 
correct device.  (used in ppp-on script)
-------------------------------------------------------------------
Control Pannel: Network Configurator: Routing: Defaults blank
PPP0 will use this so needs a blank here.
-------------------------------------------------------------------
Network Configurator: Names: insert ISP
nameserver addresses.
-------------------------------------------------------------------
System Configurator: PPP/SLIP/PLIP:  Configurations, Add
Fill in Hardware, Communication.  Assumes PAP not 
required - If things do not work check with ISP.
------------------------------------------------------------------
Save quit.  Verify /etc/resolv.conf has your ISP
addresses.
------------------------------------------------------------------
The linuxconf sets up most things but does not
setup the ppp-on script - that must be done by hand.
------------------------------------------------------------------
Testing:
cd /etc/ppp
execute ppp-on 
Ping locally between your network machines to insure your ok.  
Ping some net address by ip number like 10.220.10.120. Once ppp
is connected. 
Verify your name server working, ping boston.com or do an
nslookup microsoft.com
When not dialed in ping someother box locally by name
to insure yor local resolution is working say if
done by the /etc/hosts and /etc/lmhosts.
-------------------------------------------------------------
If things do not work turn on debugging or up the level of 
debugging.  Edit the scripts and put debug 7 in there.
For LCP errors two common causes are the ISP is not responding
to you - he's down or you and the ISP are out of sync on PAP.

Mette et Francois wrote:
> 
> Hello,
> 
> Here's my problem:
> Several months ago I set up a ppp connection to my ISP from my Linux Box, no
> problems. Suddenly, yesterday, it
> stopped to work. Every thing goes fine until the very end, and then, modem
> hangs up. Being quite a network-ppp
> illiterate, I have no clues of what happened. I made a major change last
> week as I upgraded to RedHat 5.2, but then,
> after a few chmods, it worked fine...until yesterday. And now I have to boot
> W98 and this is not fun...
> 
> Some infos: RedHat 5.2, kernel 2.0.35, modem: GVC 56K speaker phone, isp
> Get2Net - Denmark.
> 
> Could you also answer by mail?
> 
> Thanks,
> Francois.
> 
> ------------------------------------
> 
> Here's an extract of /var/log/messages
> 
> Mar 10 22:40:46 localhost kernel: Swansea University Computer Society
> NET3.035 for Linux 2.0
> Mar 10 22:40:46 localhost kernel: NET3: Unix domain sockets 0.13 for Linux
> NET3.035.
> Mar 10 22:40:46 localhost kernel: Swansea University Computer Society TCP/IP
> for NET3.034
> Mar 10 22:40:46 localhost kernel: IP Protocols: ICMP, UDP, TCP
> ............................
> Mar 10 22:40:46 localhost kernel: Starting kswapd v 1.4.2.2
> Mar 10 22:40:46 localhost kernel: Serial driver version 4.13 with no serial
> options enabled
> ............................
> Mar 10 22:40:46 localhost kernel: Detected scsi CD-ROM sr1 at scsi0, channel
> 0, id 1, lun 0
> Mar 10 22:40:46 localhost kernel: scsi : detected 2 SCSI cdroms total.
> Mar 10 22:40:46 localhost kernel: PPP: version 2.2.0 (dynamic channel
> allocation)
> Mar 10 22:40:46 localhost kernel: TCP compression code copyright 1989
> Regents of the University of California
> Mar 10 22:40:46 localhost kernel: PPP Dynamic channel allocation code
> copyright 1995 Caldera, Inc.
> Mar 10 22:40:46 localhost kernel: PPP line discipline registered.
> Mar 10 22:40:46 localhost kernel: SLIP: version 0.8.4-NET3.019-NEWTTY
> (dynamic channels, max=256).
> Mar 10 22:40:46 localhost kernel: CSLIP: code copyright 1989 Regents of the
> University of California.
> Mar 10 22:40:46 localhost kernel: SLIP linefill/keepalive option.
> Mar 10 22:40:46 localhost kernel: Partition check:
> Mar 10 22:40:46 localhost kernel:  hda: hda1
> Mar 10 22:40:46 localhost kernel:  hdd:hdd: set_multmode: status=0x51
>  DriveReady SeekComplete Error }
> Mar 10 22:40:46 localhost kernel: hdd: set_multmode: error=0x04
>  DriveStatusError }
> Mar 10 22:40:46 localhost kernel:  hdd1 hdd2 hdd3
> Mar 10 22:40:46 localhost kernel: VFS: Mounted root (ext2 filesystem)
> readonly.
> Mar 10 22:40:46 localhost kernel: Adding Swap: 79124k swap-space
> (priority -1)
> Mar 10 22:41:36 localhost kernel: registered device ppp0
> .............................
> Mar 10 22:50:57 localhost pppd[275]: pppd 2.3.5 started by root, uid 0
> Mar 10 22:50:58 localhost chat[276]: timeout set to 3 seconds
> Mar 10 22:50:58 localhost chat[276]: abort on (\nBUSY\r)
> Mar 10 22:50:58 localhost chat[276]: abort on (\nNO ANSWER\r)
> Mar 10 22:50:58 localhost chat[276]: abort on (\nRINGING\r\n\r\nRINGING\r)
> Mar 10 22:50:58 localhost chat[276]: send (rAT^M)
> Mar 10 22:50:58 localhost chat[276]: expect (OK)
> Mar 10 22:50:59 localhost chat[276]: rAT^M^M
> Mar 10 22:50:59 localhost chat[276]: OK
> Mar 10 22:50:59 localhost chat[276]:  -- got it
> Mar 10 22:50:59 localhost chat[276]: send (ATH0^M)
> Mar 10 22:50:59 localhost chat[276]: timeout set to 30 seconds
> Mar 10 22:50:59 localhost chat[276]: expect (OK)
> Mar 10 22:50:59 localhost chat[276]: ^M
> Mar 10 22:50:59 localhost chat[276]: ATH0^M^M
> Mar 10 22:50:59 localhost chat[276]: OK
> Mar 10 22:50:59 localhost chat[276]:  -- got it
> Mar 10 22:50:59 localhost chat[276]: send (ATDT77307732^M)
> Mar 10 22:50:59 localhost chat[276]: expect (CONNECT)
> Mar 10 22:50:59 localhost chat[276]: ^M
> Mar 10 22:51:24 localhost chat[276]: ATDT77307732^M^M
> Mar 10 22:51:24 localhost chat[276]: CONNECT
> Mar 10 22:51:24 localhost chat[276]:  -- got it
> Mar 10 22:51:24 localhost chat[276]: send (^M)
> Mar 10 22:51:24 localhost chat[276]: expect (name:)
> Mar 10 22:51:24 localhost chat[276]:  115200^M
> Mar 10 22:51:24 localhost chat[276]: ^M
> Mar 10 22:51:24 localhost chat[276]: ^M
> Mar 10 22:51:24 localhost chat[276]: User Access Verification^M
> Mar 10 22:51:24 localhost chat[276]: ^M
> Mar 10 22:51:24 localhost chat[276]: Username:
> Mar 10 22:51:24 localhost chat[276]:  -- got it
> Mar 10 22:51:24 localhost chat[276]: send (s-874800^M)
> Mar 10 22:51:25 localhost chat[276]: expect (assword:)
> Mar 10 22:51:25 localhost chat[276]:  s-874800^M
> Mar 10 22:51:25 localhost chat[276]: Password:
> Mar 10 22:51:25 localhost chat[276]:  -- got it
> Mar 10 22:51:25 localhost chat[276]: send (........^M)
> Mar 10 22:51:25 localhost chat[276]: expect (2net)
> Mar 10 22:51:25 localhost chat[276]:  ^M
> Mar 10 22:51:25 localhost chat[276]: ^M
> Mar 10 22:51:25 localhost chat[276]: Get2net
> Mar 10 22:51:25 localhost chat[276]:  -- got it
> Mar 10 22:51:25 localhost chat[276]: send (ppp^M)
> Mar 10 22:51:25 localhost chat[276]: expect (~)
> Mar 10 22:51:26 localhost chat[276]: >ppp^M
> Mar 10 22:51:26 localhost chat[276]: Entering PPP mode.^M
> Mar 10 22:51:26 localhost chat[276]: Async interface address is unnumbered
> (Loopback0)^M
> Mar 10 22:51:26 localhost chat[276]: Your IP address is 129.142.202.187. MTU
> is 1500 bytes^M
> Mar 10 22:51:26 localhost chat[276]: Header compression will match your
> system.^M
> Mar 10 22:51:26 localhost chat[276]: ^M
> Mar 10 22:51:28 localhost chat[276]: ~
> Mar 10 22:51:28 localhost chat[276]:  -- got it
> Mar 10 22:51:28 localhost chat[276]: send (^M)
> Mar 10 22:51:28 localhost pppd[275]: Serial connection established.
> Mar 10 22:51:29 localhost pppd[275]: Using interface ppp0
> Mar 10 22:51:29 localhost pppd[275]: Connect: ppp0 <--> /dev/ttyS0
> Mar 10 22:51:31 localhost pppd[275]: Hangup (SIGHUP)
> Mar 10 22:51:31 localhost pppd[275]: Modem hangup
> Mar 10 22:51:31 localhost pppd[275]: Connection terminated.
> Mar 10 22:51:32 localhost pppd[275]: Exit.

-- 
trouts1@ultranet.com
trouts1@aol.com
trouts1@netscape.net
Technical Details
Message-ID: <36E6BC69.D9B0D7C2@ma.ultranet.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <j4DF2.580$Ds2.1481@news.get2net.dk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fa777,47570980e55dc785
X-Google-Attributes: gidfa777,public
X-Google-Thread: 10669a,47570980e55dc785
X-Google-Attributes: gid10669a,public
X-Google-Thread: 10e23a,47570980e55dc785
X-Google-Attributes: gid10e23a,public
X-Google-Thread: fe70d,47570980e55dc785
X-Google-Attributes: gidfe70d,public
From: David Kirkpatrick <trouts1@ma.ultranet.com>
Subject: Re: ppp problem
Date: 1999/03/10
Message-ID: <36E6BC69.D9B0D7C2@ma.ultranet.com>
X-Deja-AN: 453585882
Content-Transfer-Encoding: 7bit
References: <j4DF2.580$Ds2.1481@news.get2net.dk>
To: Mette et Francois <metfran@get2net.dk>
X-Accept-Language: en
X-Ultra-Time: 10 Mar 1999 23:38:26 GMT
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@ultra.net
Organization: Violin Shop
Mime-Version: 1.0
Newsgroups: alt.comp.linux.isp,comp.os.linux.networking,dk.edb.unix,redhat.networking.general