Chinaunix

标题: RedHat DHCP 服务器启动问题 [打印本页]

作者: wdfwdf2727    时间: 2011-10-31 14:05
标题: RedHat DHCP 服务器启动问题
本帖最后由 wdfwdf2727 于 2011-10-31 14:54 编辑

虚拟机系统 RedHat 9
下面是配置信息
cat  ifcfg-eth0 中内容
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=statc
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

cat  hosts   
127.0.0.1   dhcp-server   localhost

/etc/sysconfig/dhcpd  改动的部分
subnet  192.168.1.0 netmask 255.255.255.0
option routers 192.168.1.1
option subnet-mask 255.255.255.0
range dynamic-bootp  192.168.1.128  192.168.1.254

service dhcpd start


/etc/sysconfig/dhcpd文件是从 /usr/share/doc/dhcp-3.0pl1/dhcp.conf.sample
name or service not known  ???
command not fount 出现这个,是不是要设置环境啊?

这个问题咋解决啊


cat /etc/sysconfig/dhcpd

作者: wdfwdf2727    时间: 2011-10-31 14:07
在线等老师···
作者: chenyx    时间: 2011-10-31 14:35
楼主把配置文件贴一下,从报错信息来看,貌似"}"不匹配
作者: wdfwdf2727    时间: 2011-10-31 14:56
配置贴上去了,CP的模板做了小小的改动。
作者: chenyx    时间: 2011-10-31 15:22
楼主,dhcp.conf.sample 应该拷贝成/etc/dhcpd.conf
/etc/sysconfig/dhcpd内容是下面的
# Command line options here
DHCPDARGS=

作者: 疑似精神病    时间: 2011-10-31 15:29
提示: 作者被禁止或删除 内容自动屏蔽
作者: wdfwdf2727    时间: 2011-10-31 15:31
本帖最后由 wdfwdf2727 于 2011-10-31 15:40 编辑



我用的RedHat 9啊 是有点古老···
作者: dooros    时间: 2011-10-31 17:03
希望你解决问题了换新的发行版。
作者: taojie2000    时间: 2011-10-31 22:27
dhcp.conf.sample   应该拷贝 成 dhcp.conf
作者: johntsu    时间: 2011-11-01 17:43
配置,又是配置……




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2