Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!hunter.premier.net!netnews.worldnet.att.net!newsadm
From: Charles Reese <reese@chem.duke.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Help needed with PPP and cyclom 16
Date: 15 Oct 1996 18:24:44 GMT
Organization: AT&T WorldNet Services
Lines: 113
Message-ID: <540ktc$nj4@mtinsc01-mgt.ops.worldnet.att.net>
NNTP-Posting-Host: 189.newark-2.nj.dial-access.att.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22ATT (Windows; U; 16bit)
I am installing a cyclom-16Ye card into a 486/120 running FreeBSD
2.1.0. I have tested the card under DOS and it passes all tests and I
have enabled kernel support for cy0. I have created the /dev/ttyc? and
/dev/cuac? files and edited ttys to run getty on them. An example of the
ttys line is:
#cyclades multiport lines
ttyc0 "/usr/libexec/getty std.19200" unknown on
Problem:
I am trying to setup the serial ports to accept ppp dialin calls. I am
using the kernel pppd and had it working on ttyd1. The scripts I am using
are just slightly modified versions of the ones in the Handbook and are
shown below.
When I run the pppserv script the kermit.ans script seems to fail. Only
the RD and SD lights on the modem light up (no AA) and several screens of
what appear to be login prompts flash by, then the screen just locks up
and I don't get a command prompt anymore.
I was wondering if anyone has any scripts that would be suitable for
setting up dialin ppp service using the cyclom card, that you share, or if
you see any obvious errors in my setup. I have checked the archives and
found a number of questions about this subject but few answers seem to
have been posted. I would be happy to post a summary of the alternatives
to setting this up and putting it into the handbook so any explanatory
comments would be especially welcome. Also, if you know of anyone running
FreeBSD and a cyclom-16Ye for dialin ppp support who would share their
setups please let me know.
Cheers
Charlie Reese
(pppserv)
#!/bin/sh
#/etc/ppp/pppserv script will enable ppp server on your machine
ps ax |grep pppd |grep -v grep
pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
echo 'killing pppd, PID=' ${pid}
kill ${pid}
fi
ps ax |grep kermit |grep -v grep
pid=`ps ax |grep kermit |grep -v grep|awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
echo 'killing kermit, PID=' ${pid}
kill -9 ${pid}
fi
# reset ppp interface
ifconfig ppp0 down
ifconfig ppp0 delete
# enable autoanswer mode
kermit -y /etc/ppp/kermit.ans
# run ppp
pppd /dev/ttyc0 19200
(kermit.ans)
set line /dev/ttyc0
set file type binary
set file names literal
set win 8
set rec pack 1024
set send pack 1024
set block 3
set term bytesize 8
set command bytesize 8
set flow none
pau 1
out +++
inp 5 OK
out ATH0\13
inp 5 OK
out AT&F\13
inp 5 OK
echo \13
out ATS0=1\13 ; change this to out ATS0=0\13 if you want to disable
; autoanswer mod
inp 5 OK
echo \13
exit
(/etc/ppp/options)
#/etc/ppp/options:
crtscts # Hardware flow control
netmask 255.255.255.0 # netmask ( not required )
10.0.0.31:10.0.0.32 #on local net
#192.114.208.20:192.114.208.165 # ip's of local and remote hosts
# local ip must be different from one
# you assigned to the ethernet ( or other
)
# interface on your machine.
# remote IP is ip address that will be
# assigned to the remote machine
domain mtclr.com # your domain
passive # wait for LCP
#proxyarp # forward packets to network
disconnect pppserv # recycle the modem for next call
modem # modem line