搭建pxe服务器(tftp服务器+dhcp服务器+samba服务器)
在linux系统中安装tftp,dhcp,samba服务器端;我用的是centos6.3
1.tftp服务器配置:/etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
2.dhcp服务器配置:/etc/dhcp/dhcpd.conf
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.11 192.168.0.250;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name "dj.com";
option domain-name-servers 192.168.0.10;
option broadcast-address 192.168.1.255;
next-server 192.168.0.10;//指定tftp服务器地址
# filename "winboot/pxeboot.n12";
filename "pxelinux.0";//指定tftp服务器上的引导文件名
default-lease-time 86400;
max-lease-time 172800;
}
3.samba服务器配置:/etc/samba/smb.conf
[win2008] //指定共享文件夹名称
browsable = true
read only = no
guest ok = yes
path = /win2008install //指定共享目录