|
我用apt-get装的dhcpd,然后在网上找了些配置/etc/dhcpd.conf的资料,也试着看了man手册,可是还是不能后启动.后来干脆用别人的配置文件,还是我行.下面的是在论坛上找的,http://www.linuxsir.cn/bbs/showt ... &highlight=dhcp -帮忙看看下面的配置文件有什么问题:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
# option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 202.98.160.68;
option broadcast-address 192.168.0.255;
# option time-offset -18000;
range 192.168.0.100 192.168.0.150;
default-lease-time 21600;
max-lease-time 43200;
}
我把上面的类容原本不动的写进dhcpd.conf,运行dhcpd提示
/etc/dhcpd.conf line 1: expecting a parameter or declaration.
ddns-update-style
^
/etc/dhcpd.conf line 2: expecting a parameter or declaration.
ignore
^
Configuration file errors encountered -- exiting
我注释掉前面的两行后,再运行,提示如下:
No subnet declaration for start (0.0.0.0).
Please write a subnet declaration in your dhcpd.conf file for the
network segment to which interface start is attached.
exiting.
实在是不明白,大家帮忙指点一下. |
|