歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> linux下的網絡安裝、配置及調試(二)

linux下的網絡安裝、配置及調試(二)

日期:2017/2/25 10:38:19   编辑:Linux教程
 2) 工作過程

  在上圖中,PXE client是需要安裝Linux的計算機,TFTP Server和DHCP Server運行在另外一台Linux Server上。Bootstrap文件、配置文件、Linux內核以及Linux根文件系統都放置在Linux Server上TFTP服務器的根目錄下。

  PXE client在工作過程中,需要三個二進制文件:bootstrap、Linux 內核和Linux根文件系統。Bootstrap文件是可執行程序,它向用戶提供簡單的控制界面,並根據用戶的選擇,下載合適的Linux內核以及Linux根文件系統。

  3. 步驟

  有了前面的背景知識,接下來就可以正式操作了,下面按照順序給出了操作步驟:

  配置DHCP Server

  選用ISC dhcp-3.0,DHCP Server的配置文件是/etc/dhcpd.conf,配置文件的內容如下:

  option space PXE;

  option PXE.mtftp-ip code 1 = ip-address;

  option PXE.mtftp-cport code 2 = unsigned integer 16;

  option PXE.mtftp-sport code 3 = unsigned integer 16;

  option PXE.mtftp-tmout code 4 = unsigned integer 8;

  option PXE.mtftp-delay code 5 = unsigned integer 8;

  option PXE.discovery-control code 6 = unsigned integer 8;

  option PXE.discovery-mcast-addr code 7 = ip-address;

  class \”pxeclients\”

Copyright © Linux教程網 All Rights Reserved