歡迎您光臨本站 註冊首頁

dhcp問題,不知道是不是用了新的版本,redhat不支持

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

dhcp問題,不知道是不是用了新的版本,redhat不支持

我用的是RH9,是不是用了新的dhcp,版本不支持
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
        option routers                  192.168.0.1;
        option  subnet-mask             255.255.255.0;
        option  domain-name             "fusmou.com";
        option  domain-name-servers     192.168.0.254;
        range   192.168.0.200 192.168.0.220;
        default-lease-time 21600;
        max-lease-time  43200;
#       host mou        {
#                       hardware ethernet 00-E0-4C-77-93-C1;
#                       fixed-address   192.168.0.223;
#       }
}
下面是messages信息
Oct 13 10:39:08 studylinux dhcpd: Internet Systems Consortium DHCP Server 4.0.0b1
Oct 13 10:39:08 studylinux dhcpd: Copyright 2004-2007 Internet Systems Consortium.
Oct 13 10:39:08 studylinux dhcpd: All rights reserved.
Oct 13 10:39:08 studylinux dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Oct 13 10:39:08 studylinux dhcpd: Wrote 0 leases to leases file.
Oct 13 10:39:08 studylinux dhcpd: Error opening '/proc/net/if_inet6' to list IPv6 interfaces; No such file or directory
Oct 13 10:39:08 studylinux dhcpd: Can't get list of interfaces.
Oct 13 10:39:08 studylinux dhcpd:
Oct 13 10:39:08 studylinux dhcpd: If you did not get this software from ftp.isc.org, please
Oct 13 10:39:08 studylinux dhcpd: get the latest from ftp.isc.org and install that before
Oct 13 10:39:08 studylinux dhcpd: requesting help.
Oct 13 10:39:08 studylinux dhcpd:
Oct 13 10:39:08 studylinux dhcpd: If you did get this software from ftp.isc.org and have not
Oct 13 10:39:08 studylinux dhcpd: yet read the README, please read it before requesting help.
Oct 13 10:39:08 studylinux dhcpd: If you intend to request help from the dhcp-server@isc.org
Oct 13 10:39:08 studylinux dhcpd: mailing list, please read the section on the README about
Oct 13 10:39:08 studylinux dhcpd: submitting bug reports and requests for help.
Oct 13 10:39:08 studylinux dhcpd:
Oct 13 10:39:08 studylinux dhcpd: Please do not under any circumstances send requests for
Oct 13 10:39:08 studylinux dhcpd: help directly to the authors of this software - please
Oct 13 10:39:08 studylinux dhcpd: send them to the appropriate mailing list as described in
Oct 13 10:39:08 studylinux dhcpd: the README file.
Oct 13 10:39:08 studylinux dhcpd:
Oct 13 10:39:08 studylinux dhcpd: exiting.
《解決方案》

IPv6的問題?
在rh9時代,還沒有IPv6吧?在/proc/net裡面也就不可能存在或者建立if_inet6
可能要重新編繹內核的網核部分,或者禁用DHCP的IPv6功能
《解決方案》

rh9 那年代 ipv6 還沒納入使用,建議沒特殊需求應該不要使用這種老古董的版本 :)

若還要使用,請在 dhcp source 編譯時於 configure 時傳入 --disable-dhcpv6 即可不使用 ipv6 功能項目。 或者是你後續執行 dhcpd 時多傳入 -4 參數表示只有用 ipv4 interface 即可。

--
《解決方案》

或者是你後續執行 dhcpd 時多傳入 -4 參數表示只有用 ipv4 interface 即可

我現在打dhcpd -4還有不行,出現下面的錯誤信息

Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 leases to leases file.
Error opening '/proc/net/if_inet6' to list IPv6 interfaces; No such file or directory
Can't get list of interfaces.

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.
《解決方案》

原帖由 fusmou 於 2007-10-31 14:51 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
或者是你後續執行 dhcpd 時多傳入 -4 參數表示只有用 ipv4 interface 即可

我現在打dhcpd -4還有不行,出現下面的錯誤信息

重新編譯 source code,就這樣來解決吧。

不過我還是要說的是,討論區上提供的方式有多種,您就需要自己多個都 try 過,而不要只是迴文說這個方式不行,然後就又不進行其他方式了。因為這樣討論似乎顯得非常沒有意義。

--
《解決方案》

我的也是,dhcpd -4不起作用,--disable-ipv6重新編譯才行。
《解決方案》

這篇古文也可以被挖出來?

[火星人 ] dhcp問題,不知道是不是用了新的版本,redhat不支持已經有635次圍觀

http://coctec.com/docs/service/show-post-21508.html