From owner-FreeBSD-net-jp@jp.freebsd.org  Tue Jun  5 09:40:18 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id JAA10500;
	Tue, 5 Jun 2001 09:40:18 +0900 (JST)
	(envelope-from owner-FreeBSD-net-jp@jp.FreeBSD.org)
Received: from maruma.net.dhis.org (cj3081025-a.ntkyo1.kn.home.ne.jp [210.20.138.39])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with SMTP id JAA10490
	for <FreeBSD-net-jp@jp.freebsd.org>; Tue, 5 Jun 2001 09:40:17 +0900 (JST)
	(envelope-from wada-ma@jcom.home.ne.jp)
Received: (qmail 17283 invoked from network); 5 Jun 2001 09:40:15 +0900
Received: from localhost (HELO maruma.dhis.org) (127.0.0.1)
  by localhost with SMTP; 5 Jun 2001 09:40:15 +0900
Date: Tue, 5 Jun 2001 09:40:14 +0900
From: Masashi WADA <wada-ma@jcom.home.ne.jp>
To: FreeBSD-net-jp@jp.freebsd.org
Message-Id: <20010605094014.5b62ebe3.wada-ma@jcom.home.ne.jp>
In-Reply-To: <20010603094643.1d7019d4.wada-ma@jcom.home.ne.jp>
References: <200105182104.f4IL4GJ12593@pelsia.netmove.co.jp>
	<200106012258.f51Mw2M23899@pelsia.netmove.co.jp>
	<20010603094643.1d7019d4.wada-ma@jcom.home.ne.jp>
X-Mailer: Sylpheed version 0.4.62 (GTK+ 1.2.10; i386--freebsd4.3)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
Reply-To: FreeBSD-net-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: FreeBSD-net-jp 3134
Subject: [FreeBSD-net-jp 3134] Re: Unnumbered routing (Re: VPN Useing Vtun)
Errors-To: owner-FreeBSD-net-jp@jp.freebsd.org
Sender: owner-FreeBSD-net-jp@jp.freebsd.org
X-Originator: wada-ma@jcom.home.ne.jp

$BOBED(B@jcom$B$G$9!#(B

$B$=$N8e!"6=L#$,$"$C$?$N$G<B:]$K(Bvtun$B$r;H$C$F$_$^$7$?!#(B

tun$B%G%P%$%9$K%"%I%l%9$rIU$1$J$$$N$O!"%$!<%5$K%0%m!<%P%k%"%I%l%9$,(B
$BIU$$$F$$$F!"$=$l$H0c$&%W%i%$%Y!<%H%"%I%l%9$r(Btun$B%G%P%$%9$K$D$1$k$N(B
$B$,7y$@$J$!!"LLE]$@$J$!!#(B $B$H$$$&M}M3$@$H;W$C$F!"$8$c$"%$!<%5$HF1$8(B
$B%"%I%l%9$r(Btun$B$KIU$1$l$P$$$$$8$c$J$$$N$+$H9M$($F$d$C$F$_$^$7$?!#(B

$B7k2L$ONI9%$G!";W$$DL$j$KF0$$$F$$$^$9!#(B
$B$3$l$@$H!"(Btun$B$KIU$1$?%W%i%$%Y!<%H%"%I%l%9$r9MN8$7$?%k!<%F%#%s%0$r(B
$B9M$($kI,MW$,$J$/$F!"3Z$G$9$M!#(B

$B0J2<$K%5!<%PB&$H%/%i%$%"%s%HB&$N%^%7%s$G(B ifconfig -a $B$H(B netstat -nr
$B$7$?7k2L$r:\$;$F$*$-$^$9!#8f;29M$^$G!#(B
$B$"$H!"EvA3$N;v$J$,$i!"$I$A$i$N%^%7%s$b(B ipforward=1 $B$K$7$F$^$9!#(B

$B%5!<%PB&(B FreeBSD 4.3-RELEASE
% ifconfig -a
	.
	.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet 127.0.0.1 netmask 0xff000000 
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet xxx.xx.xxx.39 netmask 0xffffffc0 broadcast xxx.xx.xxx.63
	ether 00:80:19:2d:3a:7a 
tun0: flags=8151<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
	inet xxx.xx.xxx.39 --> yyy.yyy.yyy.48 netmask 0xffffffff 
	Opened by PID 16982

% netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            xxx.xx.xxx.1       UGSc       20      237      ed1
127.0.0.1          127.0.0.1          UH          4   134470      lo0
yyy.yyy.yyy/24     yyy.yyy.yyy.48     UGSc        0        0     tun0
yyy.yyy.yyy.48     xxx.xx.xxx.39      UH          1        0     tun0
xxx.xx.xxx/26      link#10            UC          0        0      ed1 =>

$B%/%i%$%"%s%HB&(B Debian/GNU Linux on PPC
% ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:50:E4:45:0B:69  
          inet addr:yyy.yyy.yyy.48  Bcast:yyy.yyy.yyy.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2317793 errors:35 dropped:0 overruns:0 frame:0
          TX packets:1065353 errors:71 dropped:0 overruns:0 carrier:0
          collisions:6 txqueuelen:100 
          Interrupt:42 Base address:0x9000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:231010 errors:0 dropped:0 overruns:0 frame:0
          TX packets:231010 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

tun0      Link encap:Point-to-Point Protocol  
          inet addr:yyy.yyy.yyy.48  P-t-P:xxx.xx.xxx.39  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:75 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

% netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
xxx.xx.xxx.39   0.0.0.0         255.255.255.255 UH        0 0          0 tun0
xxx.xx.xxx.0    xxx.xx.xxx.39   255.255.255.192 UG        0 0          0 tun0
yyy.yyy.yyy.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
0.0.0.0         xxx.xx.xxx.39   0.0.0.0         UG        0 0          0 tun0

$B"#""""""(B - - - - - - - - - - - - - - - - - - - $B""""""(B
   Masashi WADA / $BOBED@5;V(B <wada-ma@jcom.home.ne.jp>
$B""""""(B - - - - - - - - - - - - - - - - - - - $B"""""""#(B

