Help with PPP connection, 2nd try

Help with PPP connection, 2nd try

Post by Donald Y » Wed, 11 Dec 1996 04:00:00



I have problems connecting to my ISP through Linux. When connecting to my ISP
under DOS/WINDOWS3.1 and OS/2, I am successful, but this is not the case with
Linux. Included is a sample of my chat script and options file as well as
debugging information. The problem seems like the ISP end is not sending
back acknowledgement of my LCP's configure requests. If anyone knows what I am
doing wrong or what I am missing, please help.

Thank you, Don

Example of my chat script.

pppd connect 'chat -v "" ATZ OK ATDT1234567 CONNECT "" ogin: my-login-name
assword:
my-password' debug noipdefault /dev/cua2 19200

Example of my options file.

-detach
modem
lock
crtscts
defaultroute
asyncmap 0
mtu 552
mru 552

Example of my resolv.conf.

domain my.ISP.com
nameserver 1.2.3.4

Debugging information.

Dec  9 12:53:32 fsdy pppd[291]: pppd 2.1.2 started by root, uid 0
Dec  9 12:53:32 fsdy pppd[291]: Connecting with <chat -v "" ATZ OK ATDT7771313
CONNECT
"" ogin: my-login-name assword: my-password>
Dec  9 12:53:33 fsdy chat[292]: send (ATZ^M)
Dec  9 12:53:33 fsdy chat[292]: expect (OK)
Dec  9 12:53:52 fsdy chat[292]: ATZ^M^M
Dec  9 12:53:52 fsdy chat[292]: OK -- got it
Dec  9 12:53:52 fsdy chat[292]: send (ATDT1234567^M)
Dec  9 12:53:52 fsdy chat[292]: expect (CONNECT)
Dec  9 12:53:52 fsdy chat[292]: ^M
Dec  9 12:54:22 fsdy chat[292]: ATDT1234567^M
Dec  9 12:54:22 fsdy chat[292]: CONNECT -- got it
Dec  9 12:54:22 fsdy chat[292]: send (^M)
Dec  9 12:54:22 fsdy chat[292]: expect (ogin:)
Dec  9 12:54:42 fsdy chat[292]:  14400/^M
Dec  9 12:54:42 fsdy chat[292]: login: -- got it
Dec  9 12:54:42 fsdy chat[292]: send (????^M)
Dec  9 12:54:42 fsdy chat[292]: expect (assword:)
Dec  9 12:55:02 fsdy chat[292]:  ????^M
Dec  9 12:55:02 fsdy chat[292]: Password: -- got it
Dec  9 12:55:02 fsdy chat[292]: send (??????^M)
Dec  9 12:55:02 fsdy pppd[291]: Connected...
Dec  9 12:55:12 fsdy kernel: ppp: channel ppp0 mtu = 1500, mru = 1500
Dec  9 12:55:12 fsdy kernel: ppp: channel ppp0 open
Dec  9 12:55:12 fsdy pppd[291]: set kernel debugging level to 0
Dec  9 12:55:12 fsdy pppd[291]: Using interface ppp0
Dec  9 12:55:12 fsdy pppd[291]: Connect: ppp0 <--> /dev/cua2
Dec  9 12:55:12 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:12 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:15 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:15 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:18 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:18 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:21 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:21 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:24 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:24 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:27 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:27 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:30 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:30 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:33 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:33 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:36 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:36 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:39 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
Dec  9 12:55:39 fsdy pppd[291]: LCP: sending Configure-Request, id 1
Dec  9 12:55:42 fsdy pppd[291]: LCP: timeout sending Config-Requests
Dec  9 12:55:42 fsdy kernel: ppp_ioctl: set debug level 2, netpacket 0
Dec  9 12:55:42 fsdy pppd[291]: Connection terminated.
Dec  9 12:55:42 fsdy pppd[291]: set kernel debugging level to 2
Dec  9 12:55:52 fsdy kernel: ppp: channel ppp0 going down for IP packets!
Dec  9 12:55:52 fsdy kernel: ppp: channel ppp0 closing.
Dec  9 12:55:52 fsdy pppd[291]: Hangup (SIGHUP)
Dec  9 12:55:52 fsdy pppd[291]: ioctl(PPPIOCGDEBUG): I/O error
Dec  9 12:55:52 fsdy pppd[291]: ioctl(TIOCSETD): I/O error
Dec  9 12:55:52 fsdy pppd[291]: ioctl(TIOCNXCL): I/O error
Dec  9 12:55:52 fsdy pppd[291]: tcsetattr: I/O error
Dec  9 12:55:52 fsdy pppd[291]: Exit.

 
 
 

Help with PPP connection, 2nd try

Post by Donald Y » Thu, 12 Dec 1996 04:00:00



Quote:

>I have problems connecting to my ISP through Linux. When connecting to my ISP
>under DOS/WINDOWS3.1 and OS/2, I am successful, but this is not the case with
>Linux. Included is a sample of my chat script and options file as well as
>debugging information. The problem seems like the ISP end is not sending
>back acknowledgement of my LCP's configure requests. If anyone knows what I
am
>doing wrong or what I am missing, please help.

>Thank you, Don

Thanks to all who responded, but I have already solved the problem
yesterday. Last night, I've changed my interrupt from 4 (the default for
com 3) to 3 (which is what my USR modem jumpers is set at).

I did this by placing this line '/bin/setserial /dev/cua2 irq 3' in file
/etc/rc.d/rc.local. This sets up the modem to use irq 3.

 
 
 

Help with PPP connection, 2nd try

Post by Toni » Thu, 12 Dec 1996 04:00:00



> I have problems connecting to my ISP through Linux. When connecting to my ISP
> under DOS/WINDOWS3.1 and OS/2, I am successful, but this is not the case with
> Linux.
> ...

Hi Donald, it seems to me that your problem is a missconfigured IRQ for
your
modem, all the other configuration looks OK. Grab a copy of the article
called "Guide to PPP/SLIP (long)" posted in comp.os.linux.setup and in
comp.os.linux.networking, it will help you with the modem too.

Bye

 
 
 

Help with PPP connection, 2nd try

Post by Dimitrios P. Boura » Thu, 12 Dec 1996 04:00:00


Hello Don,

Quote:> Example of my options file.

> -detach
> modem
> lock
> crtscts
> defaultroute
> asyncmap 0
> mtu 552
> mru 552

 Everything else seems more or less OK. Delete -detach and the lines
 specifying mtu and mru. Add the following:

ipcp-accept-local
ipcp-accept-remote

 and change to

asyncmap 20A0000

Quote:> Dec  9 12:55:39 fsdy pppd[291]: fsm_sdata(LCP): Sent code 1, id 1.
> Dec  9 12:55:39 fsdy pppd[291]: LCP: sending Configure-Request, id 1
> Dec  9 12:55:42 fsdy pppd[291]: LCP: timeout sending Config-Requests

 Looks like your provider's host/terminal-server doesn't respond to
 your pppd's LCP packets. Try the above and post again if the problem
 persists.

  Dimitri

--
+----------------------------------------------------------------------+
|  Dimitrios P. Bouras                        Tel.: +30 1 894-1320     |
|  MBCom Co.                                              968-0554     |
|  41 Pandora Str.                             FAX:       382-7900     |


+----------------------------------------------------------------------+

 
 
 

1. HELP with script, trying to establish a PPP connection

I wrote this script with some help from a Linux Book. When I ran this
script, I get a "unrecognized command" with a usage dicription for
pppd. I looked over it many time and I could not find any error.

HELP HELP

I'm using pppd version 2.1 patch level 2 (linux 1.0.1)
PPP is compiled in the Kernel
------------------------------------------------------------------------------------------------------------
#!/bin/sh

# A script to establish a dial-up PPP connection

# Shell variable with remote end's IP address
  RMTIP="0.0.0.0"     ( My IP assignes one)

# If PPP link exists, then exit
  /sbin/ifconfig | grep $RMTIP >/dev/null && exit 0

# Other shell variables
# Set LOCIP to "" if your IP adddress is dynamically assingned
LOCIP="0.0.0.0"        ( Assigned by IP )
  PHONE=" phone number of IP "
  DEVICE="/dev/cua0"
  SPEED="38400"
  PPP_USERNAME=" username "
  PPP_PASSWORD=" password "

pppd connect "/usr/lib/ppp/chat \
ABORT \"NO CARRIER\" ABORT BUSY ABORT \"NO DIAL TONE\" \
\"\" ATZ OK ATE1M1V1X4L3S0=0\&c1QQDT$PHONE CONNECT \"\" \
name: --name: $PPP_USERNAME word: $PPP_PASSWORD" \
crtscts modem defaultroute $LOCIP:$RMTIP $DEVICE $SPEED

# End of script
---------------------------------------------------------------------------------------------------------------------------------

Thanks in advance

2. Slow Disk I/O with QPS M3 80GB HD

3. 2nd try: ppp problem, non-trivial, non-FAQ (long)

4. Tcsh 6.03 update

5. PPP / chat been trying, reading, trying HELP

6. Hard Drive not found

7. PPP / chat been trying, reading, trying, HELP!

8. Hardware Weirdness

9. want to share my ppp connection with 2nd machine

10. 2nd try: Please help with configuring x

11. Help, 2nd try with ATI GX Mach 64

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

13. Need Ensoniq Drivers (ssinit.c) (2nd try - Please help)