Kickstart unattended Installation System

Source: Internet
Author: User
Tags get ip

I. Installing DHCP TFTP VSFTPD system-config-kickstart packages using Yum

1. Install the related software package

#yum-y install tftp DHCP vsftpd System-config-kickstart

Two. Configure the DHCPD service

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

#vim/etc/dhcpd.conf content is as follows, of course, can be flexibly modified according to their own needs

 Ddns-update-style Interim;     
Ignore client-updates; Subnet 192.168.126.0 netmask 255.255.255.0 {#---Default gateway option routers 192.1     
68.126.254;//router IP, can write gateway 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 server IP next-server 192.168.126      
        .50;//server IP address. FileName "pxelinux.0"//pxe get IP after the boot file 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 #--Your understand Netbios very # option Netbios-node-type 2; Range DynamIC-BOOTP 192.168.126.128 192.168.126.254;//IP address pool range.     
        Default-lease-time 21600;     
Max-lease-time 43200;     
        # Next-server marvin.redhat.com; # We want the nameserver to appear in a fixed address host ns {Next-server Marvin.redha     
                t.com;     
                Hardware Ethernet 12:34:56:78:AB:CD;     
        Fixed-address 207.175.42.254; }     
}

Three. Configure the TFTP service

1. Edit/etc/xinetd.d/tftp File

#vim/etc/xinetd.d/tftp  content follows service tftp     
{     
        Socket_type             = dgram    
        protocol                = UDP    
        Wait                    = yes    
        user                    = root    
        Server                  =/usr/sbin/in.tftpd     
        Server_args             =-s/tftpboot     
        Disable                 = no    
        per_source              = one    
        cps                     = 2     
        Flags                   = IPv4    
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.