Vine Seed(5)DHCP サーバ


ハックキットを使ってホームサーバを構築しよう DHCP サーバを試してみる。

dhcpd.conf の設定

普段、内向きサーバの LinkStation で使っているものをコピーしてきた。

dhcpd の起動

[root@hackkit root]# /etc/rc.d/init.d/dhcpd start
dhcpdを起動中: Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

** You must add a ddns-update-style statement to /etc/dhcpd.conf.
   To get the same behaviour as in 3.0b2pl11 and previous
   versions, add a line that says "ddns-update-style ad-hoc;"
   Please read the dhcpd.conf manual page for more information. **

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
                                                           [失敗]
あちゃー。dhcpd.conf に互換性がないみたい。

上記エラーメッセージでは「ddns-update-style を指定しろ」と いわれているが、 そもそも DNS サーバへの通知はするつもりはないので、 スタイルの指定ではなく、通知をしないようにしたい。
マニュアルによれば、ddns-updates がその指定で、 The ddns-updates parameter is on by default. とのこと。

デフォルト(お勧め)にしたがって、 DNS サーバへの通知をする方法に変更してもよいのだが、 とりあえず、dhcpd.conf に

ddns-updates off;
を追加して再度起動してみた。
[root@hackkit root]# /etc/rc.d/init.d/dhcpd start
dhcpdを起動中: Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

** You must add a ddns-update-style statement to /etc/dhcpd.conf.
   To get the same behaviour as in 3.0b2pl11 and previous
   versions, add a line that says "ddns-update-style ad-hoc;"
   Please read the dhcpd.conf manual page for more information. **

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
                                                           [失敗]
[root@hackkit root]#
おんなじ。

仕方がないので、

ddns-update-style none;
を追加して起動すると、、、
[root@hackkit root]# /etc/rc.d/init.d/dhcpd start
dhcpdを起動中: Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
socket: Protocol not available - make sure
CONFIG_PACKET (Packet socket) and CONFIG_FILTER
(Socket Filtering) are enabled in your kernel
configuration!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
                                                           [失敗]
[root@hackkit root]#
なんだか、カーネルまで悪いといわれた。
玄箱標準のカーネルで試してみる。

と思っていたら、、、
使っていた HDD から異音がし始め、Maxtor 91024U3 が死んでしまった。
あーあ


ハックの記録 → カーネル 2.4.17 で動かない Vine Seed

Copyright (C) 2004 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市