[root@linux ~]# cp /usr/share/doc/dhcp-*/dhcpd.conf.sample /etc/dhcpd.conf [root@linux ~]# vi /etc/dhcpd.conf ddns-update-style interim; ignore client-updates; not authoritative;
If this DHCP server is authoritative for that subnet, please write an `authoritative;' directive either in the subnet declaration or in some scope that encloses the subnet declaration - for example, write it at the top of the dhcpd.conf file.
发布评论
评论(3)
很遗憾,我找了很久,也没有isc发布的dhcpd有相关的系统工具,这方面就不如AIX上IBM写的dhcpsd了
我想你只能够先读完文档,了解各个参数的默认值,然后看看dhcpd.conf里有没有指定,如果没有,那么就是默认值大小了
[ 本帖最后由 bingosek 于 2006-7-9 10:43 编辑 ]
举个例子
[root@linux ~]# cp /usr/share/doc/dhcp-*/dhcpd.conf.sample /etc/dhcpd.conf
[root@linux ~]# vi /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
not authoritative;
If this DHCP server is authoritative for that subnet,
please write an `authoritative;' directive either in the
subnet declaration or in some scope that encloses the
subnet declaration - for example, write it at the top
of the dhcpd.conf file.
subnet 192.168.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
#option nis-domain "domain.org";
option domain-name-servers 192.168.1.1;
option domain-name-servers XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.1.2 192.168.1.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
#host ns {
# next-server marvin.redhat.com;
# hardware ethernet XX:XX:XX:XX:XX:XX;
# fixed-address 207.175.42.254;
#}
host win-client1 {
hardware ethernet XX:XX:XX:XX:XX:XX;
fixed-address 192.168.1.10;
}
}
[root@linux ~]# /etc/rc.d/init.d/dhcpd start
看DHCP的配置文件!