先日 Linux サーバに DHCP サーバを稼動させる設定を行ったわけだが
Logwatch で以下のような警告が出力されている。
If this DHCP server is authoritative for that subnet,: 1 Time(s)
WARNING: Host declarations are global. They are not limited to the scope you declared them in.: 2 Time(s)
of the dhcpd.conf file.: 1 Time(s)
please write an `authoritative;' directive either in the: 1 Time(s)
subnet declaration - for example, write it at the top: 1 Time(s)
subnet declaration or in some scope that encloses the: 1 Time(s)
/etc/dhcpd.conf に以下の赤字部分を追加
ddns-update-style interim;
ignore client-updates;
not authoritative;
それともう一点
dhcpd -f -t で設定ファイルチェックすると以下のような警告が…。
[root@GALAXY2 etc]# dhcpd -f -d
Internet Systems Consortium DHCP Server V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
[root@GALAXY2 etc]#
○ 修正前
host cl_01 {
hardware ethernet 00:1F:**:**:**:**;
fixed-address 192.168.1.***;
}
} <-- これがまずい
○ 修正後
} <-- ここに移動
host cl_01 {
hardware ethernet 00:1F:**:**:**:**;
fixed-address 192.168.1.***;
}