使用PXE协议远程安装LINUX【实作】
发表于:2007-07-04来源:作者:点击数:
标签:
OS:REDHATAS3.X 1安装tftp和dhcp 服务器 #rpm-ivhtftp-server-0.39-0.EL3.1.c0.i386.rpm #rpm-ivhdhcp-3.0.1-10_EL3.i386.rpm 2配置tftp和dhcp服务器 #vi/etc/xinetd.d/tftp =============+==========+===========+============+============ servicetftp d
OS: REDHAT AS 3.X
1 安装tftp和dhcp
服务器# rpm -ivh tftp-server-0.39-0.EL3.1.c0.i386.rpm
# rpm -ivh dhcp-3.0.1-10_EL3.i386.rpm
2 配置tftp和dhcp服务器
# vi /etc/xinetd.d/tftp
=============+==========+===========+============+============
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -u nobody -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
=============+==========+===========+============+============
# cp /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample /etc/dhcpd.conf
# vi /etc/dhcpd.conf
=============+==========+===========+============+============
option domain-name "systeng.net";
default-lease-time 6000;
max-lease-time 11400;
authourtative;
ddns-update-style ad-hoc;
log-facility local7;
subnet 192.168.10.0 netmask 255.255.255.0{
range 192.168.10.150 192.168.10.155;
option domain-name-servers 202.99.160.68;
option domain-name "systeng.net";
option netb
ios-name-servers 192.168.10.1;
option routers 192.168.10.1;
option broadcast-address 192.168.10.255;
default-lease-time 6000;
max-lease-time 11400;
filename "/pxe
linux.0";
}
=============+==========+===========+============+============
3 配置支持PXE
# mkdir /tftpboot
# cp /usr/lib/syslinux/pxelinux.0 /tftpboot
把LINUX第一张安装光盘上/image/pxeboot/initr.img和vmlinux 以及isolinux/*.msg考到/tftpboot目录下
# cd /tftpboot
# mkdir pxelinux.cfg
# vi default
=============+==========+===========+============+============
default
prompt 1
timeout 30
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg
label local
localboot 0
label linux
kernel vmlinuz
append initrd=initrd.img devfs=nomount ramdisk_size=9216
label text
kernel vmlinuz
append initrd=initrd.img text devfs=nomount ramdisk_size=9216
label expert
kernel vmlinuz
append expert initrd=initrd.img devfs=nomount ramdisk_size=9216
label ks
kernel vmlinuz
append ks initrd=initrd.img devfs=nomount ramdisk_size=9216
label nofb
kernel vmlinuz
append initrd=initrd.img devfs=nomount nofb ramdisk_size=9216
label lowres
kernel vmlinuz
append initrd=initrd.img lowres devfs=nomount ramdisk_size=9216
kernel vmlinuz
=============+==========+===========+============+============
4 配置NFS服务
# vi /etc/exports
/home/iso/ 192.168.10.0/24(ro,sync)
# mkdir /home/iso
拷贝安装LINUX的ISO文件到这个目录
5 需要开启的系统服务
/dhcpd/network/nfs/portmap/syslog/tftp/xinetd/
6 硬件
需求网卡上需要添加PXE远程启动芯片
platinum 回复于:2005-08-11 09:23:06 |
好文章啊,llzqq 最近也不上 qq 了
|
llzqq 回复于:2005-08-11 09:25:51 |
[quote:e49c07de03="platinum"]好文章啊,llzqq 最近也不上 qq 了[/quote:e49c07de03]
嘿嘿,你也没上啊,好几次找你都不在啊。
|
三水 回复于:2005-08-13 15:56:19 |
真是江湖救急啊~
|
三水 回复于:2005-08-13 16:01:53 |
只是有些地方看不明白,如果能有注释就好了~
|
yanyp 回复于:2005-08-16 10:18:42 |
好文,偶也在用了,提醒下,在cisco的交换机下,client所连的port口,要起用spanning-tree portfast,我也是昨天在一个clearcase/" target="_blank" >ccie的帮忙下搞定的
|
soway 回复于:2005-08-20 12:56:58 |
楼上没错 我以前设置过
|
原文转自:http://www.ltesting.net