pxe网启备份linux(3)——linux

linux充当服务器  提供dhcp tftp  镜像功能


1、工具软件:
DHCP 、 FTP
tftp-hpa 5.2 (tftp0.7无法满足大文件需求)

g4l-v0.42.iso

根目录下新建tftpboot     将g4l、menu.lst、grldr

赋权: chomod 777 /tftpboot     注意将tftpboot和里面的文件全部777。

 

我的打包:自己放g4l-v0.42.iso,  (如果 iso改名,要修改menu.lst)

http://download.csdn.net/detail/rydiy/4459603


2、  DHCP
使用linux中已经安装的dhcp,修改/etc/dhcpd.conf

…
subnet192.168.38.0 netmask 255.255.255.0 {
   range 192.168.38.10  192.168.38.20;
   filename"grldr";      -----------------------------指定引导grub
   next-server 192.168.38.19;-------------------------指定tftp地址
   …
}


3、  FTP
网络中任意ftp,但必须是21端口

4、  TFTP
请先确保机器中安装有gcc
解压tftp-hpa-5.2.tar, cd到文件夹中,键入:make  和  make install。
修改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     --------指定tftp根目录
        disable       = no                -------设置tftp可用
}

       
 
5、  启动pxe:
启动dhcp:rcdhcpd start
启动tftp:/etc/init.d/xinetd restart

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值