红联Linux门户
Linux帮助

linux dhcpd 详解

发布时间:2009-04-06 21:56:02来源:红联作者:811860768l
ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 { 所划分的ip网段和子网掩码

# --- default gateway
option routers 192.168.0.1; 指定路由ip
option subnet-mask 255.255.255.0; 指定路由ip 子网掩码

option nis-domain "domain.org"; 所选择的网络信息服务、域名范围
option domain-name "domain.org"; 所选择的 、域名服务
option domain-name-servers 192.168.1.1; 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.128 192.168.0.254; 所划分的ip地址范围
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; 硬件地址 及计算机的MAC地址
fixed-address 207.175.42.254; 保留的ip地址
}
}
文章评论

共有 3 条评论

  1. hantu 于 2009-04-12 23:51:28发表:

    这也叫详解 ... 太?了

  2. kevin_2009 于 2009-04-12 18:34:17发表:

    Linux桌面的发展的时代来临了。

    努力学习linux,楼上的,要认真学习啦!!!!!

  3. houwanghao 于 2009-04-07 08:55:48发表:

    可以在详细些吗?我们都是菜鸟!