热门关键字:  ubuntu  分区  linux系统进程  Fedora  函数
当前位置 :| 主页>Linux教程>linux安装>

网络无人职守安装linux PXE

来源: 作者: 时间:2007-12-04 Tag: 点击:

网络无人职守安装linux

Writen BY HPLJ-2007.12.4

 

 

1 配置启动安装服务器

 

1)install and configure dhcp service

/etc/dhcpd.conf

such as

 

 

option domain-name "mydomain";

ddns-update-style none;

 

max-lease-time 7200;

server-name "bootserver";

default-lease-time 600;

 

allow booting;

allow bootp;

 

subnet 192.168.138.0 netmask 255.255.255.0 {

    range 192.168.138.1 192.168.138.254;

  

}

 

group pxe {

    filename "/pxelinux.0";

    host client1 { hardware ethernet 00:0C:29:70:24:5B;            

                       fixed-address    192.168.138.30;

                    }

}

 

 

#文件 pxelinux.0(在 TFTP 服务器的根目录中)将作为启动映像被网卡ROM里的PXE客户端载入内存并运行。

 

每增加一台需安装的机器,我们需在dhcpd.conf中增加一条host条目,将客户机的MAC地址输入进去,同时分配一个IP地址,如果

不输入MAC地址,客户机将无法通过DHCP取的IP地址。

 

 

2)install and configure tftp service

 

/etc/xinetd.d/tftp

 

service tftp

{

    socket_type     = dgram

    protocol        = udp

    wait            = yes

    user            = root

    server          = /usr/sbin/in.tftpd

    server_args     = -s /tftpboot

    disable         = no

}

 

#将disable = yes 改成disable = no

重启xinetd服务,以使tftp服务生效;

 

#service xinetd restart

 

最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册