免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 778 | 回复: 0
打印 上一主题 下一主题

pxe http dhcp 安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-02 11:44 |只看该作者 |倒序浏览
安装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=http://192.168.40.163/ks/ks228.cfg initrd=initrd.img devfs=nomount ramdisk_size=9216 nofb


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/57953/showart_1952248.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP