加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

kickstart无人值守安装系统

发布时间:2016-01-21 23:29:14 所属栏目:Linux 来源:网络整理
导读:一.使用yum安装dhcp tftp vsftpd system-config-kickstart软件包 1. 安装相关软件包 #yum -y install tftp dhcp vsftpd system-config-kickstart 二.配置dhcpd
副标题[/!--empirenews.page--]

一.使用yum安装dhcp tftp vsftpd system-config-kickstart软件包

1. 安装相关软件包

#yum -y install tftp dhcp vsftpd system-config-kickstart

二.配置dhcpd服务

cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf

#vim /etc/dhcpd.conf  内容如下,当然也可以根据自己的需要灵活修改

ddns-update-style interim;     
ignore client-updates;     
subnet 192.168.126.0 netmask 255.255.255.0 {     
# --- default gateway     
        option routers                  192.168.126.254;//路由器IP,可以写网关IP     
        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;//DNS服务器IP        
        next-server                     192.168.126.50;//服务器IP地址。      
        filename                         "pxelinux.0";//PXE得到IP以后的引导文件       
        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.126.128 192.168.126.254;//IP地址池范围。     
        default-lease-time 21600;     
        max-lease-time 43200;     
#       next-server marvin.redhat.com;     
        # 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;     
        }     
}

三.配置tftp服务

1.编辑/etc/xinetd.d/tftp文件

#vim /etc/xinetd.d/tftp  内容如下service tftp     
{     
        socket_type             = dgram    
        protocol                = udp    
        wait                    = yes    
        user                    = root    
        server                  = /usr/sbin/in.tftpd     
        server_args             = -s /tftpboot     
        disable                 = no    
        per_source              = 11    
        cps                     = 100 2     
        flags                   = IPv4    
}

(编辑:云计算网_泰州站长网)

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

热点阅读