[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TCP/IP and PPP
On Thu, 01 Jun 2000 00:12:50 GMT, "krisp" <krisp@mindcryme.com> wrote:
>I have been tinkering around with Marinetti TCP/IP stack and had an idea:
>using a NULL modem cable and a linux box (laptop in my case) to run pppd on
>the serial port and fooling marinetti into thinking it dialed and is
>init'ing the ppp link:
>
>(--> = marinetti status, # = shell prompt)
>
>--> Initalizing Modem
># echo "OK" >/dev/ttyS0
>-->Dialing...
># echo "CONNECT" >/dev/ttyS0
>--> Negoatating PPP options...
># pppd ttyS0 19200 192.168.1.25:192.168.1.100 local proxyarp noauth
>(Marinetti thinks it is succussfully on the network now)
>
>However, pppd never sets up ppp0, looking at syslog it hangs after the
>connection, and about 45 seconds later it will timeout and drop the
>connection, but the apple still thinks its connected.
>
>Anyone have any idea how to get this working correctly?
I'm no expert and I haven't done this myself (yet) but it looks to me
like you've already logged in on your linux machine and are sending
stuff to the IIgs which I don't think is right. You also appear to be
using the PPP link layer rather than the PPP Scripted link layer.
Can you run communications software (ie. Spectrum, ProTERM, etc.) on
your IIgs and get a login prompt from your linux box? If so, are you
able to log in and use the shell okay. This will determine if your
null-modem connection is working properly.
If you connection is okay, I'd just write a script for the PPP
Scripted link layer that will send a carriage return, wait for the
username prompt, send the username, wait for the password prompt, send
the password, and then do what it has to to get PPP going. How to do
that last step I'm not entirely sure. Possibly just send the pppd
command from the Marinetti script.
By the way, doing it this way your IIgs can be logged in as one user
and you can still log in as another user on your Linux machine.
+------------------------------------------------------------------------+
| Jeff Blakeney - Dean of the Apple II University in A2Pro on Delphi |
| Delphi Apple II Forums Web Pages |
| A2: http://www.delphi.com/apple2 A2Pro: http://www.delphi.com/a2pro |
+------------------------------------------------------------------------+