LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 893|回复: 7

请高手帮我看看 我的 DHCP ~~

[复制链接]
发表于 2004-9-24 06:05:43 | 显示全部楼层 |阅读模式
linux:~ # /usr/sbin/dhcpd
Internet Software Consortium DHCP Server V3.0.1rc13
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Address range 192.168.1.10 to 192.168.1.100 not on net 219.148.133.0/255.255.255.0!

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.
 楼主| 发表于 2004-9-24 06:07:33 | 显示全部楼层
照着精华帖子配的 ,配置文件 dhcpd.conf 内容如下:
option domain-name "linux";
default-lease-time 1200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1,192.168.1.2;
subnet 219.148.133.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.100;
  max-lease-time 9200;
}
 楼主| 发表于 2004-9-24 06:09:45 | 显示全部楼层
我没有 固定IP,
subnet 219.148.133.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
max-lease-time 9200;
}
这段是我用yast2 它自动生成的 。我用的是SUSE 9
 楼主| 发表于 2004-9-24 07:02:41 | 显示全部楼层
把配置文件改成下面:
option domain-name "linux";
option domain-name-servers 192.168.1.1;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.125;
ddns-update-style none;
default-lease-time 28800;
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.100;
  max-lease-time 43200;
}

又有错误:
linux:/home/haod # /usr/sbin/dhcpd
Internet Software Consortium DHCP Server V3.0.1rc13
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.

No subnet declaration for eth0 (219.148.133.50).
** Ignoring requests on eth0.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface eth0 is attached. **


Not configured to listen on any 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.

exiting.
 楼主| 发表于 2004-9-24 09:52:28 | 显示全部楼层
如果只装DHCP服务,别的服务不装。防火墙不配置。 别的计算机能连接成功吗?
发表于 2004-9-24 19:58:58 | 显示全部楼层

dhcpd eth(x) 默认是在所有设备上打开,只要你打开需要的作用适配器就可以扐

RECOILEST
 楼主| 发表于 2004-9-25 07:50:36 | 显示全部楼层
谢谢,楼上的 ~!
发表于 2004-9-25 14:38:32 | 显示全部楼层
搞好了???讲一讲过程啊

redhat 可以修改etc/sysconfig/dhcpd,在“=”后加上要广播的网卡号就行了,多个用空格隔开
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表