PXE+TFTP+VSFTP+DHCP+Kickstart无人职守自动安装RHEL 5
1、安装并配置:DHCP服务: 1)yum list |grep dhcp 2)yum install dhcp* -y 3)编辑/etc/dhcpd.conf √rpm -ql dhcp √找到dhcpd.conf.example这个文件,复制到/etc下,替换dhcpd.conf Cp /usr/share/doc/dhcpd.conf.example /etc/dhcpd.conf √vim /etc/dhcpd.conf 修改成如下:(注意红色部分) *********************************************************************** ddns-update-style interim; ignore client-updates; subnet 192.168.1.0 netmask 255.255.255.0 { # --- default gateway option routers 192.168.1.1; option subnet-mask 255.255.255.0; # option nis-domain "domain.org"; # option domain-name "domain.org"; # option domain-name-servers 192.168.1.1; option time-offset -18000; # Eastern Standard Time filename "pxelinux.0"; next-server 192.168.1.88; # 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.1.100 192.168.1.120; 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:16:D3:07:68:27; fixed-address 192.168.1.88; } } *************************************************************************** √chkconfig dhcpd on √service dhcpd restart √如果报错,则查看log日志,cat /var/log/message (编辑:徐州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |