请教,启动dhcp服务失败

请教,启动dhcp服务失败

我fc9的系统,一块网卡,为了学习,用yum装的dhcp-4.0.0-18.fc9.i386,我配置好以后启动dhcp总是失败,
以下是我的dhcpd.conf:

option domain-name "test.com";
option domain-name-servers 192.168.1.150;
default-lease-time 7200;
max-lease-time 18000;
ddns-update-style interim;

log-facility local7;  //这行是样本里自带的,我没有删,保留了,请大家告诉这是什么意思。

subnet 10.1.1.0 netmask 255.255.255.0 {
  range 10.1.1.50 10.1.1.100;
  option routers 10.1.1.254;
  option broadcast-address 10.1.1.255;
}

用/etc/init.d/dhpcd start 和 /usr/sbin/dhcpd  启动dhcp服务都失败,

以下是我用tail -20 /var/log/messages 显示的内容:
Oct 18 20:07:17 advantech-fuliwei dhcpd:
Oct 18 20:07:17 advantech-fuliwei dhcpd:
Oct 18 20:07:17 advantech-fuliwei dhcpd: No subnet declaration for eth0 (192.168.1.113).
Oct 18 20:07:17 advantech-fuliwei dhcpd: ** Ignoring requests on eth0.  If this is not what
Oct 18 20:07:17 advantech-fuliwei dhcpd:    you want, please write a subnet declaration
Oct 18 20:07:17 advantech-fuliwei dhcpd:    in your dhcpd.conf file for the network segment
Oct 18 20:07:17 advantech-fuliwei dhcpd:    to which interface eth0 is attached. **
Oct 18 20:07:17 advantech-fuliwei dhcpd:
Oct 18 20:07:17 advantech-fuliwei dhcpd:
Oct 18 20:07:17 advantech-fuliwei dhcpd: Not configured to listen on any interfaces!
Oct 18 20:07:17 advantech-fuliwei dhcpd:
Oct 18 20:07:17 advantech-fuliwei dhcpd: This version of ISC DHCP is based on the release available
Oct 18 20:07:17 advantech-fuliwei dhcpd: on ftp.isc.org.  Features have been added and other changes
Oct 18 20:07:17 advantech-fuliwei dhcpd: have been made to the base software release in order to make
Oct 18 20:07:17 advantech-fuliwei dhcpd: it work better with this distribution.
Oct 18 20:07:17 advantech-fuliwei dhcpd:
Oct 18 20:07:17 advantech-fuliwei dhcpd: Please report for this software via the Red Hat Bugzilla site:
Oct 18 20:07:17 advantech-fuliwei dhcpd:     http://bugzilla.redhat.com
Oct 18 20:07:17 advantech-fuliwei dhcpd:
Oct 18 20:07:17 advantech-fuliwei dhcpd: exiting.
上面有一行是:Not configured to listen on any interfaces!

可我就一块网卡:于是我又编辑/etc/init.d/dhcpd文件:添加了几行:

prog=dhcpd
configfile="/etc/dhcpd.conf"
leasefile="/var/lib/dhcpd/dhcpd.leases"
interfaces="eth0"
dhcpd=/usr/sbin/dhcpd
lockfile=/var/lock/subsys/dhcpd
pidfile=/var/run/dhcpd.pid
statedir=/var/lib/dhcpd
---------------------------
configfile="/etc/dhcpd.conf"
leasefile="/var/lib/dhcpd/dhcpd.leases"
interfaces="eth0"

这三行是我添加的内容,
可是还是启动不了。
查 看/var/log/messages的内容还是一样。
请大家帮帮忙。看看是怎么回事。      
你在subnet里定义的网段要与你的网卡IP所处网段一致!

Oct 18 20:07:17 advantech-fuliwei dhcpd: No subnet declaration for eth0 (192.168.1.113).
Oct 18 20:07:17 advantech-fuliwei dhcpd: ** Ignoring requests on eth0.  If this is not what
Oct 18 20:07:17 advantech-fuliwei dhcpd:    you want, please write a subnet declaration
Oct 18 20:07:17 advantech-fuliwei dhcpd:    in your dhcpd.conf file for the network segment
Oct 18 20:07:17 advantech-fuliwei dhcpd:    to which interface eth0 is attached. **

这个提示已经讲得非常清楚了!      
比如你的网卡是192.168.0.x,而dhcp服务却为10.1.1.0的subnet提供服务是不行的(当然配置中继和转发是另外说了)。      
多谢楼上的两位朋友,我再试试。      
再一次向楼上两位朋友表示感谢,成功了,就是这样的。第一次在linux上配服务器,成功的感觉妙不可言啊。      
咳咳,就我一个人啊,楼主怎么说成两位朋友 ...