Linux for TFTP, NFS, and DHCP installation and configuration

Source: Internet
Author: User
Tags linux

This article is based on redhat6.0, the default system has been configured Yum source, it is not clear to refer to my blog about yum configuration. All of the following are based on the root user.

1, the TFTP service installation and configuration

The TFTP service can be managed by installing the XINETD service, and the installation instructions are as follows:

Yum Install TFTP

Configure TFTP:

Vim/etc/xinetd.d/tftp

Increase Disable=no

Modify Server-args=-u nobody-s/tftpboot

Where Tftpboot is a folder for the system root, the naming is optional, but it is consistent with the configuration here and used as a system boot area for network installations.

2. Installation and configuration of DHCP service

Installation Instructions:

Yum Install DHCP

Configure DHCP

Vim/etc/dhcp/dhcpd.conf

The contents are as follows:

Ddns-update-style Interim;    
        
Ignore client-updates;    
        
Allow booting;    
        
Allow BOOTP;    
        
Subnet 192.168.1.0 netmask 255.255.255.0    
        
{    
        
range DYNAMIC-BOOTP 192.168.1.10; #这边的ip为需要广播的ip范围, See the number of computers that require network installation    
This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/
option Rooters 192.168.1.201; #填写网关地址    
        
option Subnet-mask 255.255.255.0; #子网掩码    
        
option broadcask-address 192.168.1.255;    
        
Default-lease-time 21600;    
        
Max-lease-time 43200;    
        
Next-server 192.168.1.92; #tftp的ip地址    
        
filename "pxelinux.0";    
        

This side needs to pay attention to a detail, about pxelinux.0 the name of this file, it is recommended not to change the name. I'll talk about the file later.

3, the ISO file hanging in the/mnt/os folder, no this folder, new can be.

Instructions:

Mkdir/mnt/os    
Mount-o Loop Redhat.iso/mnt/os

4. Install and configure NFS Services

Instructions:

Yum Install NFS

Configuration:

Vim/etc/exports

Add the following content:

/mnt/os * (RO)    
/tftpboot * (RO)

5, install Syslinux service, find pxelinux.0 files, copy to/tftpboot directory

6, the ISO isolinux and boot inside the file copied to the/tftpboot directory, the kickstart.cfg copy to/tftpboot

7. Create a new Pxelinux.cfg folder in/tftpboot, copy isolinux.cfg file to pxelinux.cfg and modify name to default

8. Edit Default File

After the label Linux Plus

Ks=nfs:192.168.1.92:/tftpboot/kickstart.cfg Ksdevice=system Etho

By this, the basic service configuration is complete and the terminal executes the following command:

Chcon-t Public_content_t/tftpboot-r

Start TFTP, DHCP, and NFS services.

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.