Chinaunix首页 | 论坛 | 博客
  • 博客访问: 313049
  • 博文数量: 75
  • 博客积分: 1956
  • 博客等级: 上尉
  • 技术积分: 862
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-21 15:36
文章分类

全部博文(75)

文章存档

2018年(1)

2012年(3)

2011年(19)

2010年(1)

2009年(1)

2008年(50)

分类: LINUX

2012-03-29 11:23:49

在网站找的资料,好不容易搭完了。。保存一下,防止以后忘记。。
相关软件包
dhcp-4.1.1-25.P1.el6.x86_64
dhcp-common-4.1.1-25.P1.el6.x86_64
tftp-server-0.49-7.el6.x86_64
syslinux-4.02-4.el6.x86_64

cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
cp /var/ftp/pub/centos/images/pxeboot/initrd.img /var/lib/tftpboot/centos64/
cp /var/ftp/pub/centos/images/pxeboot/vmlinuz /var/lib/tftpboot/centos64/
cp /var/ftp/pub/centos/images/vesamenu.c32 /var/lib/tftpboot/
cp /var/ftp/pub/centos/images/vesainfo.c32 /var/lib/tftpboot/
mkdir /var/lib/tftpboot/pxeconfig.cfg

-----------------DHCP-----------------------------
/etc/dhcp/dhcpd.conf
option domain-name "server.dyq.com";
option domain-name-servers 192.168.121.1;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
next-server 192.168.121.1;

subnet 192.168.121.0 netmask 255.255.255.0 {
  range 192.168.121.10 192.168.121.100;
  option domain-name-servers 192.168.121.1;
  option domain-name "server.dyq.com";
  option routers 192.168.121.254;
  option subnet-mask 255.255.255.0;
  default-lease-time 600;
  max-lease-time 7200;
  filename "/pxelinux.0";
}

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

--------------------------PXE--------------------------------
/var/lib/tftpboot/pxelinux.cfg/default
default vesamenu.c32
#prompt 1
timeout 600
display boot.msg
menu title Welcome to DYQ.COM

label CentOS64
  menu label ^CentOS 64
  menu default
  kernel centos64/vmlinuz
  append initrd=centos64/initrd.img




阅读(5710) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~