Newsgroups: comp.protocols.ppp
Subject: PPP Between 2 Suns (ppp-sunos4.1.pl6) - IOCTL problem
From: babb@malibu.dst.battelle.org (Larry Babb (Dayton office))
Date: Tue, 10 Nov 1992 17:29:17 GMT
Organization: Battelle Defense Systems and Technology

Hi -

I'm trying to install PPP to connect two Sun's and I have a few questions.
I'm using the ppp-sunos4.1.pl6 version, and I have applied the mem_leak patch.
Please let me know if there's a better version of PPP that I can use to connect
two suns via 9.6 modems (telebit T2500).

I can get the modems to talk to each other as I can use tip from one machine
to dial and login to the other.  I'm having a problem getting ppp to start
up and make the connection.  Here's the error message I get on the _calling_
end:

         ppp: quit ioctl(I_FLUSH,FLUSHRW): Invalid argument

I know that this message is coming from the calling in because I changed the
printf statements to print the hostname.

I get this message after running ppp-on.  I think chat is making the connection
because I fooled around with the username and password in the ppp-on script
and got it to tell me "PPP call failed".  I then fixed the password & 
username and got the error above.  

Here's some background info on the current setup:

sparc2 is a SparcStation2 running SunOS4.1.1.  I am using it as the calling
machine.

batcave is a Sun 4/110 running SunOS 4.1.  I am using it as the answering
machine (ppp "server").


         sparc2                                 batcave
    -------------------                        ----------------
ip:  131.167.242.39       le0/ethernet         131.167.242.41
ppp: 131.167.151.1        ppp0/9600 Modem      131.167.152.1


--> ppp-on - on sparc2

Here's the important part of the ppp-on command. The rest of the file is
the same as in your distribution.

if chat -l LCK..cua0 ABORT "NO CARRIER" ABORT BUSY "" ATZ OK ATDT6767 CONNECT "" ogin: pppuser assword: \\qpppuser

 ppp mru 1500 131.167.151.1: /dev/cua0 &



--> netstat -rn on sparc2

This is the relevant output from netstat -rn:
Routing tables
Destination          Gateway              Flags    Refcnt Use        Interface
131.167.151.1        131.167.151.1        UH       0      0          ppp0
131.167.152.1        131.167.151.1        UH       0      0          ppp0
127.0.0.1            127.0.0.1            UH       6      168485     lo0
default              131.167.152.1        UG       0      0          ppp0
default              131.167.242.20       UG       0      159        le0
131.167.0.0          131.167.242.39       U        17     271195     le0

I'm not sure why both 152.1 and 242.20 (our router) both show up as default.

-->  ifconfig ppp0 on sparc2
Here's the ifconfig command for the ppp0 interface:
ifconfig ppp0 131.167.151.1 131.167.152.1 netmask 0xffffff00 down

Here's the output of ifconfig ppp0:
ppp0: flags=10<POINTOPOINT>
        inet 131.167.151.1 --> 131.167.152.1 netmask ffffff00 

--> This is the pppstart script on batcave
#!/bin/sh
/usr/bin/mesg n
echo "ppp user login attempted `date`" >> /var/adm/ppp_log
stty -tostop
exec /usr/local/bin/ppp 131.167.152.1:

I know that a connection is being established between the modems and that the
pppstart script is getting started because of the logging message that appears
in the log file on the "called" end.

If you have any comments or suggestions, or need more info, please send mail.


Thanks,

			- Larry Babb
			  Battelle Memorial Institute
			  lbabb@ucoc1.is.battelle.org