2012年1月27日 星期五

PXE Server 架設基礎篇


PXE Server 架設基礎篇
需求說明:免外接儲存媒體進行系統維護或者安裝,一般可用於 Linux 系統安裝/記
憶體測試/ghost/無硬碟式系統等等….

Server 系統需求:Linux server 啟動 DHCPD/TFTPD
Client 系統需求:網路卡支援 PXE 功能即可

Server 端 DHCPD 設置
[root@centos ~]# more /etc/dhcpd.conf
ddns-update-style               none;
allow bootp;
allow booting;
option ip-forwarding    false;  # No IP forwarding
option mask-supplier    false;  # Don't respond to ICMP Mask req
default-lease-time              259200;
max-lease-time                  518400;
option broadcast-address        192.168.0.255;
subnet 192.168.0.0 netmask 255.255.255.0{
  range 192.168.0.51 192.168.0.100;
  option root-path     "192.168.0.201:/opt/ltsp/i386"; #這是給 ltsp 用的
  option subnet-mask   255.255.255.0;
     #host Precision390 {
     #   hardware ethernet    00:40:95:30:43:B4;
     #   fixed-address        192.168.0.55;
     #}
  next-server 192.168.0.201;      #到這台 server 要 tftpd 服務
  filename "/pxelinux.0";      #PXE boot loader
}

設定 DHCP 服務介面 (多於一張網卡時可用)
[root@centos ~]# more /etc/sysconfig/dhcpd
# Command line options here
DHCPDARGS=eth0
DHCP 開機服務調整
查詢[root@centos ~]# chkconfig --list dhcpd
啟用[root@centos ~]# chkconfig --level 345 dhcpd on
關閉[root@centos ~]# chkconfig --level 345 dhcpd off

沒有留言: