ddns-update-style interim;
ignore client-updates;
-----------------------------------------------------------------------------------------------------------
subnet 192.168.107.0 netmask 255.255.255.0 { # 服务子网(子域网段)
-----------------------------------------------------------------------------------------------------------
# --- default gateway
-----------------------------------------------------------------------------------------------------------
option routers 192.168.107.1; # 路由器地址(网关),设置路由器IP所在,routers要加s才可以。
option subnet-mask 255.255.255.0; #广播地址
-----------------------------------------------------------------------------------------------------------
option nis-domain "domain.org"; #DNS域名
option domain-name "domain.org";
-----------------------------------------------------------------------------------------------------------
option domain-name-servers 192.168.1.1; #DNS的IP地址
-----------------------------------------------------------------------------------------------------------
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.0.128 192.168.0.254; # DHCP的IP地址池(判断一个IP地址是否属于该子网)
-----------------------------------------------------------------------------------------------------------
default-lease-time 21600; #默认的租约期限(2天),默认单位为秒
-----------------------------------------------------------------------------------------------------------
max-lease-time 43200; #最大的租约期限(4天),超过租约时间尚未更新IP时,最长可用该IP的时间
-----------------------------------------------------------------------------------------------------------
# we want the nameserver to appear at a fixed address
host ns { #指定主机的名称
next-server marvin.redhat.com; #通过MAC地址绑定,以便
hardware ethernet 12:34:56:78:AB:CD; #给某个用户分配一个固定的IP
fixed-address 207.175.42.254;
}
}
-----------------------------------------------------------------------------------------------------------
还没有评论,快来抢沙发!