From owner-FreeBSD-net-jp@jp.FreeBSD.org Wed Apr 23 10:40:09 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h3N1e9j92962;
	Wed, 23 Apr 2003 10:40:09 +0900 (JST)
	(envelope-from owner-FreeBSD-net-jp@jp.FreeBSD.org)
Received: from a.mx.career-link.co.jp (ns.aruiru.com [61.121.211.114])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id h3N1e8Y92951
	for <FreeBSD-net-jp@jp.FreeBSD.org>; Wed, 23 Apr 2003 10:40:08 +0900 (JST)
	(envelope-from shinohara@career-link.co.jp)
Received: (qmail 39869 invoked from network); 23 Apr 2003 01:50:03 -0000
Received: from unknown (HELO shinohara) (shinohara@career-link.co.jp@192.168.1.17)
  by 0 with SMTP; 23 Apr 2003 01:50:03 -0000
Message-ID: <007501c30938$e0305bb0$1101a8c0@int.careerlink.co.jp>
From: "Takashi Shinohara" <shinohara@career-link.co.jp>
To: <FreeBSD-net-jp@jp.FreeBSD.org>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Reply-To: FreeBSD-net-jp@jp.FreeBSD.org
Precedence: list
Date: Wed, 23 Apr 2003 10:37:17 +0900
X-Sequence: FreeBSD-net-jp 3914
Subject: [FreeBSD-net-jp 3914] FreeBSD4.7r =?ISO-2022-JP?B?GyRCJEcbKEI=?=
 =?ISO-2022-JP?B?GyRCJE4bKEI=?= DHCP
 =?ISO-2022-JP?B?GyRCMlRGLyRLJEQkJCRGGyhC?= 
Sender: owner-FreeBSD-net-jp@jp.FreeBSD.org
X-Originator: shinohara@career-link.co.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030405

$B$*@$OC$K$J$C$F$*$j$^$9!#(B
$BJI$K$V$D$+$C$F@h$K?J$a$J$/$J$C$F$7$^$$$^$7$?!&!&!&(B

$B8=:_!"(B192.168.1.* LAN$B$NCf$K(B192.168.3.* LAN$B$r9=C[$7$F$$$^$9!#(B
$BFs$D$N(BLAN$B$N4V$K$O(BUNIX$B%5!<%P(B(FreeBSD4.7)$B$r@_CV$7!"$3$l$r%2!<%H%&%'%$$H$7$F2T(B
$BF/$5$;$h$&$H;W$C$F$*$j$^$9!#(B
$B8=:_$O(B192.168.3.* LAN$BFb$K$O%/%i%$%"%s%H#P#C$O$"$j$^$;$s!#(BFreeBSD$B$N(BUNIX$B%2!<%H(B
$B%&%'%$$N$_$G$9!#(B

192.168.1.* LAN$BFb$K$O(BWin2000$B%5!<%P$,2TF/$7$F$*$j(B(192.168.1.2)$B!"%I%a%$%s$H$7(B
$B$F(B"int.hoge.co.jp"$B$,B8:_$7$^$9!#$^$?$3$N(BWin2000$B%5!<%P$OFbIt(BDNS$B!&(BWINS$B%5!<%P$r(B
$B7s$M$F$$$^$9!#B>$K%$%s%?!<%M%C%H$X$N%2!<%H%&%'%$%5!<%P(B(192.168.1.254)$B$,@_CV(B
$B$7$F$"$j!"$3$l$,(BDNS$B!&(BDHCP$B!&(BFirewall$B$r$+$M$F$$$^$9!#(B

$B$=$3$G(BUNIX$B%2!<%H%&%'%$$K;d$J$j$K?'!9$H@_Dj$r$7$^$7$?!#(B
$B$=$N@_Dj$r0J2<$K5-$7$^$9!#(B

</etc/rc.conf>---------------------
hostname="kob.int.hoge.co.jp"
network_interfaces="em0 fxp0 lo0"
ifconfig_em0="inet 192.168.3.254 netmask 255.255.255.0"
ifconfig_fxp0="inet 192.168.1.5 netmask 255.255.255.0"
defaultrouter="192.168.1.254"
gateway_enable="YES"

</etc/host.conf>--------------------
# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis

</etc/hosts>------------------------
127.0.0.1 localhost localhost.localdomain
192.168.3.254 kob kob.int.hoge.co.jp

</etc/resoiv.conf>--------------------
search int.hoge.co.jp
nameserver 192.168.1.2
nameserver 192.168.2.1
nameserver 192.168.1.254
nameserver 192.168.1.252

$B0J>e$N@_Dj$G!"(BUNIX$B%5!<%P$h$j(B192.168.1.* LAN$BFb$K(Bping$B$O$H$S!"L>A0$N2r7h$d(B
$B%$%s%?!<%M%C%H$N;2>H$b$G$-$^$7$?!#(B
$B$?$@!"(B192.168.1.* LAN$BFb$+$i(BUNIX$B%2!<%H%&%'%$(B(192.168.3.254)$B$K(Bping$B$O$H$S$^$9(B
$B$,!"(B
$BL>A0$N2r7h$O$G$-$^$;$s$G$7$?!#(B

$B$=$3$G(B192.168.1.3.*$B$N(BLAN$B$O$H$j$"$($:=PMh$?$H;W$$!"(B192.168.3.*$B$N(BUNIX$B%2!<%H(B
$B%&%'%$$K(B
192.168.3.*LAN$BFb$N$_$N(BDHCP$B5!G=$r$b$?$;$h$&$H;W$$!"(Bisc-dhcp$B$r$$$l$^$7$?!#(B

$B$=$3$G(BHCP$B$N2TF/%F%9%H$r$H;W$$!"(B192.168.3.* LAN$BFb$K%/%i%$%"%s%H#P#C$r#1Bf(B
$B@_CV$7$^$7$?$H$3$m!&!&!&!!%I%a%$%s$K;22C$G$-$J$$$I$3$m$+!"(BDHCP
$B$K$h$k(BIP$B$9$i?6$i$l$J$$$H$$$&;vBV$K4Y$j$^$7$?!#(B

$B;29M$N$?$a!"(Bisc-dhcp$B$N@_Dj$r=q$+$;$FD:$-$^$9!#(B
</usr/local/etc/dhcpd.conf>----------------------
option domain-name "int.hoge.co.jp";
option domain-name-servers
192.168.1.2,192.168.2.1,192.168.1.254,192.168.2.254;
option netbios-name-servers 192.168.1.2,192.168.1.3,192.168.2.1;

ddns-update-style none;

log-facility local7;

max-lease-time 43200;
default-lease-time 43200;

subnet 192.168.4.0 netmask 255.255.255.0 {
range 192.168.3.10 192.168.3.110;
option routers 192.168.3.254;
}

</usr/local/etc/isc-dhcpd.conf>--------------------
dhcpd_ifaces=em0

$B$H$$$C$?$H$3$m$G$9!#(B


$B$3$N(BDHCP$B$,?6$i$l$J$$8=>]$r2r7h$7!"$^$?(B192.168.3.* LAN$B$h$j(B"int.hoge.co.jp"$B%I(B
$B%a%$%s$K;22C$9$k$K$O$I$&$7$?$i$h$m$7$$$N$G$7$g$&$+!)(B

$BD9!9$H?=$7Lu$"$j$^$;$s$,!"$J$K$+;29MDxEY$G$b4r$7$$$N$G!"$I$J$?$+$465<xD:$1$J(B
$B$$$G$7$g$&$+!#(B
$B59$7$/$*4j$$CW$7$^$9!#(B


