ppp problem, getting frustrated

ppp problem, getting frustrated

Post by Nunk » Fri, 13 Mar 1998 04:00:00



    I've been having trouble getting my computer to establish a ppp
connection for quite some time now.  As instructed I have studied the
PPP howto and other varies manuals on configuring your connection, and
have not been able to sucessfully do it.  So here's what's been
happenin...
    I follow the PPP howto almost perfectly.  I've set up my
/etc/ppp/options file as such:
/dev/ttyS1                                 // is this really necessary?
115200
asyncmap0
crtscts
defaultroute
noipdefault
lock
netmask 255.255.255.0
modem
-detach
mru 1500
mtu 1500

After I started minicom, dialed my isp, and started ppp on their side (I
have to push return, insert my username and password).  I then quit
minicom without reseting my modem.  I then type "pppd -d /dev/ttyS1 &"
at the prompt.

After a few seconds I type "ifconfig" at the prompt and get back:
Link encap: Local Loopback
int addr: 127.0.0.1 Bcast: 127.255.255.255 mask: 255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU: 3584 Metric: 1
Rx packets: 59 errors: 0 dropped: 0 overruns: 0
Tx packets: 59 errors: 0 dropped: 0 overruns: 0

route -n gives me:
Kernel IP routing table
Destination                        Gateway
Genmask                   Flags         Metric          Ref
Use        Iface
127.0.0.1                           0.0.0.0
255.255.255.255      UH           0                   0
1           ls
127.0.0.0                            -
255.0.0.0                  !               0
-            0           -

A few seconds after I do all of this, my modem just clicks and hangs
up.  I've configured my resolv.conf, but I don't think this has anything
to do with just getting a ppp connection.  I am confused as to what goes
in my /etc/hosts file as well.  I think there is a problem with my IP
adress, but I'm not sure how to fix it.  I have also been confused by
localhost and localdomain (when my machine boots up it says cannot
configure local host name and then prints
"hostname:localhost.localdomain".  If anybody could clear this up for me
I would be grateful.  I am completely stuck and would appreciate any
help.
--
thanx in advance,
scott

 
 
 

ppp problem, getting frustrated

Post by Hautaniemi Kale » Sat, 14 Mar 1998 04:00:00


:     I've been having trouble getting my computer to establish a ppp
: connection for quite some time now.  As instructed I have studied the
: PPP howto and other varies manuals on configuring your connection, and
: have not been able to sucessfully do it.  So here's what's been
: happenin...
:     I follow the PPP howto almost perfectly.  I've set up my
: /etc/ppp/options file as such:
: /dev/ttyS1                                 // is this really necessary?

No. It's not necessary if you specify it on your command line.

: 115200
: asyncmap0
: crtscts
: defaultroute
: noipdefault
: lock
: netmask 255.255.255.0

I don't think you need netmask at all

: modem
: -detach

: mru 1500 <-
: mtu 1500 <-

These are default so you do not have to specify them

: After I started minicom, dialed my isp, and started ppp on their side (I
: have to push return, insert my username and password).  I then quit
: minicom without reseting my modem.  I then type "pppd -d /dev/ttyS1 &"
: at the prompt.

Can you see your ISP host producing lines of length 40 bytes, with
lots of curly braces on them, onto your screen before quitting
minicom? If you can't, your ISP has not started sending ppp frames to
you.

--
Kalevi J Hautaniemi,      Marjatankatu 12,     33730 Tampere,  FINLAND.
****  http://oh3tr.ele.tut.fi/~oh3fg/ ****  On air:  OH3FG, KO4BC  ****
tel:+358-3-364-7446    fax:+358-3-364-2476    mobile:+358-50-590-2243

 
 
 

ppp problem, getting frustrated

Post by Christopher Tietem » Mon, 16 Mar 1998 04:00:00


Quote:> After I started minicom, dialed my isp, and started ppp on their side (I
> have to push return, insert my username and password).  I then quit
> minicom without reseting my modem.  I then type "pppd -d /dev/ttyS1 &"
> at the prompt.

I know this is rather obvious but, are you starting ppp by typing "ppp" as
the last command before you close minicom? My ISP responds after the
username and password with a prompt to which I enter "ppp" [enter].
 
 
 

ppp problem, getting frustrated

Post by Brad Procto » Mon, 16 Mar 1998 04:00:00



> > After I started minicom, dialed my isp, and started ppp on their side (I
> > have to push return, insert my username and password).  I then quit
> > minicom without reseting my modem.  I then type "pppd -d /dev/ttyS1 &"
> > at the prompt.

> I know this is rather obvious but, are you starting ppp by typing "ppp" as
> the last command before you close minicom? My ISP responds after the
> username and password with a prompt to which I enter "ppp" [enter].

I have the same problem, after I enter the username and password it does
not start ppp and doesn't prompt me either.  My dialer setup for Win95
has an option to starts 'packet mode' (after entering the password) is
this the same as starting ppp?

Brad Proctor

 
 
 

1. Getting frustrated with PPP

Ack! If anyone can help me, this would be muchly appreciated!

I have been trying unsuccesfully to get a PPP session working under kernel
1.2.13 (Slackware 3.0 install). I am running on a Thinkpad 755CD w/40MB RAM
and I'm dialing out over an IBM 7852 v.34 modem. The kernel has PPP v0.2.7
(4 channels) and the bootup sequence reports "NEW_TTY_DRIVERS OPTIMIZE_FLAGS"
if that's important. I am running PPPD v2.1 patch level 2 (Linux 1.0.1),
which I assume 1.2.13 is able to backwards comply to (and it did come
installed with the Slackware 3.0 setup).

I am using "pppd connect 'chat -v ""ATDT3635555 CONNECT "" sername: johns word:
secretP' /dev/cua0 38400 -detach debug crtscts modem defaultroute noipdefault"
The chat script seems to work okay, and I think I actually get a PPP connection
but for some strange reason, the modem immediately hangs up and I get the
following in my syslog file:

16:35:08 pppd[233]: ioctl(PPPIOCGDEBUG): I/O error
16:35:08 pppd[233]: ioctl(TIOCSETD): I/O error
16:35:08 pppd[233]: ioctl(TIOCNXCL): I/O error
16:35:08 pppd[233]: tcsetattr: I/O error

and in my mesages file, I get:

16:35:06 pppd[233]: Connected
16:35:07 pppd[233]: Using interface ppp0
16:35:07 pppd[233]: Connect: ppp0 <--> /dev/cua0
16:35:07 pppd[233]: fsm_sdata(LCP): Sent code 1, id 1.
16:35:07 pppd[233]: LCP: sending Configure-Request, id 1
16:35:08 pppd[233]: Hangup (SIGHUP)
16:35:08 pppd[233]: Exit.

In the PPP FAQ, the syslog errors are explained by:

-----
Q: Sometimes the messages "ioctl(PPPIOCGDEBUG): I/O error"
"ioctl(TIOCSETD): I/O error" and "ioctl(TIOCNXCL): I/O error"
occur. Why?

A: The remote system has disconnected the telephone. The tty drivers
will re-establish the proper tty dicipline (sic) and these errors are the
result of the pppd process trying to do the same thing. These are to be
expected.
-----

This seems to point to the negotiation not succeeding at the "LCP:
sending Configure-Request, id 1" section, although I'm not sure whether
the local or remote end is sending the SIGHUP immediately after. I have had
PPP connections through Windows 95 and OS/2 Warp with the same hardware, so I
know hardware isn't an issue. Can some kind soul please tell me what I'm
doing wrong here?

--
Gene Lee


2. Red Hat 6 and Xwindows

3. frustrating ppp problems!

4. Help with basic authentification for Apache

5. Alright, I'm getting frustrated....

6. q: searching a web site

7. Frustrated - simply cannot get network card getting in Redhat Linux |

8. problem with scsi hd

9. Trying to get IP-MASQ to work and getting frustrated

10. newbie getting frustrated

11. Tulip chipsets and running away before getting frustrated.

12. Frustrated - simply cannot get network card getting in Redhat Linux

13. PPP -- Still not working (and even more frustrated)