转载地址:http://qq690083933.blog.163.com/blog/static/1355681392010033548956/
ddns-update-style interim; 配置使用过渡性 DHCP-DNS互动更新模式
ignore client-updates; 忽略客户端更新
subnet 192.168.0.0 netmask 255.255.255.0 { 设置子网声明
# --- default gateway
option routers 192.168.0.1; 设置缺省网关
option subnet-mask 255.255.255.0; 设置客户端的子网掩码
option nis-domain "domain.org"; 为客户设置NIS域
option domain-name "domain.org"; 为客户设置域名
option domain-name-servers 192.168.1.1; 为客户设置域名服务器
option time-offset -18000; # Eastern Standard Time 设置偏移时间
# option ntp-servers 192.168.1.1; 设置NTP服务器
# option netbios-name-servers 192.168.1.1; 设置wins服务器
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2; 设置netbios节点类型
range dynamic-bootp 192.168.0.128 192.168.0.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 12:34:56:78:AB:CD; 指定dhcp客户的mac地址
fixed-address 207.175.42.254; 给指定的mac地址分配ip
}
}