Chinaunix首页 | 论坛 | 博客
  • 博客访问: 292006
  • 博文数量: 109
  • 博客积分: 5814
  • 博客等级: 大校
  • 技术积分: 1440
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-26 10:17
文章分类

全部博文(109)

文章存档

2010年(9)

2009年(36)

2008年(64)

我的朋友

分类: LINUX

2009-06-02 11:44:40

安装tftp
yum install tftp*
 
vi /etc/xinetd.d/tftp
将tftp disabled yes 改成no
启动xinetd
services xinetd start
 
安装dhcp yum install dhcp
 cp /usr/share/doc/dhcp*/dhcpd.sample.conf /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 10.10.10.0 netmask 255.255.255.0 {
# --- default gateway
        option routers                  10.10.10.1;
        option subnet-mask              255.255.255.0;
#       option nis-domain               "domain.org";
#       option domain-name              "domain.org";
        option domain-name-servers      172.16.16.10;
        option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.1.1;
#       option netbios-name-servers     192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#       option netbios-node-type 2;
        range dynamic-bootp 10.10.10.150 10.10.10.160;
        default-lease-time 21600;
        max-lease-time 43200;
        # we want the nameserver to appear at a fixed address
#       host ns {
#               next-server marvin.redhat.com;
#               hardware ethernet 12:34:56:78:AB:CD;
#               fixed-address 207.175.42.254;
#       }
        next-server 10.10.10.197;
        filename "/pxelinux.0";
}
不要忘记写冒号 。我少写了。怎么也启动不了
 
#cp /usr/lib/syslinux/pxelinux.0   /tftpboot/
#cp /media/image/pxeboot/initr.img  /tftpboot/
#cp /media/image/pxeboot/vmlinuz    /tftpboot/
#cp /media/isolinux/*.msg       /tftpboot/
#mkdir /tftpboot/pxelinux.cfg
#cp /media/isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default
 
vi /tftpboot/boot.msg
 
 
在里面添加
 
vim /tftpboot/pxelinux.cfg/default
 
label autoinstall
kernel vmlinuz
append ks= initrd=initrd.img devfs=nomount ramdisk_size=9216 nofb
 
阅读(843) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~