1、建立DHCP服务器
[root@web ~]# cat /etc/dhcpd.conf
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
default-lease-time 36000;
max-lease-time 46800;
option routers 192.168.1.100;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.100;
option domain-name "llw.com";
option ntp-servers 192.168.1.100;
option time-offset -18000;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.20 192.168.1.90;
}
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
option vendor-class-identifier "PXEClient";
vendor-option-space PXE;
option PXE.mtftp-ip 0.0.0.0;
filename "/pxelinux.0";
next-server 192.168.1.211;
}
2、建立TFTP服务器(TFTP SERVER建立)
[root@web ~]# cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
拥有帝国一切,皆有可能。欢迎访问phome.net
# and to start the installation process for some operating systems.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
3、/tftpboot下建立对象
把/usr/lib/syslinux/pxelinux.0考到/tftpboot目录下,把RedHatas5第一张安装光盘上
拥有帝国一切,皆有可能。欢迎访问phome.net/image/pxeboot/initr.img和vmlinux也考到/tftpboot目录下.在 /tftpboot建一个pxelinux.cfg
拥有帝国一切,皆有可能。欢迎访问phome.net目录,用于放syslinux的配制文件.Sysconfig的配制文件有现成的可用,在rhas5第一张安装光盘isolinux/下有一个
拥有帝国一切,皆有可能。欢迎访问phome.netisolinux.cfg文件,把它考成/tftpboot/default,把isolinux/*.msg考到 /tftpboot下(RedHat
拥有帝国一切,皆有可能。欢迎访问phome.net的安装光盘的Loader就是个isolinux)
4、这样从网卡启动安装就可以了.
拥有帝国一切,皆有可能。欢迎访问phome.net |