Subject: Need your help to config 2 pppd and IPNAT
To: None <netbsd-users@netbsd.org>
From: Chan Yiu Wah <c5666305@hkstar.com>
List: netbsd-users
Date: 07/20/1999 21:44:11
Hello,

I am working with a project which will support two dialup lines connected
to ISP.  The machines in the share the resources provided by these two 
dialup lines like www browsing.  I am lack of experience in do it.  I
can only config the IPNAT and run the pppd through the kppp.  However, I
need ppp scripts to setup two pppds.  Can anyone help.  I also tried the
examples provided in the www.netbsd.org and they are as followings

======= /etc/ppp/peers/myisp =======
# Example pppd options
# Specific for myisp
/dev/tty01
0:0
connect '/usr/sbin/chat -v -f /etc/ppp/peers/myisp.chat'
defaultroute
persist
ipparam myisp
asyncmap 0
======= /etc/ppp/peers/myisp =======

======= /etc/ppp/options.tty01 =======
# Example pppd options
# Specific for ttyname
lock
crtscts
115200
modem
======= /etc/ppp/options.tty01 =======

======= /etc/ppp/peers/myisp.chat =======
# Example chat file
# Specific for myisp
ABORT BUSY ABORT 'NO CARRIER' ""
\da\ptz0 OK
\da\ptdt30020000 CONNECT
======= /etc/ppp/peers/myisp.chat =======

====== /var/log/messages =======
Jul 20 20:57:09 pc97 pppd[13621]: Serial connection established.
Jul 20 20:57:10 pc97 pppd[13621]: Using interface ppp0
Jul 20 20:57:10 pc97 pppd[13621]: Connect: ppp0 <--> /dev/tty01
Jul 20 20:57:12 pc97 pppd[13621]: Modem hangup
Jul 20 20:57:12 pc97 pppd[13621]: Connection terminated.
Jul 20 20:57:45 pc97 chat[13629]: abort on (BUSY)
Jul 20 20:57:45 pc97 chat[13629]: abort on (NO CARRIER)
Jul 20 20:57:45 pc97 chat[13629]: send (\da\ptz0^M)
Jul 20 20:57:46 pc97 chat[13629]: expect (OK)
Jul 20 20:57:46 pc97 chat[13629]: atz0^M^M
Jul 20 20:57:46 pc97 chat[13629]: OK
Jul 20 20:57:46 pc97 chat[13629]:  -- got it
Jul 20 20:57:46 pc97 chat[13629]: send (\da\ptdt30020000^M)
Jul 20 20:57:48 pc97 chat[13629]: expect (CONNECT)
Jul 20 20:57:48 pc97 chat[13629]: ^M
Jul 20 20:58:06 pc97 chat[13629]: atdt30020000^M^M
Jul 20 20:58:06 pc97 chat[13629]: CONNECT
Jul 20 20:58:06 pc97 chat[13629]:  -- got it
Jul 20 20:58:06 pc97 pppd[13621]: Serial connection established.
Jul 20 20:58:07 pc97 pppd[13621]: Using interface ppp0
Jul 20 20:58:07 pc97 pppd[13621]: Connect: ppp0 <--> /dev/tty01
Jul 20 20:58:09 pc97 pppd[13621]: Modem hangup
Jul 20 20:58:09 pc97 pppd[13621]: Connection terminated.                       
====== /var/log/messages =======

The script keep on running wihtout stopping.  Please help.  Thanks.

Clarence