在linux系统中配置DHCP服务器的老例子将来用的到

 DHCPd后台程序老是读取配置文件/etc/dhcpd.conf, 下面给出一本人主机上的DHCP配置文件的例子:

 
ddns-update-style interim;
 
ignore client-updates;
 
subnet 192.168.25.0 netmask 255.255.255.0 {
 
# --- default gateway
 
option routers 192.168.25.15;
 
option subnet-mask 255.255.255.0;
 
# option nis-domain "uc88.domain";
 
option domain-name "uc88.domain";
 
option domain-name-servers 202.96.128.68,192.168.25.15;
 
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.25.100 192.168.25.254;
 
default-lease-time 259200;
 
max-lease-time 518400;
 
# 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;
 
# fixed-address 207.175.42.254;
 
# }
 
}
 
上面的意思是:
 
用255.255.255.0作为子网掩码,用192.168.25.255作为广播地址,用192.168.25.15作为
 
默认网关,用202.96.128.68 and 192.168.25.15作为DNS服务器 用分配地址的范围是:192.168.25.100-192.168.25.254
 
保存退出
 
四. 大多数情况下,DHCP的安装不创建一个dhcpd.leases 文件,在您启动DHCP服务器之前,您必须创建空文件 dhcpd.leases
 
#touch /var/state/dhcp/dhcpd.leases
 
为启动DHCP服务器,简单地打入 /usr/sbin/dhcpd 或者用#ntsysv把DHCP服务自动启动
 
这用启动dhcpd在eth0设备上,可能您希望在eth1设备上启动dhcpd,则
 
#/usr/sbin/dhcpd eth1
 
如何观察客户的ip到底存在无获得呢?
 
在98运行winipcfg
 
在2000 下运行ipconfig /all
 
就一清二楚拉!

你可能感兴趣的:(option,服务器,配置文件,default,的)