From owner-FreeBSD-users-jp@jp.freebsd.org  Sun Apr  5 01:41:23 1998
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) id BAA07572
	Sun, 5 Apr 1998 01:41:23 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) with ESMTP id BAA07565
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 5 Apr 1998 01:41:22 +0900 (JST)
Received: from ss.iij4u.or.jp (root@ss.iij4u.or.jp [210.130.0.44])
	by mfo01.iij.ad.jp (8.8.8/MFO1.1) with ESMTP id BAA20065
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 5 Apr 1998 01:41:21 +0900 (JST)
Received: from ss.iij4u.or.jp (h077.p110.iij4u.or.jp [210.130.110.77])
	by ss.iij4u.or.jp (8.8.8+2.2IIJ/4U1.1) with ESMTP id BAA18829
	for <FreeBSD-users-jp@jp.freebsd.org>; Sun, 5 Apr 1998 01:41:20 +0900 (JST)
Message-ID: <35266313.F59FADC9@ss.iij4u.or.jp>
Date: Sun, 05 Apr 1998 01:42:59 +0900
From: masu <masu@ss.iij4u.or.jp>
X-Mailer: Mozilla 4.04 [ja] (Win95; I)
MIME-Version: 1.0
To: "FreeBSD-users-jp@jp.freebsd.org" <FreeBSD-users-jp@jp.freebsd.org>
Content-Type: text/plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: FreeBSD-users-jp 26867
Subject: [FreeBSD-users-jp 26867] PPP Dialin Server
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$BA}?9$H?=$7$^$9!#(B
FreeBSD2.2.5$B$G(BPPP Dialin Server$B$r$7$h$&$H;n$_$F$^$9$,$&$^$/$$$-$^$;$s!#(B
$B3'MM$N$*CN7C$r$*<Z$j$7$?$$$H;W$$$^$9!#(B

$BL\E*!'(BFreeBSD2.2.5$B$N(Bpppd$B!JB?J,(B2.2.0$B$+$J!)!K$r;HMQ$7!"(BWindows95$B%/%i%$%"%s(B
$B%H$+$i(B
        pap$B$GG'>Z$r$7$F<+Bp#L#A#N$K@\B3$9$k!#(B

$B@\B3?^!'(B
                              Internet
                                  |
                           +---------+
                           | RT 100i    |
                           +---------+
                                  ||
      =========+==================+========
                   ||                           ||
     +------------------+    +----------+
     | FreeBSD2.2.5 IBMPC|     | DNS Server|
     +------------------+    +----------+
           | tty0        | tty1               ||
      +------+  +-------+       =====+=========
      |modemA|  |modemB|                   ||
      +------+  +-------+               
           |              |                      
      +----------------+
      |  Yamaha RT80i    |
      +----------------+
                  |
          $B#I#N#S8x=02s@~(B
                      |
                 Windows95

$B8=>]!'(B/var/log/messages$B$K2<$NMM$J%m%0$,=P$F(BPPP$B$G@\B3$G$-$^$;$s!#(B
--/var/log/messages--------------
Apr  5 09:32:55 cat init: getty repeating too quickly on port
/dev/ttyd0, sleeping 30 secs
Apr  5 09:33:31 cat init: getty repeating too quickly on port
/dev/ttyd0, sleeping 30 secs
Apr  5 09:34:08 cat init: getty repeating too quickly on port
/dev/ttyd0, sleeping 30 secs
Apr  5 09:34:44 cat init: getty repeating too quickly on port
/dev/ttyd0, sleeping 30 secs
Apr  5 09:36:34 cat last message repeated 3 times
Apr  5 09:46:53 cat last message repeated 17 times
---------------------------------
       /etc/ttys$B$G(BSerial terminals$B$r(B"ttyd0   "/usr/libexec/getty
std.57600"  dialup  on
       $B$K$9$k$H$A$c$s$H%j%b!<%H$+$i@\B3$G$-$^$9!#(B
       $B2?$+K:$l$F$$$k@_Dj$d!"4V0c$C$F$$$k@_Dj$O$"$j$^$9$+!)(B
       $B$I$J$?$+(Bpppd$B$G(BPPP Dialin Server$B$r1?1D$7$F$$$kJ}$$$i$7$c$C$?$i@_Dj(B
$B$r65$($F$/$@$5$$!#(B
       $B0lMM!"(BFreeBSD$B%O%s%I%V%C%/$d%a!<%j%s%0%j%9%H%"!<%+%$%V$G8!:w$7$F0l(B
$BDL$j$?$a$7$^$7$?$,(B
       $BF1$8$h$&$J7k2L!J>e$N%m%0!K$K$J$C$F$7$^$$$^$9!#(B

$B@_Dj%U%!%$%k!'(B
--/etc/ttys------------
# Serial terminals
ttyd0   "/usr/sbin/pppd"         dialup  on
ttyd1   "/usr/sbin/pppd"         dialup  on
ttyd2   "/usr/libexec/getty std.9600"   unknown off secure
ttyd3   "/usr/libexec/getty std.9600"   unknown off secure
----------------------
--/etc/ppp/options-----
netmask 255.255.255.0
proxyarp
name cat
domain prv.ss.iij4u.or.jp
crtscts
modem
57600
+pap
-chap
passive
login
-detach
----------------------
--/etc/ppp/options.ttyd0--
192.168.1.4:192.168.1.30
------------------------
--/etc/ppp/options.ttyd1--
192.168.1.4:192.168.1.31
------------------------
--/etc/ppp/pap-secrets---
hoge	hoge88
------------------------
--/etc/rc.serial-----------
modem() {
        # Modem that supports CTS and perhaps RTS handshaking.

        ci=$1; shift
        co=$1; shift

        for i in $*
        do
                # may depend on modem
                comcontrol /dev/tty$ci$i dtrwait 100 drainwait 180
                # Lock crtscts on.
                # Speed reasonable for V42bis.
                stty </dev/ttyid0 -hupcl -clocal 57600 crtscts
                stty </dev/ttyd0 -hupcl -clocal 57600 crtscts
                stty </dev/ttyi$ci$i crtscts 57600
                stty </dev/ttyl$ci$i crtscts
                stty </dev/cuai$co$i crtscts 57600
                stty </dev/cual$co$i crtscts
        done
}
------------------------
--modemA(Sony SMD-V341M)---
ACTIVE PROFILE:
B0 E1 L1 M0 N1 Q0 T V1 W1 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &Y0
S00:002 S01:000 S02:043 S03:013 S04:010 S05:008 S06:004 S07:050 S08:002
S09:006
S10:014 S11:070 S12:050 S14:010 S16:000 S17:000 S18:000 S21:052 S22:113
S23:062
S25:005 S26:001 S27:009 S28:008 S29:000 S30:000 S31:198 S32:017 S33:019
S36:007
S37:000 S38:020 S39:003 S40:104 S41:195 S46:138 S48:007 S82:128 S86:000
S91:015
S92:015 S95:000 S200:000 S201:058 S202:000 S204:000 
------------------------------
--modemB(HUCOM V.34ES2)-----
B1 E1 L1 M0 N1 Q0 T V1 W0 X4 Y0 &C1 &D0 &G0 &J0 &K3 &Q5 &R1 &S0 &T5 &X0
&Y0
S00:002 S01:000 S02:043 S03:013 S04:010 S05:008 S06:003 S07:060 S08:002
S09:006
S10:060 S11:095 S12:050 S18:000 S25:005 S26:001 S36:007 S37:000 S38:020
S44:020
S46:138 S48:007 S95:000 
-------------------------------
$B$=$NB>$N%m%0!'(B
--/var/log/ppp.log---------------
Apr  5 10:37:12 cat ppp[707]: Phase: Using interface: tun0 
Apr  5 10:37:13 cat ppp[707]: Phase: PPP Started. 
Apr  5 10:38:07 cat ppp[707]: Phase: PPP Terminated (normal). 
-------------------------------

-- 
--------------------------------------
Masumori Kazunobu
E-mail:masu@ss.iij4u.or.jp
 WWW  :http://www.ss.iij4u.or.jp/~masu
