From owner-FreeBSD-users-jp@jp.freebsd.org  Tue Jun 16 18:52:05 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) id SAA04920;
	Tue, 16 Jun 1998 18:52:05 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from soda3.bekkoame.or.jp ([202.231.192.83])
	by jaz.jp.freebsd.org (8.8.8+3.0Wbeta13/8.7.3) with ESMTP id SAA04915
	for <FreeBSD-users-jp@jp.freebsd.org>; Tue, 16 Jun 1998 18:52:04 +0900 (JST)
	(envelope-from zenkato@pis.bekkoame.or.jp)
Received: from apricot.cable-net.com (yhm0089.bekkoame.or.jp [202.251.248.89])
	by soda3.bekkoame.or.jp (8.8.8/3.6W) with SMTP id SAA01459
	for <FreeBSD-users-jp@jp.freebsd.org>; Tue, 16 Jun 1998 18:51:55 +0900 (JST)
Message-Id: <199806160951.SAA01459@soda3.bekkoame.or.jp>
X-Sender: zenkato@pis.bekkoame.or.jp (Unverified)
X-Mailer: Windows Eudora Pro Version 2.2-Jr1 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
Date: Tue, 16 Jun 1998 18:48:22 +0900
To: FreeBSD-users-jp@jp.freebsd.org
From: Zen Kato <zenkato@pis.bekkoame.or.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: FreeBSD-users-jp 29592
Subject: [FreeBSD-users-jp 29592] routing and iij-ppp client
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org


$B0J2<$N$h$&$J(Jone-way$B$N(Jrouting$B4D6-$N$b$H$G%G!<%?$NN.$l$r(JE->C->D->
A->B->C->E $B$H$7$?$$$N$G$9$,!"(J(C)$B$N(Jiij-ppp client(v1.2+nat-971228.patch)
$B$G$N(Jrouting $B@)8f$,$&$^$/$$$-$^$;$s!#(J

(E)win95$B$h$j(Jping A$B$r$9$k$H(JE->C->D->A->B->C$B$^$G(Jpacket$B$,Ht$s$G$$$^$9$,(J
E$B$^$G5"$C$F$-$^$;$s!#$I$N$h$&$K$9$l$P$$$$$+$*65$(2<$5$$!#$h$m$7$/(J
$B$*4j$$CW$7$^$9!#(J

$B>0!"#A$G5"O)$r(Jroute change 192.168.200.0 192.168.100.26$B$H$9$l$P!"(J
E$B$+$i(J ping A $B$9$k$H(J E->C->D->A->D->C->E $B$H$J$j$^$9!#(J


             ISDN TA
                |     iij-ppp client
             ---+---                             A,C,D:FreeBSD2.2.5
          .29|     |.29                          B:FreeBSD2.2.1
         +---+  A  +---+                         E:win95
         |   |     |   |
         |   -------   | 192.168.100.0
    --+--+---------  --+-----+-----
      | 192.168.101.0        |
      |.30                   |.26  mgetty+sendfax-1.0.0
   ---+--                 ---+---- ppp(980424) server
   |  B |                 |      |192.168.200.1 
   |    |                 |  D   +----Modem
   ---+--                 |      |    |
      |.30                --------    |
      |    192.168.200.0              |
    --+---+---                     iij-ppp
          |          iij-ppp client   |
          |              --------     | 
          |              |      |     |
          +--------------+  C   +-----Modem
                      .27|      |192.168.200.27
                         ---+----
                            |.27
                            |      192.168.250.0
                 ----+------+-------------------
                     |
                     |.28
                 ----+----
                 |       | win95
                 |   E   |
                 |       |
                 ---------



(A)iij-ppp client$B$N(J/etc/ppp/ ppp.conf            
# ppp.conf for client
default:
 set device /dev/cuaa0
 set speed 115200
 set taddr 192.168.200.0/24
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATQ0V1X3$N1=1
OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set redial 3 7
 accept pap
 deny chap
 set openmode active
#
isp:
 set phone xxxxxxxxxx
 set ifaddr 0 0
 set authname yyyyyyyyyy
 set authkey zzzzzzzzzz
 set timeout 0

A# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
127.0.0.1          127.0.0.1          UH          0        0       lo0
192.168.100        link#1             UC          0        0 
192.168.100.26     0:80:c8:8a:73:dc   UHLW        1      133       ed0    320
192.168.100.29     0:80:bc:3:1f:ed    UHLW        0       64       lo0
192.168.100.255    ff:ff:ff:ff:ff:ff  UHLWb       3      212       ed0
192.168.101        link#2             UC          0        0 
192.168.101.30     link#2             UHLW        1        0 
192.168.101.255    ff:ff:ff:ff:ff:ff  UHLWb       0       91       ed1
192.168.200        192.168.101.30     UGSc        0     1253       ed1


(D)mgetty+sendfax-1.0.0 iij-ppp server$B$N(J/etc/ppp/ppp.conf
# ppp.conf.server mgetty  ----ppp.conf---
default:
 deny lqr
 disable lqr
 set log phase lcp chat connect carrier ipcp ccp tun command
 set timeout 0
 enable msext
 set ns 192.168.100.26 192.168.100.29
papcuaa0:
 enable pap
 enable proxy
 set ifaddr 192.168.200.1 192.168.200.27

(D)$B$N(J/etc/rc.conf ($BH4?h!K(J
### Network routing options: ###
defaultrouter="192.168.100.29"          # Set to default gateway (or NO).
static_routes=""                # Set to static route list (or leave empty).
gateway_enable="YES"            # Set to YES if this host will be a gateway.
router_enable="YES"             # Set to YES to enable a routing daemon.
router="routed"                 # Name of routing daemon to use if enabled.
router_flags="-q"               # Flags for routing daemon.
#router_flags=""
mrouted_enable="NO"             # Do multicast routing (see /etc/mrouted.conf).
ipxgateway_enable="NO"          # Set to YES to enable IPX routing.
ipxrouted_enable="NO"           # Set to YES to run the IPX routing daemon.
ipxrouted_flags=""              # Flags for IPX routing daemon.
arpproxy_all="YES"                      # obsolete kernel option ARP_PROXY_ALL e
quiv.

(D)$B$N(Jrouting table
% netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            192.168.100.29     UGSc        1       22       ed0
127.0.0.1          127.0.0.1          UH          0        0       lo0
192.168.100        link#5             UC          0        0 
192.168.100.29     0:80:bc:3:1f:ed    UHLW        2      153       ed0    543
192.168.200        192.168.200.27     UGc         0        0      tun0
192.168.200.1      127.0.0.1          UH          0        0       lo0
192.168.200.27     192.168.200.1      UH          2        0      tun0
192.168.250        192.168.200.27     UGc         0        0      tun0

(C)iij-ppp(v1.2) + nat-971228patch
#ppp.conf.client to ppp-server  ---ppp.conf----
default:
#com1 28.8kbps modem
 set device /dev/cuaa0
 set speed 38400
 set taddr 192.168.250.0/24
#modem initialization
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK
\\dATDT\\T TIMEOUT 40 CONNECT"
 set redial 3 7
 deny lqr
 disable lqr
 accept pap
 deny chap
 set openmode active
libretto:
 set phone xxxxxxxxxx
 set ifaddr 0 0
 set authname yyyyyyyyy
 set authkey zzzzzzz
 set timeout 0

(C)$B$N(J/etc/rc.conf($BH4?h!K(J
### Network routing options: ###
defaultrouter="NO"              # Set to default gateway (or NO).
static_routes=""                # Set to static route list (or leave empty).
gateway_enable="YES"            # Set to YES if this host will be a gateway.
router_enable="YES"             # Set to YES to enable a routing daemon.
#router="routed -P no_rdisc"                    # Name of routing daemon to use 
if enabled.
router="routed"
router_flags=""         # Flags for routing daemon.
mrouted_enable="NO"             # Do multicast routing (see /etc/mrouted.conf).
ipxgateway_enable="NO"          # Set to YES to enable IPX routing.
ipxrouted_enable="NO"           # Set to YES to run the IPX routing daemon.
ipxrouted_flags=""              # Flags for IPX routing daemon.
arpproxy_all="YES"                      # obsolete kernel option ARP_PROXY_ALL e
quiv.


(C)$B$N(Jrouting tables
% netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            192.168.200.1      UGSc        5       54      tun0
127.0.0.1          127.0.0.1          UH          0        0       lo0
192.168.200        link#5             UC          0        0 
192.168.200.1      192.168.200.27     UH          5       10      tun0
192.168.200.27     127.0.0.1          UH          0      192       lo0
192.168.200.30     0:60:97:97:31:7e   UHLW        0        0       ep0    919
192.168.250        link#6             UC          0        0 

$B;29M(J:
(C)$B$h$j(J
% ping -R 192.168.100.29
PING 192.168.100.29 (192.168.100.29): 56 data bytes
64 bytes from 192.168.100.29: icmp_seq=0 ttl=254 time=72.189 ms
RR:     192.168.100.26
        192.168.100.29
        192.168.200.30
        192.168.200.27
64 bytes from 192.168.100.29: icmp_seq=1 ttl=254 time=72.284 ms (same route)
64 bytes from 192.168.100.29: icmp_seq=2 ttl=254 time=72.162 ms (same route)
^C

$B0J>e(J

