加入收藏 | 设为首页 | 会员中心 | 我要投稿 温州站长网 (https://www.0577zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

PXE+TFTP+VSFTP+DHCP+Kickstart无人职守自动安装RHEL 5

发布时间:2016-09-13 13:11:46 所属栏目:Linux 来源:站长网
导读:1、安装并配置:DHCP服务: 1)yum list |grep dhcp 2)yum install dhcp* -y 3)编辑/etc/dhcpd.conf rpm -ql dhcp 找到dhcpd.conf.example这个文件,复制到/etc

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

(编辑:温州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读