Linux, PPP and PPP Connection

Linux, PPP and PPP Connection

Post by Keith R. McGinle » Tue, 04 Jun 1996 04:00:00



I have been working for days trying to connect to my ISP.  I have read
the NAG, PPP-HOWTO, various books and have done numerous searches using
DejaNews.  I have tried MANY configurations and none seem to work yet.
This is my current "/etc/ppp/options" file:

# /etc/ppp/options
#
connect /etc/ppp/connect.nlynx
/dev/cua1
38400
lock
kdebug 2
domain sisna.com
-chap
crtscts
defaultroute
noipdefault
name mcginley
debug
modem
+ua /etc/ppp/pap-secrets

****** this is my chat script  ********
#!/bin/sh
#
SPEED=38400

stty $SPEED -tostop
/usr/sbin/chat                  \
''      "ATDT6853050"         \
CONNECT ''

*********************************
my /etc/ppp/pap-secrets file currently looks like:

username * secret

but I have also tried :

username
secret

-----   and   ------

username "" secret

------  When I run the chat script (via exec pppd).  The Net Lynx local
ISP # is dialed and a connection is made.  But then in the
/var/adm/messages file I get:

Jun  3  18:....  realm pppd[519]: Connecting with </etc/ppp/.....
................................: Connected ...
..........................kernel: ppp: channel ppp0 mtu=1500, mru=1500
..........................kernel: ppp: channel ppp0 open
.......................pppd[519]: Using interface ppp0
        same                    : Connect: ppp0 <--> /dev/cua1
        same                    : fsm_sdata(LCP): Sent code 1, id 1.
        same                    : LCP: sending Configure-Request, id 1
        same                    : fsm_sdate(LCP): Sent code 1, id 1.
        same                    : LCP: sending Configure-Request, id 1.
        same                    : fsm_rconfreq(LCP): Rcvd id 0.
        same                    : lcp_reqci: rcvd ASYNCMAP
        same                    :     (REJ)
        same                    : lcp_reqci: rcvd AUTHTYPE
        same                    :   (c223)
        same            : lcp_reqci: rcvd AUTHTYPE CHAP, rejecting...
        same                    : (REJ)
        same                    : lcp_reqci: rcvd MAGICNUMBER
        same                    :  (1083)
        same                    : (ACK)
        same                    : lcp_reqci: rcvd PCOMPRESSION
        same                    :  (ACK)
        same                    : lcp_reqci: returning CONFREJ
        same                    : fsm_sdate(LCP): Sent code 4, id 0
        same                    : fsm_rconfack(LCP): Rcvd id 1.
        same                    : fsm_rtermreq(LCP: Rcvd id 1.
        same                    : fsm_sdate(LCP): Sent code 6, id 1.
        same                    : fsm_sdate(LCP): Sent code 1, id 255.
        same                    : LCP: sending Configure-Request, id 255
        same             kernel : ppp: channel ppp0 going down for ip
packets
        same             kernel : ppp: channel ppp0 closing
        same           pppd[519]: Hangup (SIGHUP)
        same           pppd[519]: Exit.

******************************************
******************************************

in the file /var/log/syslog the error messages are:

Jun 3 .....realm    pppd[519]: ioctl(PPPIOCGDEBUG): I/O error
same..............  pppd[519]: ioctl(TIOCSETD): I/O error
      same                   : ioctl(TIOCNXCL): I/O error
      same                   : tcsetattr: I/O error

   note: these messages show up when pppd hangs up so I do not know if
they are relevant or not.

My ISP says that they are using a Pentium Pro 200 running the window NT
operating system and that that are using PAP w/their PPP server.

I have tried other ISPs that are running PPP w/out PAP and (with some
modifications to my chat script, name:... ogin:...) I have gotten a good
connection.  Unfortunately, I am not paying for those connections and
hopefully someone can help because it appears that a lot of ISPs are
going to PAP or CHAP.

I would appreciate any help that I can get!!

Keith McGinley


 
 
 

Linux, PPP and PPP Connection

Post by Keith R. McGinle » Tue, 04 Jun 1996 04:00:00


I have been working for days trying to connect to my ISP.  I have read
the NAG, PPP-HOWTO, various books and have done numerous searches using
DejaNews.  I have tried MANY configurations and none seem to work yet.
This is my current "/etc/ppp/options" file:

# /etc/ppp/options
#
connect /etc/ppp/connect.nlynx
/dev/cua1
38400
lock
kdebug 2
domain sisna.com
-chap
crtscts
defaultroute
noipdefault
name mcginley
debug
modem
+ua /etc/ppp/pap-secrets

****** this is my chat script  ********
#!/bin/sh
#
SPEED=38400

stty $SPEED -tostop
/usr/sbin/chat                  \
''      "ATDT6853050"         \
CONNECT ''

*********************************
my /etc/ppp/pap-secrets file currently looks like:

username * secret

but I have also tried :

username
secret

-----   and   ------

username "" secret

------  When I run the chat script (via exec pppd).  The Net Lynx local
ISP # is dialed and a connection is made.  But then in the
/var/adm/messages file I get:

Jun  3  18:....  realm pppd[519]: Connecting with </etc/ppp/.....
................................: Connected ...
..........................kernel: ppp: channel ppp0 mtu=1500, mru=1500
..........................kernel: ppp: channel ppp0 open
.......................pppd[519]: Using interface ppp0
        same                    : Connect: ppp0 <--> /dev/cua1
        same                    : fsm_sdata(LCP): Sent code 1, id 1.
        same                    : LCP: sending Configure-Request, id 1
        same                    : fsm_sdate(LCP): Sent code 1, id 1.
        same                    : LCP: sending Configure-Request, id 1.
        same                    : fsm_rconfreq(LCP): Rcvd id 0.
        same                    : lcp_reqci: rcvd ASYNCMAP
        same                    :     (REJ)
        same                    : lcp_reqci: rcvd AUTHTYPE
        same                    :   (c223)
        same            : lcp_reqci: rcvd AUTHTYPE CHAP, rejecting...
        same                    : (REJ)
        same                    : lcp_reqci: rcvd MAGICNUMBER
        same                    :  (1083)
        same                    : (ACK)
        same                    : lcp_reqci: rcvd PCOMPRESSION
        same                    :  (ACK)
        same                    : lcp_reqci: returning CONFREJ
        same                    : fsm_sdate(LCP): Sent code 4, id 0
        same                    : fsm_rconfack(LCP): Rcvd id 1.
        same                    : fsm_rtermreq(LCP: Rcvd id 1.
        same                    : fsm_sdate(LCP): Sent code 6, id 1.
        same                    : fsm_sdate(LCP): Sent code 1, id 255.
        same                    : LCP: sending Configure-Request, id 255
        same             kernel : ppp: channel ppp0 going down for ip
packets
        same             kernel : ppp: channel ppp0 closing
        same           pppd[519]: Hangup (SIGHUP)
        same           pppd[519]: Exit.

******************************************
******************************************

in the file /var/log/syslog the error messages are:

Jun 3 .....realm    pppd[519]: ioctl(PPPIOCGDEBUG): I/O error
same..............  pppd[519]: ioctl(TIOCSETD): I/O error
      same                   : ioctl(TIOCNXCL): I/O error
      same                   : tcsetattr: I/O error

   note: these messages show up when pppd hangs up so I do not know if
they are relevant or not.

My ISP says that they are using a Pentium Pro 200 running the window NT
operating system and that that are using PAP w/their PPP server.

I have tried other ISPs that are running PPP w/out PAP and (with some
modifications to my chat script, name:... ogin:...) I have gotten a good
connection.  Unfortunately, I am not paying for those connections and
hopefully someone can help because it appears that a lot of ISPs are
going to PAP or CHAP.

I would appreciate any help that I can get!!

Keith McGinley



 
 
 

Linux, PPP and PPP Connection

Post by Theofilu Andre » Sun, 09 Jun 1996 04:00:00


-----BEGIN PGP SIGNED MESSAGE-----

Hi Keith,

Have you enabled PPP into your kernel? To verify whether it is
available or not type 'dmesg' on the command line. This lists all the
stuff appearing during boot. There should be some lines looking like the
following:

PPP: version 0.2.7 (4 channels) NEW_TTY_DRIVERS OPTIMIZE_FLAGS
TCP compression code copyright 1989 Regents of the University of
California
PPP line discipline registered

If this lines are not there, you have to recompile your kernel and
enable PPP.

Hope this helps.
- ---------------------------------------------------------------------


>I have been working for days trying to connect to my ISP.  I have read
>the NAG, PPP-HOWTO, various books and have done numerous searches using
>DejaNews.  I have tried MANY configurations and none seem to work yet.
>This is my current "/etc/ppp/options" file:

># /etc/ppp/options
>#
>connect /etc/ppp/connect.nlynx
>/dev/cua1
>38400
>lock
>kdebug 2
>domain sisna.com
>-chap
>crtscts
>defaultroute
>noipdefault
>name mcginley
>debug
>modem
>+ua /etc/ppp/pap-secrets

>****** this is my chat script  ********
>#!/bin/sh
>#
>SPEED=38400

>stty $SPEED -tostop
>/usr/sbin/chat                      \
>''  "ATDT6853050"         \
>CONNECT ''

>*********************************
>my /etc/ppp/pap-secrets file currently looks like:

>username * secret

>but I have also tried :

>username
>secret

>-----   and   ------

>username "" secret

>------  When I run the chat script (via exec pppd).  The Net Lynx local
>ISP # is dialed and a connection is made.  But then in the
>/var/adm/messages file I get:

>Jun  3  18:....  realm pppd[519]: Connecting with </etc/ppp/.....
>..................................: Connected ...
>............................kernel: ppp: channel ppp0 mtu=1500, mru=1500
>............................kernel: ppp: channel ppp0 open
>.........................pppd[519]: Using interface ppp0
>    same                    : Connect: ppp0 <--> /dev/cua1
>    same                    : fsm_sdata(LCP): Sent code 1, id 1.
>    same                    : LCP: sending Configure-Request, id 1
>    same                    : fsm_sdate(LCP): Sent code 1, id 1.
>    same                    : LCP: sending Configure-Request, id 1.
>    same                    : fsm_rconfreq(LCP): Rcvd id 0.
>    same                    : lcp_reqci: rcvd ASYNCMAP
>    same                    :     (REJ)
>    same                    : lcp_reqci: rcvd AUTHTYPE
>    same                    :   (c223)
>    same            : lcp_reqci: rcvd AUTHTYPE CHAP, rejecting...
>    same                    : (REJ)
>    same                    : lcp_reqci: rcvd MAGICNUMBER
>    same                    :  (1083)
>    same                    : (ACK)
>    same                    : lcp_reqci: rcvd PCOMPRESSION
>    same                    :  (ACK)
>    same                    : lcp_reqci: returning CONFREJ
>    same                    : fsm_sdate(LCP): Sent code 4, id 0
>    same                    : fsm_rconfack(LCP): Rcvd id 1.
>    same                    : fsm_rtermreq(LCP: Rcvd id 1.
>    same                    : fsm_sdate(LCP): Sent code 6, id 1.
>    same                    : fsm_sdate(LCP): Sent code 1, id 255.
>    same                    : LCP: sending Configure-Request, id 255
>    same             kernel : ppp: channel ppp0 going down for ip
>packets
>    same             kernel : ppp: channel ppp0 closing
>    same           pppd[519]: Hangup (SIGHUP)
>    same           pppd[519]: Exit.

>******************************************
>******************************************

>in the file /var/log/syslog the error messages are:

>Jun 3 .....realm    pppd[519]: ioctl(PPPIOCGDEBUG): I/O error
>same..............  pppd[519]: ioctl(TIOCSETD): I/O error
>      same                   : ioctl(TIOCNXCL): I/O error
>      same                   : tcsetattr: I/O error

>   note: these messages show up when pppd hangs up so I do not know if
>they are relevant or not.

>My ISP says that they are using a Pentium Pro 200 running the window NT
>operating system and that that are using PAP w/their PPP server.

>I have tried other ISPs that are running PPP w/out PAP and (with some
>modifications to my chat script, name:... ogin:...) I have gotten a good
>connection.  Unfortunately, I am not paying for those connections and
>hopefully someone can help because it appears that a lot of ISPs are
>going to PAP or CHAP.

>I would appreciate any help that I can get!!

>Keith McGinley



- --
Theofilu Andreas

               -------------------------------------------------
                           Enjoy the science of Linux!
                       Genie?e die Wissenschaft von Linux!
               -------------------------------------------------

-----BEGIN PGP SIGNATURE-----
Version: 2.6

iQCVAgUBMbkaSWj/BcrYxhjVAQG1tgP9Fa8CKrBqdu+I/5r8obEUm+4ymey6HFkC
UKYhbNDTA6O8uANym3yJZ1dWQ6j06EiuJFjGaVRZNo1j2SFQA0lnfzKxat8ECGGB
4hkk3NR+949VrZ3LPc50juk4XVHQG1lSvFOnU/zLRqoQhP9qdU/FgnF7vZWlTLXz
6PISTkMNBiI=
=xX7q
-----END PGP SIGNATURE-----

 
 
 

1. PPP and PPP and PPP and PPP and PPP and HEADACHE

I made a trick .. instead of using chat to connect PPP like was in the
books
(that for me doesn't work) I used dip (it's the one that is supposed to be
used with SLIP connections) .. I make a script for dip so it connects using
PPP, and everything goes fine till I connect... After I connect the host
where i'm connected is Okay and everything seems to be Okay. but when I do
I simple ping to my own IP (not localhost but my assigned fixed IP) it says
unable to reach host.. I think the hardest thing to setup in linux is PPP
:( .. geee...

I have the Slackware 3.0 stuff... and I feel like i'm a newbie.. :(

Is out there any better FAQs or How-TOs for the PPP connections ???

bye !

--
 _    ____ ____          _____________________________
| |  |    |  __|         Luis Aranguren Carvajal    
| |  | || | |            http://www.ven.net/~pizzaman




|____|_||_|____|         _____________________________    

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.7.1

mQBNAzHYS48AAAECAKI2RDdBeMWbSz0HNYp3IyOJMRJDmXFhQbeztv1XAwHt6Lyz
hz2yoYIX0kn0EoNwWm183hAJ7ag3hfPXnSANPgEABRG0JEx1aXMgQXJhbmd1cmVu
IEMuIDxwaXp6YW1hbkB2ZW4ubmV0Pg==
=IOzU
-----END PGP PUBLIC KEY BLOCK-----

2. BSD Printing system - header page

3. Ask ppp-on and ppp-on-dialer for ppp connection

4. vi editor FAQ (Frequently Asked Question List), Part 2/2

5. LINUX<(nullmodem)>Mac PPP connection; LINUX as PPP-server

6. Epson Colour Stylus 800 and gs

7. RH5.1 PPP connection: PPP connection persists, telnet session times out

8. Shell Scripts

9. Linux PPP connection with WinNT PPP server?

10. PPP connection via mac or win modem dialup to dedicated Linux ppp server

11. ML PPP, Bundled ISDN connection with PPP under Linux...

12. Automatic PPP connection (usermode PPP, 2.2)

13. ppp will not change to "PPP" after connection/authentication???