分类: LINUX
2009-11-19 12:10:29
CentOs 5.3安装DHCP服务器
2009.11.19安装测试服务器:
dhcpd网站:
1、先安装DHCP软件
[root@localhost /]# rpm -ivh dhcp-
2、将范本复制到/etc下
[root@localhost /]# cp /usr/share/doc/dhcp-
3、修改dhcpd.conf文件
[root@localhost /]# vi /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 172.86.55.0 netmask 255.255.255.0 {
# --- default gateway
option routers 172.86.55.250;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 210.21.4.130;
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 172.86.55.41 172.86.55.44;
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 00:30:F1:97:F4:05;
fixed-address 172.86.55.44;
}
}
4、查看租用记录文件
[root@localhost /]# vi /var/lib/dchp/dhcpd.leases