Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 1995 12:17:43 -0500
From:      Stephen Couchman <scouch@io.org>
To:        Donald Burr <d_burr@ix.netcom.com>
Cc:        questions@freebsd.org
Subject:   Re: iijpp STILL cannot talk to my modem :-((
Message-ID:  <199512311717.MAA22789@io.org>

next in thread | raw e-mail | index | archive | help
Donald,

Thanks for the interest.  The details that you ask for are below:

>
>What the hell.  I've got some time to kill, and I have played around with 
>iij-ppp enough so that I am willing to give yorur problem a shot.  
>Unfortunately, I got in a little late on the thread, and so don't know:
>
>a) what exactly is the problem;

When I run iij-ppp, and use the 'term' or 'dial' commands, no characters are
sent to the modem (RD/SD lights do not flash).  I can use 'tip' and 'cu' on
the same device (/dev/cuaa1) without any problems.

One scenario:

I used "cu -p port4" where port4 is setup as a direct connect to the modem.

I typed 'AT' and 'ATZ' and got back 'OK' in both cases.

I then exitted cu, and confirmed that the lock file had been removed.

I then tried 'ppp myisp' and 'show modem' to confirm that everything was
setup to talk to the correct device (/dev/cuaa1) and the modem.  (BTW, outq
showed 0 at this point).

I then typed 'term' and typed 'AT' and ATZ' with no response.  After typing
'~.' to return to the ppp prompt, I typed 'show modem' again.  Outq showed
'7' now, which implies (to me) that no characters were sent out the device port.

It seems that nothing is getting to the modem...

Another scenario:

If I try to use iijppp and the 'term' command, iijppp does not communicate
with the modem (no lights flash on the modem, and no characters are echoed).
Quite often, but not always, the characters that I type after the term
command, e.g. 'at', are buffered and are read by the shell once kill the ppp
process.

If I try to use iijppp and the 'dial myisp' command, iijppp responds with
'dial failed.', presumably because the modem is not responding.  Of course,
the modem is not responding because it never receives any characters...


>b) I don't have copiesof your configuration files (which would help...)

Here is my /etc/ppp/conf file.  I have not included the /etc/ppp/ppp.linkup
file because I have not been able to get that far yet! :-((

---- Start of /etc/ppp/ppp.conf
#################################################################
#
#  	PPP  Sample Configuration File
#
#	  Written by Toshiharu OHNO
#
# $Id: ppp.conf.sample,v 1.3 1995/04/22 17:14:21 amurai Exp $
#
#################################################################
#
# Default setup. Executed always when PPP is invoked.
#
default:
 set debug phase lcp chat lqrm
 set device /dev/cuaa1
 set speed 1200
 set timeout 18000
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK
\\dATDT\\T TIMEOUT 40 CONNECT"
#
# Example with login script
#   o From PPP prompt,
#	ppp> dial simplesite
#     will automatically dials and perform login procedure.
#
#       ppp> load simplesite
#     will also load and execute commands, but don't dial.
#
#   o From shell, invoke as
#       % ppp simplesite
#     will load commands associated with the label. Use,
#       ppp> dial
#     to establish the connection.
#
internex:
 set phone 7736564,,4163634151
 set login "TIMEOUT 5 login:-\\r-login: userid word: password"
 set ifaddr 204.92.49.10/16 198.133.36.19/24
 add 0 255.255.255.0 198.133.36.19
#
# If peer reqires to use CHAP, don't forget to supply authname and authkey.
#
# If you'd like to use CHAP to authentificate peer, comment out the line
# ``enable chap'' below. You also need to prepare /etc/ppp.secret.
#
# If remote system sends its system name within CHAP packet and it is
# found in /etc/ppp.secret, then secret key is taken from the file and
# value of authkey is ignored.
#
chapsite:
 set phone 12345678
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 deny pap
 accept chap
# enable chap
 set authname MySystemName
 set authkey  OurSecretKey
#
# To speak PAP is just smilar to CHAP
#
cgi:
 set phone 7736564,,4168622571
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 deny chap
 accept pap
# enable pap
 set authname scouchma
 set authkey  jumanaf
 set ifaddr 0 0
#
# On demand dialup example
#  Here, we assume that local side use 192.244.185.226 and
#  remote side use 192.244.176.44 as their IP address.
#  You must supply -auto option to invoke PPP.
#
#  ex. % ppp -auto ondemand
#
ondemand:
 set phone 1234567
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
 set ifaddr 192.244.185.226 192.244.176.44
 add 0 255.255.255.0 192.244.176.44
#
# Another on demand example
#  If peer assign some IP address for us, and we can't predict it
#  until we make a connection, use 0 as local side address.
#
pmdemend:
 set phone 1234567
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
 set ifaddr 0 192.244.176.44
 add 0 255.255.255.0 192.244.176.44
#
# Example to validate incoming user with CHAP
#  Invod as ``ppp -direct users'' from login script. User's system name
#  and secret-key must be registered into /etc/ppp.secret.
#  IP address assigned to peer is registered in ppp.secret, then that
#  value is used and value in ``ifaddr'' command has no effect.
#
users:
 disable pap
 enable chap
 enable  proxy
 set authname ppp-server
 set ifaddr 192.244.176.44 292.244.184.31
#
# Example of Callback Request
#
#  Here, we assume that peer will hangup the line and initiates a callback
#  after successful authentification. We simply use chat script capabiluty
#  and wait for a "NO CARRIRER" response from our modem.
#
#  % ppp callback
#
callback:
 set phone 0312345678
 set login "ABORT NO\\sCARRIER TIMEOUT 5 login:-\\r-login: MyName word:
MySecret TIMEOUT 20 DUMMY"
 set debug phase chat
 dial
 quit
#
# Example for PPP/TELNET and PPP/TCP. Read doc for further details
#
ppptelnet:
 set escape 0xff
ppptcp:
 set device 192.244.191.33:2400
---- End of /etc/ppp/ppp.conf

>
>Incidentally, what version of FreeBSD are you running, what kind of 
>system is it, what kind of modem (brand? internal/external? etc.)... 
>these might help out too
FreeBSD 2.1.0.

Pentium 75 mhz, Adaptec 2940 PCI SCSI controller, Fujitsu 1.0 GB drive, Sony
SCSI CDROM, 3Com 590 PCI NIC

GVC (Hayes Compatible) external modem on COM2 (it is an old 1200 baud, I am
getting a new Hayes 28.8kb on Tuesday).  The modem does work fine with tip
and cu.

Thanks -- Stephen
______________________________
Stephen Couchman    | scouch@io.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512311717.MAA22789>