Article View: aus.computers.linux
Article #59135Need help with PPP Connect!
From: Sappy
Date: Mon, 18 Mar 1996 00:00
Date: Mon, 18 Mar 1996 00:00
356 lines
13158 bytes
13158 bytes
I Downloaded Instructions to setup a PPP connect from linux to my
internet provider, (compuserve). I Followed the instructions, but then
began having problems. So you can fully understand How Im setup,
first ill post the instruction file that i followed.
Note: Im running Linux 1.2.3
HOWTOPPP.TXT
* ----------------------[BEGIN HERE]------------------
HOWTO: Use Linux PPP with CIS (Version 1.5)
No warranties, guarantees, or promises are expressed or implied.
Use at your own risk (ie. don't sue me :) All this has been verified
to
work on a test system. WARNING! Connecting to the Internet opens your
system to the world, especially if you publish your IP address. Make
sure your system permissions and passwords are set securely!
An up-to-date version of this HOWTO is maintained at the following
URL:
http://www.magi.com/~dmtech/CIS/
I assume your Internet Service Provider (ISP) is CompuServe (CIS), and
you are
running a modem on /dev/modem and interface ppp0.
Below is a list of files; COPY THEM EXACTLY!. Set the owner, group,
and
permissions to those listed using chown, chgrp, and chmod
respectively.
You *MUST* make these changes:
/etc/rc.d/rc.inet2: edit to execute /sbin/named daemon
/etc/ppp/cis.chat: 999-9999 = your CIS network phone number
/etc/ppp/cis.chat: loginID = your login ID
/etc/ppp/cis.chat: password = your password
/sbin/ip-on: 38400 = your modem bit rate (see notes)
/dev/modem: must be a symbolic link to your modem serial
port
(example for COM2: ln -s /dev/modem /dev/cua1)
Your modem should be ready to go when reset with
ATZ.
If you use another network, you will have to write your own ???.chat
script!
Edit the files if you want to change the following:
somehost = your host name
somedomain = your domain name (or ISP domain like compuserve.com)
primary = primary name server
secondary = secondary name server (every domain has at least 2
servers)
mail = mail server
news = NNTP Usenet news server
A connection log is created by /etc/ppp/ip-up & /etc/ip-down. Make
sure it
doesn't grow out of control!
Make sure you are operating at 8N1 (8 data bits, no parity, 1 stop
bit)
and not the default 7E1 (7 data bits, even parity, 1 stop bit). You
can
change this permanently through GO PROFILE.
CLEVER IDEA! If you have a STATIC web page, list your dynamic IP
address there
so that people can reach your roving system :)
Feel free to contact me by E-Mail at dmtech@magi.com if you have any
questions.
-- Andrew E. Mileski --
Dark Matter Technologies Inc.
dmtech@magi.com
http://www.magi.com/~dmtech/
BEGIN --- CUT HERE --- CUT HERE --- CUT HERE ---
** /etc/resolv.conf **
** owner=root, group=root, permissions=644 **
domain somedomain
nameserver primary
nameserver secondary
** /etc/host.conf **
** owner=root, group=root, permissions=644 **
order hosts bind
** /etc/hosts **
** owner=root, group=root, permissions=644 **
#
# List addresses needed before a nameserver is available,
# and any "shortcuts" that will make life easier. Remember
# that your domain is automatically added if a domain is not
# specified.
#
# Host address
127.0.0.1 somehost.somedomain somehost
# Loopback address
127.0.0.1 localhost
# ISP addresses for nameservers (primary, secondary)
149.174.213.5 primary
149.174.211.5 secondary
# NNTP Usenet news server
149.174.213.20 news
# SMTP mail server
149.174.213.4 mail
# HTTP web server
149.174.213.11 www
** /etc/networks **
** owner=root, group=root, permissions=644 **
# Loopback networks
local 127.0.0.0
loopback 127.0.0.0
** /etc/named.boot **
** owner=root, group=root, permissions=644 **
directory /var/named
cache . db.
primary 0.0.127.in-addr.arpa db.0.0.127.in-addr.arpa
primary somedomain db.somedomain
** /var/named/db. **
** owner=root, group=root, permissions=644 **
99999999 IN NS ns.internic.net.
99999999 IN NS ns.nic.ddn.mil.
99999999 IN NS kava.nisc.ri.com.
99999999 IN NS aos.arl.army.mil
99999999 IN NS c.nyser.net.
99999999 IN NS terp.umd.edu.
99999999 IN NS ns.nasa.gov.
99999999 IN NS nic.nordu.net
ns.internic.net. 99999999 IN A 198.41.0.4
ns.nic.ddn.mil. 99999999 IN A 192.112.36.4
kava.nisc.sri.com. 99999999 IN A 192.33.33.24
aos.arl.army.mil. 99999999 IN A 128.63.4.82
AOS.ARL.ARMY.MIL. 99999999 IN A 192.5.25.82
c.nyser.net. 99999999 IN A 192.33.4.12
terp.umd.edu. 99999999 IN A 128.8.10.90
ns.nasa.gov. 99999999 IN A 192.52.195.10
ns.nasa.gov. 99999999 IN A 128.102.16.10
nic.nordu.net. 99999999 IN A 192.36.148.17
** /var/named/db.0.0.127.in-addr.arpa **
** owner=root, group=root, permissions=644 **
@ IN SOA somehost.somedomain. root.somehost.somedomain. (
1 ; Serial Number - change whenever zone is updated!
10800 ; Refresh = 3 hours
3600 ; Retry = 1 hour
432000 ; Expire = 5 days
86400 ; Minimum = 1 day
)
IN NS somehost.somedomain.
1 IN PTR localhost.
** /var/named/db.somedomain **
** owner=root, group=root, permissions=644 **
@ IN SOA somehost.somedomain. root.somehost.somedomain. (
1 ; Serial Number - change whenever zone is updated!
10800 ; Refresh = 3 hours
3600 ; Retry = 1 hour
432000 ; Expire = 5 days
86400 ; Minimum = 1 day
)
IN NS somehost.somedomain.
somehost IN A 127.0.0.1 ; This may cause trouble with 'talk'
localhost IN CNAME somehost.somedomain.
** /sbin/ip-on **
** owner=root, group=root, permissions=700 **
#!/bin/sh
#
# Use this script to connect your host to the Internet.
#
# Usage: ip-on cis
# where /etc/ppp/cis.chat is the chat script to use.
#
# Note: I use 115200bps mapped into 38400bps using 'setserial'
# (see man page with 'man setserial') from /etc/rc.d/rc.serial
# (which is run at boot from /etc/rc.d/rc.S). You may have to
adjust
# the bit rate for your modem.
#
if [ -r /etc/ppp/$1.chat ]
then
/usr/lib/ppp/pppd\
crtscts\
modem\
asyncmap 0\
mtu 296\
noipdefault\
defaultroute\
connect "/usr/lib/ppp/chat -f /etc/ppp/$1.chat"\
38400\
/dev/modem
else
echo 'Error: invalid chat script specified'
fi
** /sbin/ip-off **
** owner=root, group=root, permissions=700 **
#!/bin/sh
#
# Use this script to disconnect from the Internet.
#
if [ -r /var/run/ppp0.pid ]
then
kill `cat /var/run/ppp0.pid`
else
echo 'No PID found: pppd may not be running!'
fi
** /etc/ppp/ip-up **
** owner=root, group=root, permissions=700 **
#!/bin/sh
umask 133
echo $1 'UP:' `date` >> /etc/ppp/log
echo $* > /etc/ppp/$1.info
echo -e "\nLink $1 is established! Using IP address $4" > /dev/console
** /etc/ppp/ip-down **
** owner=root, group=root, permissions=700 **
#!/bin/sh
umask 133
echo $1 'DN:' `date` >> /etc/ppp/log
rm /etc/ppp/$1.info
echo -e "\nLink $1 is now down." > /dev/console
** /etc/ppp/cis.chat - For CompuServe Network Only, change for others
**
** DON'T FORGET to change loginID and password to your real settings
**
** owner=root, group=root, permissions=600
**
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'ERROR'
'' AT OK-AT-OK ATZ OK-AT-OK ATDT999-9999 CONNECT
'\r' : CIS : loginID/GO:PPPCONNECT : password PPP
** /etc/profile - add this line **
** owner=root, group=root, permissions=644 **
export NNTPSERVER=news
** /etc/NNTP_INEWS_DOMAIN **
** owner=root, group=root, permissions=644 **
somehost.somedomain.
** /etc/organization **
** owner=root, group=root, permissions=644 **
CompuServe Inc.
** /etc/HOSTNAME **
** owner=root, group=root, permissions=644 **
somehost.somedomain
END --- CUT HERE --- CUT HERE ---
* ------------------------[END HERE]-------------------------------
After I followed the instructions, everything seemed to be working
pretty much ok. Sometimes i had to type "ip-on" a couple times
before i got a connect, but other than that, everything was fine.
Now, I cant get a connect at all. ill type "ip-on" and sometimes it
will begin to dial, then all the sudden hangup. ..Or, sometimes it
will dial, connect with the remote modem, then sit there for a couple
of seconds .... and then hangup.
Wanting to know what was going on, i added the parameter "-v" (verbose
logging) to the chat commandline, so it would log what was happening.
heres the information i got as a result of that.
/var/adm/syslog
* --------------------------------[BEGIN HERE]------------------------
Mar 18 13:51:47 superfuzz pppd[90]: ioctl(PPPIOCGDEBUG): I/O error
Mar 18 13:51:47 superfuzz pppd[90]: ioctl(TIOCSETD): I/O error
Mar 18 13:51:47 superfuzz pppd[90]: ioctl(TIOCNXCL): I/O error
Mar 18 13:51:47 superfuzz pppd[90]: tcsetattr: I/O error
Mar 18 13:52:33 superfuzz pppd[98]: could not set up connection
* --------------------------------[END HERE]--------------------------
/var/adm/messages
(*note: i changed the phone number, login id and password for obvious
reasons :) )
* --------------------------------[BEGIN HERE]------------------------
Mar 18 13:40:17 superfuzz pppd[85]: pppd 2.1.2 started by root, uid 0
Mar 18 13:40:18 superfuzz chat[87]: abort on (NO CARRIER)
Mar 18 13:40:18 superfuzz chat[87]: abort on (NO DIALTONE)
Mar 18 13:40:18 superfuzz chat[87]: abort on (BUSY)
Mar 18 13:40:18 superfuzz chat[87]: abort on (ERROR)
Mar 18 13:40:18 superfuzz chat[87]: send (AT^M)
Mar 18 13:40:18 superfuzz chat[87]: expect (OK)
Mar 18 13:40:18 superfuzz chat[87]: ^M
Mar 18 13:40:18 superfuzz chat[87]: NO CARRIER -- failed
Mar 18 13:40:18 superfuzz chat[87]: send (AT^M)
Mar 18 13:40:18 superfuzz chat[87]: expect (OK)
Mar 18 13:40:18 superfuzz chat[87]: ^M
Mar 18 13:40:18 superfuzz chat[87]: AT^MA^M
Mar 18 13:40:18 superfuzz chat[87]: OK -- got it
Mar 18 13:40:18 superfuzz chat[87]: send (ATZ^M)
Mar 18 13:40:18 superfuzz chat[87]: expect (OK)
Mar 18 13:40:18 superfuzz chat[87]: ^M
Mar 18 13:40:18 superfuzz chat[87]: ATZ^M^M
Mar 18 13:40:18 superfuzz chat[87]: OK -- got it
Mar 18 13:40:18 superfuzz chat[87]: send (ATDT*99,999-9999^M)
Mar 18 13:40:19 superfuzz chat[87]: expect (CONNECT)
Mar 18 13:40:19 superfuzz chat[87]: ^M
Mar 18 13:41:02 superfuzz chat[87]: ATDT*99,999-9999^M^M
Mar 18 13:41:02 superfuzz chat[87]: CONNECT -- got it
Mar 18 13:41:02 superfuzz chat[87]: send (^M^M)
Mar 18 13:41:03 superfuzz chat[87]: expect (:)
Mar 18 13:41:03 superfuzz chat[87]: 26400/ARQ/V34/LAPM/V42BIS^M
Mar 18 13:41:03 superfuzz chat[87]: ^M
Mar 18 13:41:03 superfuzz chat[87]: ^M
Mar 18 13:41:03 superfuzz chat[87]: 0029WIH^M
Mar 18 13:41:03 superfuzz chat[87]: ^M
Mar 18 13:41:03 superfuzz chat[87]: Host Name: -- got it
Mar 18 13:41:03 superfuzz chat[87]: send (CIS^M)
Mar 18 13:41:03 superfuzz chat[87]: expect (:)
Mar 18 13:41:03 superfuzz chat[87]: CIS^M
Mar 18 13:41:03 superfuzz chat[87]: ^M
Mar 18 13:41:03 superfuzz chat[87]: User ID: -- got it
Mar 18 13:41:03 superfuzz chat[87]: send (MyUserId/GO:PPPCONNECT^M)
Mar 18 13:41:03 superfuzz chat[87]: expect (:)
Mar 18 13:41:03 superfuzz chat[87]: MyUserId/GO: -- got it
Mar 18 13:41:03 superfuzz chat[87]: send (MyPassword^M)
Mar 18 13:41:04 superfuzz chat[87]: expect (PPP)
Mar 18 13:41:04 superfuzz pppd[86]: Connected...
Mar 18 13:41:04 superfuzz chat[87]: PPP -- got it
Mar 18 13:41:05 superfuzz pppd[86]: Using interface ppp0
Mar 18 13:41:05 superfuzz pppd[86]: Connect: ppp0 <--> /dev/modem
Mar 18 13:41:17 superfuzz pppd[86]: Hangup (SIGHUP)
Mar 18 13:41:17 superfuzz pppd[86]: Exit.
* --------------------------------[END HERE]--------------------------
thats about it, and im stumped.
if you may know whats wrong, or have any suggestions, Please reply!
I would greatly appreciate any help at all! : ^ )
thanks!
John Roberts
76540.204@compuserve.com
(if you could post a reply here on usenet and mail the reply to me, i
would appreciate it.)
Technical Details
Message-ID:
<4ikfot$qrs@voyager.iii.org.tw>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,6e5ec319e4a527db,start X-Google-Attributes: gid102983,public From: Sappy@phish.nether.net (Sappy) Subject: Need help with PPP Connect! Date: 1996/03/18 Message-ID: <4ikfot$qrs@voyager.iii.org.tw> X-Deja-AN: 143296956 organization: SEEDNET InterNetNews News System newsgroups: aus.computers.linux