ハックキット 2.0 もどき(4)DHCP サーバ


DHCP サーバも 「そのまま」と済ませようとしたが、、、、、

普段内向きサーバで使っている /etc/dhcpd.conf をコピーしてきて dhcpd を起動すると、

[root@hackkit etc]# /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 etc]#
となって起動してこなかった。

dhcpd.conf のマニュアルを見ると、

      The ddns-update-style parameter

          ddns-update-style style;

          The  style parameter must be one of ad-hoc, interim or none.  The ddns-update-style statement is only
          meaningful in the outer scope - it is evaluated once after reading the dhcpd.conf file,  rather  than
          each  time  a client is assigned an IP address, so there is no way to use different DNS update styles
          for different clients.
との事。/etc/dhcpd.conf に
ddns-update-style none;
を追加して再起動。
[root@hackkit etc]# !?start
/etc/rc.d/init.d/dhcpd start
dhcpdを起動中:                                             [  OK  ]
[root@hackkit etc]#
最初、
subnet 192.168.1.0 netmask 255.255.255.0 {
より下に ddns-update-style none; を書いてしまっていたが、 これではだめ。

DHCP クライアントを起動すると、/var/log/messages に

Mar 15 02:38:40 hackkit dhcpd: DHCPREQUEST for 192.168.1.23 from 08:00:1f:b1:xx:yy via eth0
Mar 13 02:38:40 hackkit dhcpd: DHCPACK on 192.168.1.23 to 08:00:1f:b1:xx:yy via eth0
が残る。(一部伏字)
OK


ハックキット 2.0 もどき(3)時刻同期
ハックの記録
LinkStation/玄箱 をハックしよう

ハックキット 2.0 もどき(5)Windows 向けファイルサーバ

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