- 论坛徽章:
- 0
|
在配置dhcp时在/var/lib/dhcpd/dhcpd.leases有一个样板文件,大家可以根据他来修改以下是我自己修改的。
#本文来自: http://7717060.cublog.cn/
dns-update-style interim;
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";
option domain-name "domain.org";
option domain-name-servers 202.96.134.133,202.96.168.68; 我的两个上层dns之间要要以逗号格开。
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.1 192.168.0.10; # 发放地址范围
default-lease-time 21600; # 租约时间:
max-lease-time 43200; # 最大时间
# we want the nameserver to appear at a fixed address
host ns { # 设置固定MAC发放固定IP
hardware ethernet 00:C0:9F:81:BE:97;
fixed-address 192.168.0.10;
}
}
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/40306/showart_474896.html |
|