Hello All,
I have been very bad at getting this summary out and I appologize. Ever
since I got these few responses All hell broke loose here and I don't
even remember what PPP is let alone where I left off. I am copying this
to the two people who mailed me directly for a summary. Again, I
appologize for slacking.
Hope this helps.
Vic
My original:
Hello again,
Now that I have the modem working properly I am trying to install ppp
and connect using trumpet winsock for windows. I am haveing problems
with the Trumpet Winsock but I think the root of all of my problems are
in the ppp software rinning under SunOS.
I followed the instructions for installing ppp for SunOS4x to the best
of my ability (which is probablly lower than it should be since I don't
really program in C),
I ran the make on the ppp software using the Makefile.sun and then ran
make install and received no errors. The only change I made was
changing the $BINDIR to /usr/local/ppp/etc. I made sure I made the same
change in the other appropriate Makefiles. All installed with no
eerrors.
I then ran modload ppp_driver.o -sym (in order for the pppstats to work)
and there were no errors with that.
from that point I am confused. The instructions say to run pppd passive
on the remote machine then pppd /dev/tty<x> <speed> on teh local
machine.
First off, when I type pppd passive I get a bunch of garbage on the
screen and loose control. I have to log in from another machine and
kill the pppd process. I realize that this is because pppd is trying to
run for tty(whichever my cmdtool is on) instead of ttya where my modem
is. I hae tried running pppd /dev/ttya 19200 and I get a message saying
:pppd[1719]: tcsetpgrp(): Inappropriate ioctl for device.
I then turn off the getty process and do not get this error. EXCEPT
when I dial in from my winsock dialler and it tries to access pppd.
I am running SunOS 4.1.3_U1 with a USR 14.4 modem connected and WORKING
on ttya. I only want to use this for dial-in PPP connection. I am
running windows for workgroups on a pc with winsock 2.0 that works on
other sites.
1-What is this message saying
2-How do I set the IP address of both the Host(Sun) ppp connection and
the remote(pc)?
3-How do I start pppd on the Sun(Host)...Do I have it waiting for a
connect from the PC...do I start it once I log in from the PC???
4-DO I need to have the getty running?
5-Once I get connection and have IP addresses for both ends of the ppp
connection is there a route set up from one end of the connection to the
other?
lastly
where can I get more info on
6-how ppp works on sunos
7-winsock scripts
Thanks you very much for your time.
------------------------------------------------------------------------
------------------------------------------------------------------------
From: "David H. Brierley" <dhb@ssd.ray.com>
-- What I have on my machine is that to connect with PPP there is a
special
login that uses the pppd program as it's login shell. then, in my
"options"
file I have the following:
name rayssd.ssd.ray.com
lock
debug
netmask 255.255.255.0
passive
silent
modem
crtscts
proxyarp
> 2-How do I set the IP address of both the Host(Sun) ppp connection and
> the remote(pc)?
I have IP addresses assigned to each PC that will be connecting in and
the
PC must be configured to know what it's address is.
> 3-How do I start pppd on the Sun(Host)...Do I have it waiting for a
> connect from the PC...do I start it once I log in from the PC???
> 4-DO I need to have the getty running?
Log in as "ppp" and have "pppd" as the login shell.
> 5-Once I get connection and have IP addresses for both ends of the ppp
> connection is there a route set up from one end of the connection to the
> other?
I'm not sure how Trumpet does this. My setup is that I have a UNIX
machine
at home (FreeBSD) and it allows me to define a default route through the
ppp
interface.
------------------------------------------------------------------------
From: Reto Lichtensteiger <rali@meitca.com>
<> I then ran modload ppp_driver.o -sym (in order for the pppstats to
work)
<> and there were no errors with that.
Check with:
# modstat
Id Type Loadaddr Size B-major C-major Sysnum Mod Name
2 Pdrv ff056000 b000 ppp
1 Drv ff048000 b000 59. stc
This tells me that I have to loadable drivers installed, the first one
is
for a multi-serial interface card, the second (listed first) is ppp.
Then you can do the following:
# ifconfig -a
le0: flags=63<UP,BROADCAST,NOTRAILERS,RUNNING>
inet 137.203.95.13 netmask fffffff0 broadcast 137.203.255.242
ether 8:0:20:2e:67:9a
lo0: flags=49<UP,LOOPBACK,RUNNING>
inet 127.0.0.1 netmask ff000000
ppp0: flags=10<POINTOPOINT>
ppp1: flags=10<POINTOPOINT>
ppp2: flags=10<POINTOPOINT>
ppp3: flags=10<POINTOPOINT>
ppp4: flags=10<POINTOPOINT>
which confirms that there are a number of PPP interfaces in the kernel
networking drivers.
<> from that point I am confused. The instructions say to run pppd
passive
<> on the remote machine then pppd /dev/tty<x> <speed> on the local
<> machine.
<>
<> I am running SunOS 4.1.3_U1 with a USR 14.4 modem connected and
WORKING
<> on ttya. I only want to use this for dial-in PPP connection. I am
<> running windows for workgroups on a pc with winsock 2.0 that works on
<> other sites.
<>
<> 2-How do I set the IP address of both the Host(Sun) ppp connection
and
<> the remote(pc)?
The host side (Sun) is set automagically from the le0 IP address, unless
you want to define individual IP addresses for the serial interfaces.
whihc is done by creating a separate /etc/ppp/options.<tty-device> file
for each (only one in your case ...) serial port.
Dunno how you set the PC side -- some config file somewhere on the silly
boxes. Sorry, I don't know the answer to this.
<> 3-How do I start pppd on the Sun(Host)...Do I have it waiting for a
<> connect from the PC...do I start it once I log in from the PC???
Create a login account (ala
ppplogin:ii6TX5wFd.b5Y:25:25:PPP
Account:/home/ppp:/usr/local/etc/ppp.sh
where ppp.sh is a script wrapper for pppd that has all the info you
might
want (It can just exec /usr/local/ppp/etc/pppd ...)
<> 4-DO I need to have the getty running?
Yes.
<> 5-Once I get connection and have IP addresses for both ends of the
ppp
<> connection is there a route set up from one end of the connection to
the
<> other?
In /etc/ppp/options on the sun side add the parameter "proxyarp", dunno
how to route the trumpet winsock side, bt I think it does the "right
thing" casue my users don't ask this question :-)
<> where can I get more info on
<> 6-how ppp works on sunos
Assuming you mean pppd-2.x rather than the PROTOCOL itself ...
The Sunsite.UNC.Edu ftp/web server has a bunch of Linux "HOWTO" guides,
including one on pppd-2.1, which behaves +exactly+ the same under SUnOS
as it does under Linux. Good read!
<> 7-winsock scripts
?
G'Luck
------------------------------------------------------------------------
***************************************************************
Systems Administrator
---------------------
Space Sciences Building CRSR
Mail all system related problems to one of the following:
sysadmin@astrosun.tn.cornell.edu root@astrosun.tn.cornell.edu
sysadmin@spacenet.tn.cornell.edu root@spacenet.tn.cornell.edu
or see
Vic Germani in room 402 germani@astrosun.tn.cornell.edu
***************************************************************
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:50 CDT