Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2000 11:07:12 -0700
From:      Ben Hohman <ghp@techline.com>
To:        freebsd-questions@freebsd.org
Subject:   modem/ppp config problem
Message-ID:  <4.3.2.7.2.20000717102628.00e03960@mail.techline.com>

next in thread | raw e-mail | index | archive | help
--=====================_244416161==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hello,

I'm trying to setup a BSD box as a gateway to work for my home 
network.  I've gotten the ethernet network up and running (except for the 
stupid 98 box).  The procedure I'm using is from the Tutorials section of 
FreeBSD.org http://www.freebsd.org/tutorials/ppp/index.html  Pedantic PPP 
Primer.

I copied the ppp directory to a backup and started editing the files to 
follow the format from the Primer.

Here is rc.conf

#This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.

# -- sysinstall generated deltas -- #
saver="logo"
ifconfig_fxp0="inet 192.168.1.1  netmask 255.255.255.0"
hostname="hermes.jbenh.com"
gateway_enable="YES"
moused_port="/dev/psm0"
moused_type="intellimouse"
moused_enable="YES"
font8x8="iso-8x8"
font8x14="iso-8x14"
font8x16="iso-8x16"
keyrate="fast"
keymap="us.iso"
ifconfig_ppp0="inet 10.62.254.157  netmask 255.255.240.0"

Here is ppp.conf

#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.1.2.2 1999/08/29 14:19:56 peter Exp $
#################################################################
  #
  # Make sure that "device" references the correct serial port
  # for your modem. (cuaa0 = COM1, cuaa1 = COM2)

default:
  set device /dev/cuaa0
  set speed 57600
  disable pred1
  deny pred1
  disable lqr
  deny lqr
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 
OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT"
  set redial 3 10

  ################################################################
#
# For interactive mode use this configuration:
#
# Invoke with `ppp -alias interactive`
#
################################################################

interactive:
  set authname my_username
  set authkey my_password
  set phone 538-5649
  set timeout 300
  set openmode active
  accept chap
  #set ifaddr 127.1.1.1 127.2.2.2 255.255.240.0

################################################################
#
# For demand-dial (automatic) mode we'll use this configuration:
#
# Invoke with: 'ppp -auto -alias demand'
#
################################################################

demand:
  set authname my_username
  set authkey my_password
  set phone 538-5649
  set timeout 300
  set openmode active
  accept chap
  set ifaddr 10.62.254.157 127.2.2.2  255.255.240.0
  add 0 0 127.2.2.2

#install:
# set ifaddr 10.62.254.157 10.62.254.252
# set timeout 300
# enable dns
# set log local phase

Here is ppp.linkup

#########################################################################=
# PPP Link Up File ('/etc/ppp/ppp.linkup')
#
#  This file is checked after PPP establishes a network connection.
#
#  This file is searched in the following order.
#
#  1) First, the IP address assigned to us is searched and
#     the associated command(s) are executed.
#
#  2) If the IP Address is not found, then the label name specified at
#     PPP startup time is searched and the associated command(s)
#     are executed.
#
#  3) If neither of the above are found then commands under the label
#     'MYADDR:' are executed.
#########################################################################=

# This section is used for the "demand" configuration in
#   /etc/ppp/ppp.conf:

demand:
delete ALL
add 0 0 HISADDR

# All other configurations in /etc/ppp/ppp.conf use this:

MYADDR:
add 0 0 HISADDR

########################################################################

# Original Settings
#MYADDR:
# delete ALL
# add 0 0 HISADDR

Here is ppp.log

Jul 16 18:35:07 hermes ppp[392]: Phase: PPP Started (interactive mode).
Jul 16 18:35:15 hermes ppp[392]: Phase: bundle: Establish
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: closed -> opening
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: Connected!
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: opening -> dial
Jul 16 18:35:15 hermes ppp[392]: Phase: Phone: 538-5649
Jul 16 18:35:20 hermes ppp[392]: Warning: Chat script failed
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: dial -> hangup
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Disconnected!
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Connect time: 5 secs: 0 
octets in, 0 octets out
Jul 16 18:35:20 hermes ppp[392]: Phase:  total 0 bytes/sec, peak 0 
bytes/sec on Sun Jul 16 18:35:20 2000
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: hangup -> opening
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Enter pause (3) for 
redialing.
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: Redial timer expired.
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: Connected!
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: opening -> dial
Jul 16 18:35:23 hermes ppp[392]: Phase: Phone: 538-5649
Jul 16 18:35:28 hermes ppp[392]: Warning: Chat script failed
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: dial -> hangup
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Disconnected!
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Connect time: 5 secs: 0 
octets in, 0 octets out
Jul 16 18:35:28 hermes ppp[392]: Phase:  total 0 bytes/sec, peak 0 
bytes/sec on Sun Jul 16 18:35:28 2000
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: hangup -> opening
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Enter pause (3) for 
redialing.
Jul 16 18:35:31 hermes ppp[392]: Phase: Caught signal 2, abort connection(s)
Jul 16 18:35:31 hermes ppp[392]: Phase: deflink: Disconnected!
Jul 16 18:35:31 hermes ppp[392]: Phase: deflink: opening -> closed
Jul 16 18:35:31 hermes ppp[392]: Phase: bundle: Dead

***
When I run ppp I get "Chat script failed".  I
I can enter terminal mode and take the model off hook, but I don't get a 
dial tone.  I get a connected message, but no login prompt and "ppp" never 
changes to reflect its status.  If I type atv1, I still get nothing in 
terms of volume.  So I went into the FAQs on FreeBSD.org.  I added the 
following to my remote file

# Generic entry
tip115200|Dial any phone number at 115200 bps:\
:dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du:
tip57600|Dial any phone number at 57600 bps:\
:dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du:

When I type 'tip -57600 my_#' f I get an error (which I didn't copy down), 
but is something like "unknown hayes type"

The modem is an external Supra Express 57600.  When I connect it to my 
Win98 box it dials fine.

First off, do the entries in ppp.conf have a specific order?  Should I use 
cu instead of tip in my remote file?  Do I have to make cuaa0?  If so where 
do I go to get the source (which CD in the 4 box FreeBSD set).

Any other thoughts/suggestions?

Ben


Grays Harbor Paper, L.P.
801 23rd Street
Hoquiam, Washington  98550
360.538.5713 (direct)
360.538.5716 (fax)

contact: Ben Hohman

----------
I have a PGP public key (key ID 0x6F13E812).  For more info http://www.pgp.com

--=====================_244416161==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
Hello,<br>
<br>
I'm trying to setup a BSD box as a gateway to work for my home
network.&nbsp; I've gotten the ethernet network up and running (except
for the stupid 98 box).&nbsp; The procedure I'm using is from the
Tutorials section of FreeBSD.org
<a href="http://www.freebsd.org/tutorials/ppp/index.html" eudora="autourl">http://www.freebsd.org/tutorials/ppp/index.html</a>&nbsp;
Pedantic PPP Primer.<br>
<br>
I copied the ppp directory to a backup and started editing the files to
follow the format from the Primer.<br>
<br>
Here is rc.conf<br>
<br>
<font face="Courier New, Courier">#This file now contains just the
overrides from /etc/defaults/rc.conf<br>
# please make all changes to this file.<br>
<br>
# -- sysinstall generated deltas -- #<br>
saver=&quot;logo&quot;<br>
ifconfig_fxp0=&quot;inet 192.168.1.1&nbsp; netmask
255.255.255.0&quot;<br>
hostname=&quot;hermes.jbenh.com&quot;<br>
gateway_enable=&quot;YES&quot;<br>
moused_port=&quot;/dev/psm0&quot;<br>
moused_type=&quot;intellimouse&quot;<br>
moused_enable=&quot;YES&quot;<br>
font8x8=&quot;iso-8x8&quot;<br>
font8x14=&quot;iso-8x14&quot;<br>
font8x16=&quot;iso-8x16&quot;<br>
keyrate=&quot;fast&quot;<br>
keymap=&quot;us.iso&quot;<br>
ifconfig_ppp0=&quot;inet 10.62.254.157&nbsp; netmask
255.255.240.0&quot;<br>
<br>
</font>Here is ppp.conf<br>
<br>
<font face="Courier New, Courier">#################################################################<br>
# PPP&nbsp; Sample Configuration File<br>
# Originally written by Toshiharu OHNO<br>
# Simplified 5/14/1999 by wself@cdrom.com<br>
#<br>
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.1.2.2 1999/08/29 14:19:56 peter Exp
$<br>
#################################################################<br>
&nbsp;#<br>
&nbsp;# Make sure that &quot;device&quot; references the correct serial
port<br>
&nbsp;# for your modem. (cuaa0 = COM1, cuaa1 = COM2)<br>
<br>
default:<br>
&nbsp;set device /dev/cuaa0<br>
&nbsp;set speed 57600<br>
&nbsp;disable pred1<br>
&nbsp;deny pred1<br>
&nbsp;disable lqr<br>
&nbsp;deny lqr<br>
&nbsp;set dial &quot;ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5
\&quot;\&quot; ATE1Q0M0 OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT&quot;<br>
&nbsp;set redial 3 10<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;################################################################<br>
#<br>
# For interactive mode use this configuration:<br>
#<br>
# Invoke with `ppp -alias interactive`<br>
#<br>
################################################################<br>
<br>
interactive:<br>
&nbsp;set authname my_username <br>
&nbsp;set authkey my_password<br>
&nbsp;set phone 538-5649 <br>
&nbsp;set timeout 300<br>
&nbsp;set openmode active<br>
&nbsp;accept chap<br>
&nbsp;#set ifaddr 127.1.1.1 127.2.2.2 255.255.240.0 <br>
<br>
################################################################<br>
#<br>
# For demand-dial (automatic) mode we'll use this configuration:<br>
#<br>
# Invoke with: 'ppp -auto -alias demand'<br>
#<br>
################################################################<br>
<br>
demand:<br>
&nbsp;set authname my_username <br>
&nbsp;set authkey my_password<br>
&nbsp;set phone 538-5649 <br>
&nbsp;set timeout 300<br>
&nbsp;set openmode active<br>
&nbsp;accept chap<br>
&nbsp;set ifaddr 10.62.254.157 127.2.2.2&nbsp; 255.255.240.0 <br>
&nbsp;add 0 0 127.2.2.2<br>
<br>
#install:<br>
# set ifaddr 10.62.254.157 10.62.254.252 <br>
# set timeout 300<br>
# enable dns<br>
# set log local phase<br>
<br>
</font><font size=3>Here is ppp.linkup<br>
<br>
</font><font face="Courier New, Courier">#########################################################################=<br>
# PPP Link Up File ('/etc/ppp/ppp.linkup')<br>
#<br>
#&nbsp; This file is checked after PPP establishes a network
connection.<br>
# <br>
#&nbsp; This file is searched in the following order.<br>
#<br>
#&nbsp; 1) First, the IP address assigned to us is searched and<br>
#&nbsp;&nbsp;&nbsp;&nbsp; the associated command(s) are executed.<br>
#<br>
#&nbsp; 2) If the IP Address is not found, then the label name specified
at<br>
#&nbsp;&nbsp;&nbsp;&nbsp; PPP startup time is searched and the associated
command(s) <br>
#&nbsp;&nbsp;&nbsp;&nbsp; are executed.<br>
#<br>
#&nbsp; 3) If neither of the above are found then commands under the
label<br>
#&nbsp;&nbsp;&nbsp;&nbsp; 'MYADDR:' are executed.<br>
#########################################################################=<br>
<br>
# This section is used for the &quot;demand&quot; configuration in<br>
#&nbsp;&nbsp; /etc/ppp/ppp.conf:<br>
<br>
demand:<br>
delete ALL<br>
add 0 0 HISADDR<br>
<br>
# All other configurations in /etc/ppp/ppp.conf use this:<br>
<br>
MYADDR:<br>
add 0 0 HISADDR<br>
<br>
########################################################################<br>
<br>
# Original Settings<br>
#MYADDR:<br>
# delete ALL<br>
# add 0 0 HISADDR<br>
<br>
</font><font size=3>Here is ppp.log<br>
<br>
</font><font face="Courier New, Courier">Jul 16 18:35:07 hermes ppp[392]:
Phase: PPP Started (interactive mode). <br>
Jul 16 18:35:15 hermes ppp[392]: Phase: bundle: Establish <br>
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: closed -&gt; opening
<br>
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: Connected! <br>
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: opening -&gt; dial 
<br>
Jul 16 18:35:15 hermes ppp[392]: Phase: Phone: 538-5649 <br>
Jul 16 18:35:20 hermes ppp[392]: Warning: Chat script failed <br>
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: dial -&gt; hangup <br>
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Disconnected! <br>
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Connect time: 5 secs: 0
octets in, 0 octets out <br>
Jul 16 18:35:20 hermes ppp[392]: Phase:&nbsp; total 0 bytes/sec, peak 0
bytes/sec on Sun Jul 16 18:35:20 2000 <br>
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: hangup -&gt; opening
<br>
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Enter pause (3) for
redialing. <br>
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: Redial timer expired.
<br>
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: Connected! <br>
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: opening -&gt; dial 
<br>
Jul 16 18:35:23 hermes ppp[392]: Phase: Phone: 538-5649 <br>
Jul 16 18:35:28 hermes ppp[392]: Warning: Chat script failed <br>
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: dial -&gt; hangup <br>
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Disconnected! <br>
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Connect time: 5 secs: 0
octets in, 0 octets out <br>
Jul 16 18:35:28 hermes ppp[392]: Phase:&nbsp; total 0 bytes/sec, peak 0
bytes/sec on Sun Jul 16 18:35:28 2000 <br>
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: hangup -&gt; opening
<br>
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Enter pause (3) for
redialing. <br>
Jul 16 18:35:31 hermes ppp[392]: Phase: Caught signal 2, abort
connection(s) <br>
Jul 16 18:35:31 hermes ppp[392]: Phase: deflink: Disconnected!<br>
Jul 16 18:35:31 hermes ppp[392]: Phase: deflink: opening -&gt;
closed<br>
Jul 16 18:35:31 hermes ppp[392]: Phase: bundle: Dead <br>
<br>
</font><font size=3>***<br>
When I run ppp I get &quot;</font><font face="Courier New, Courier">Chat
script
failed</font><font face="Courier New, Courier" size=3>&quot;.&nbsp;
I<br>
</font>I can enter terminal mode and take the model off hook, but I don't
get a dial tone.&nbsp; I get a connected message, but no login prompt and
&quot;ppp&quot; never changes to reflect its status.&nbsp; If I type
atv1, I still get nothing in terms of volume.&nbsp; So I went into the
FAQs on FreeBSD.org.&nbsp; I added the following to my remote file<br>
<br>
# Generic entry<br>
tip115200|Dial any phone number at 115200 bps:\<br>
:dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du:<br>
tip57600|Dial any phone number at 57600 bps:\<br>
:dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du:<br>
<br>
<font size=3>When I type '</font>tip -57600 my_#' <font size=3>f I get an
error (which I didn't copy down), but is something like &quot;unknown
hayes type&quot;<br>
<br>
The modem is an external Supra Express 57600.&nbsp; When I connect it to
my Win98 box it dials fine.<br>
<br>
First off, do the entries in ppp.conf have a specific order?&nbsp; Should
I use cu instead of tip in my remote file?&nbsp; Do I have to make
cuaa0?&nbsp; If so where do I go to get the source (which CD in the 4 box
FreeBSD set).<br>
<br>
Any other thoughts/suggestions?<br>
<br>
Ben <br>
</font><br>

<br>
Grays Harbor Paper, L.P.<br>
801 23rd Street<br>
Hoquiam, Washington&nbsp; 98550<br>
360.538.5713 (direct)<br>
360.538.5716 (fax)<br>
<br>
contact: Ben Hohman<br>
<hr>
I have a PGP public key (key ID 0x6F13E812).&nbsp; For more info
<a href="http://www.pgp.com/" eudora="autourl">http://www.pgp.com</a><br>;
</html>

--=====================_244416161==_.ALT--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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