はじめての自宅サーバ構築 - Fedora/CentOS -
Last Update 2018/05/30
[ 更新履歴 ] [ サイト マップ ] [ 質問掲示板 ] [ 雑談掲示板 ] [ リンク ]
トップ >> 質問掲示板

 このスレッドはクローズされています。記事の閲覧のみとなります。

 DHCPサーバの起動に失敗します
日時: 2007/06/14 19:08
名前: アニエス


①不明点・障害内容:DHCPサーバの起動に失敗します

②ログの有無   :有(?) 内容は、以下の通り
  (有:その内容):

Jun 14 18:56:07 berettam84f dhcpd: Internet Systems Consortium DHCP Server V3.0.5-RedHat
Jun 14 18:56:07 berettam84f dhcpd: Copyright 2004-2006 Internet Systems Consortium.
Jun 14 18:56:07 berettam84f dhcpd: All rights reserved.
Jun 14 18:56:07 berettam84f dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Jun 14 18:56:07 berettam84f dhcpd: /etc/dhcpd.conf line 30: expecting a parameter or declaration
Jun 14 18:56:07 berettam84f dhcpd: #  range dynamic-bootp 192.168.0.128 192.168.0.254;
Jun 14 18:56:07 berettam84f dhcpd:                        ^
Jun 14 18:56:07 berettam84f dhcpd: Configuration file errors encountered -- exiting
Jun 14 18:56:07 berettam84f dhcpd:
Jun 14 18:56:07 berettam84f dhcpd: If you did not get this software from ftp.isc.org, please
Jun 14 18:56:07 berettam84f dhcpd: get the latest from ftp.isc.org and install that before
Jun 14 18:56:07 berettam84f dhcpd: requesting help.
Jun 14 18:56:07 berettam84f dhcpd:
Jun 14 18:56:07 berettam84f dhcpd: If you did get this software from ftp.isc.org and have not
Jun 14 18:56:07 berettam84f dhcpd: yet read the README, please read it before requesting help.
Jun 14 18:56:07 berettam84f dhcpd: If you intend to request help from the dhcp-server@isc.org
Jun 14 18:56:07 berettam84f dhcpd: mailing list, please read the section on the README about
Jun 14 18:56:07 berettam84f dhcpd: submitting bug reports and requests for help.
Jun 14 18:56:07 berettam84f dhcpd:
Jun 14 18:56:07 berettam84f dhcpd: Please do not under any circumstances send requests for
Jun 14 18:56:07 berettam84f dhcpd: help directly to the authors of this software - please
Jun 14 18:56:07 berettam84f dhcpd: send them to the appropriate mailing list as described in
Jun 14 18:56:07 berettam84f dhcpd: the README file.
Jun 14 18:56:07 berettam84f dhcpd:
Jun 14 18:56:07 berettam84f dhcpd: exiting.
Jun 14 18:56:08 berettam84f dhcpd: dhcpd startup failed

③Distribution  :FedoraCore
      Version:6
④Service Name  :
      Version:
⑤ネットワーク構成:本文に記述

はじめまして。アニエスと申します。

FedoraCore6で、自宅サーバを構築しようとしています。

わたしはUNIX系(?)OSをほとんど知らない初心者でして、
サーバには必要最小限のソフトのみインストールする方が
よいのでしょうが、よくわからないので、ほとんどすべての
パッケージをインストールしています。(^^;

「DHCPサーバの構築(DHCP)」を参考にしながら、
(というかほぼそのまま適用しながら)
DHCPサーバの構築を試みていますが、うまくいきません。

こちらの環境は、以下のとおりです。

インターネット−−ADSLモデム(Yahoo!BB)−−ルータ(corega BAR SW-4P Pro)−−サーバPC・クライアントPC(2台)

サーバPCのOS ⇒ FedoraCore6
クライアントPCのOS ⇒ Windows2000, WindowsXP(SP2)
ネットワークアダプタ(NIC)×2 ⇒ eth0(外部向け⇒未使用), eth1(内部向け)
ISP ⇒ Yahoo!BB
ルータのIPアドレス⇒ 192.168.1.1(DHCP機能 ⇒ 無効)
サーバのIPアドレス⇒ 192.168.1.2

編集した/etc/dhcpd.confの内容は、以下のとおりです。

−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

#2007.06.07 update
ddns-update-style interim;
#ddns-update-style none;
ignore client-updates;

#2007.06.07 add
not authoritative;

#2007.06.07 update
#subnet 192.168.0.0 netmask 255.255.255.0 {
subnet 192.168.1.0 netmask 255.255.255.0 {
# --- default gateway

#2007.06.07 update
#    option routers         192.168.0.1;
    option routers         192.168.1.1;
    option subnet-mask       255.255.255.0;

#2007.06.07 update
#    option nis-domain        "domain.org";
#    option domain-name       "domain.org";
    option domain-name       "******.***";
    ↑ ここに取得ドメイン名(VALUEDOMAIN)を指定したりコメントアウトしたり。。。。 

#    option domain-name-servers   xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx;
#    option domain-name-servers   xxx.xxx.xxx.xxx;
    option domain-name-servers   192.168.1.1;
    ↑ ここに
      ・プロバイダから通知されたDNSサーバのIPアドレス(プライマリ,セカンダリ)を指定
      ・192.168.1.2(サーバのアドレス)
      などいろいろ変更して何度かチャレンジ しかしいずれも同じ結果

#    option time-offset       -18000; # Eastern Standard Time
#    option ntp-servers       192.168.1.1;
#    option netbios-name-servers   192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this 
unless
# -- you understand Netbios very well
#    option netbios-node-type 2;

#2007.06.07 update
#    range dynamic-bootp 192.168.0.128 192.168.0.254;
    range dynamic-bootp 192.168.1.11 192.168.1.254;
    default-lease-time 21600;
    max-lease-time 43200;
}

−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−

その後、

/etc/rc.d/init.d/dhcpd start

を実行すると。。。。

dhcpd を起動中:                      [ 失敗 ]

一瞬で「失敗」が返ってきます。

GUIの「サーバ設定」⇒「Services」より、手動で起動しようとしても、
マウスポインタがずっと「待ち」の状態になり、起動しません。
ランレベルは5です。

なんとなく、細かいことじゃなく、超根本的になにか間違っている
ような気もしますが。。。。

なかなか煮詰まっています。。。。
何かヒントはありませんでしょうか。。。。

こちらの環境や設定に関しての情報が少なすぎるのであれば、
具体的に聞いていただければお答えいたします。

アニエス拝

メンテ

Page:  [1]

■ コンテンツ関連情報

 Re: DHCPサーバの起動に失敗します ( No.1 )
日時: 2007/06/14 20:11
名前: 管理者

> Jun 14 18:56:07 berettam84f dhcpd: /etc/dhcpd.conf line 30: expecting a parameter or declaration
> Jun 14 18:56:07 berettam84f dhcpd: #  range dynamic-bootp 192.168.0.128 192.168.0.254;
> Jun 14 18:56:07 berettam84f dhcpd:                        ^
> Jun 14 18:56:07 berettam84f dhcpd: Configuration file errors encountered -- exiting


ログを見る限りでは30行目の「#  range dynamic-bootp 192.168.0.128 192.168.0.254;」がおかしいと言っていますが、
コメント行であるし、仮にコメントが外れていたとしても他のエラー「ネットワーク部が合っていない」と出るはずです。

全角のスペースが入ってしまっているとかありませんか?
もしくは、この行を削除して起動し直してみてください。
メンテ
 Re: DHCPサーバの起動に失敗します ( No.2 )
日時: 2007/06/14 20:43
名前: アニエス

管理者様様様!

おお〜〜〜〜っっっ! 超ありがとうございます!

レンジを指定する
    range dynamic-bootp 192.168.1.11 192.168.1.254;
の行の冒頭に全角スペースが入ってましたっ。
修正したら、フツウに起動しましたっ。

単純なコトだったのね。。。。。
失礼しました。

メンテ

Page:  [1]

■ その他

ページ先頭へ

Copyright(©)2004-2018 First home server construction. All Right Reserved.