このスレッドはクローズされています。記事の閲覧のみとなります。
ローカルDHCP構築にて |
|
- æ¥æï¼ 2007/05/25 01:44
- ååï¼ design123
- はじめまして
早速ですが下記環境でローカルでDHCPサーバーを組もうとしています。
しかしローカル下のIPアドレスがうまく振られません。
ルータ サーバ 192.168.1.1 −−− 192.168.1.201(eth0) 192.168.2.253(eth1) −−(Hub)ーー (ローカルクライアント)
dhcpd.confは下記です。 −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− ddns-update-style none; use-host-decl-names on; # # DHCP Server Configuration file. # see /usr/share/doc/dhcp*/dhcpd.conf.sample # # localnet subnet 192.168.2.0 netmask 255.255.255.0 { option domain-name-servers 192.168.2.253; authoritative; allow client-updates; allow unknown-clients; max-lease-time 43200; default-lease-time 21600; option broadcast-address 192.168.2.255; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.2.16 192.168.2.240; } −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 念のため、ルート設定も出しますと −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− [root@localhost msuetsug]# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− こんな感じです。 この状態で −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− [root@localhost msuetsug]# /usr/sbin/dhcpd eth1 Internet Systems Consortium DHCP Server V3.0.4-RedHat Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Wrote 0 leases to leases file. Listening on LPF/eth1/00:07:40:23:01:37/192.168.2/24 Sending on LPF/eth1/00:07:40:23:01:37/192.168.2/24 Sending on Socket/fallback/fallback-net
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− なんて、一見動いてそうですが。eth1下のローカルマシンは、期待している 192.168.2.* のようなIPアドレスを振ってもらえません。 リンクランプは付いていて、お話はしてそうです。 ログを見ました
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
May 25 01:12:46 localhost dhcpd: Internet Systems Consortium DHCP Server V3.0.4-RedHat May 25 01:12:46 localhost dhcpd: Copyright 2004-2006 Internet Systems Consortium. May 25 01:12:46 localhost dhcpd: All rights reserved. May 25 01:12:46 localhost dhcpd: For info, please visit http://www.isc.org/sw/dhcp/ May 25 01:12:47 localhost dhcpd: Wrote 0 leases to leases file. May 25 01:12:47 localhost dhcpd: Listening on LPF/eth1/00:07:40:23:01:37/192.168.2/24 May 25 01:12:47 localhost dhcpd: Sending on LPF/eth1/00:07:40:23:01:37/192.168.2/24 May 25 01:12:47 localhost dhcpd: Sending on Socket/fallback/fallback-net
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 動いてそうですが、この後機器をつないでクライアントから覗くと −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− Connection-specific IP Address : (なし) (中略) Autoconfiguration IP Address : 169.254.18.53 subetmask : 255.255.0.0 Default Gateway : (なし)
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− 手な感じです。 ルート設がまずいのかと思えますが、如何様になおせばいいでしょうか、
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
の設定をためしに削除しましたが、これ、起動するとなぜか必ず復活して書き加えられます。
設定は全てWebminを使ってやっております。
対応御教授ください。
|
■ コンテンツ関連情報
Re: ローカルDHCP構築にて ( No.16 ) |
|
- æ¥æï¼ 2007/06/20 00:18
- ååï¼ design123
- 雪だるまさま
諦めかけのところへ投稿ありがとうございます。
実はNICどらいば問題と思い、カーネル再構築をかけて失敗し、システムごとダメになってしまったこともあり、 Fedoraの環境を7にあげて、自DNSに今は挑戦してます。 −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− /etc/sysconfig/network 中に DHCPDEV=eth1 を記述しました。 −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− たしかeth指定はかけていましたが…今となっては確認もできず。
一段落してからまた実験してみます。 ありがとうございます。
|
■ その他