Linux-CentOS6.4-PXE-DHCP-FTP

來源:互聯網
上載者:User

標籤:

DHCP伺服器位址:192.168.1.100
TFTPfFF伺服器位址:192.168.1.100
FTP伺服器位址:192.168.1.100
安裝樹目錄:/var/ftp/pub
引導程式目錄:/var/lib/tftpboot
ks.cfg位置:/var/ftp/

1.install and configure DHCP
yum install dhcp -y

#==========================vi /etc/dhcp/dhcpd.conf==========================
ddns-update-style interim;
ignore client-updates;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name-servers 192.168.1.110;
filename="pxelinux.0";
option domain-name "www.baxk.com";
option domain-name-servers 192.168.1.110;
option time-offset -18000;
range dynamic-bootp 192.168.1.200 192.168.1.250;
default-lease-time 21600;
max-lease-time 43200;
host ns {
hardware ethernet 00:0C:29:BB:0E:20;
fixed-address 192.168.1.110;
next-server 192.168.1.110;

}
#==========================vi /etc/dhcp/dhcpd.conf==========================


vi /etc/init.d/dhcpd
#==========================vi /etc/init.d/dhcpd=============================
user=root
group=root
#==========================vi /etc/init.d/dhcpd=============================

service dhcpd start
chkconfig dhcpd on


2. install and configure vsftpd tftp

yum install vsftpd tftp-server -y

#==========================/etc/xinetd.d/tftp==========================
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
#==========================/etc/xinetd.d/tftp==========================

service xinetd start
netstat -tupln |grep 69
chkconfig xinetd on

3.copy boot file from CDROM

mkdir /media/CentOS
mount -t auto /dev/cdrom  /media/CentOS


cd /var/lib/tftpboot

mkdir pxelinux.cfg
cp /media/cdrom/isolinux/vmlinuz ./
cp /media/cdrom/isolinux/initrd.img ./

yum install syslinux -y
cp /usr/share/syslinux/vesamenu.c32 ./
cp /usr/share/syslinux/pxelinux.0 ./
cp /media/cdrom/isolinux/isolinux.cfg pxelinux.cfg/default

#==========================default==========================
label linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append initrd=initrd.img ks=ftp://192.168.1.100/ks.cfg
......
#==========================default==========================

4.
yum groupinstall "X Window System"
yum groupinstall Desktop
system-config-kickstart
Kernel-Parameters = quite rhgb
%packages --nobase
@core

5.settings
service iptables stop
chkconfig iptables off
setenforce 0
getenforce

Linux-CentOS6.4-PXE-DHCP-FTP

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.