A PXE operating system deployment method using out-of-band technology without starting DHCP

CN117193803BActive Publication Date: 2026-10-27GUANGZHOU HEMING SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311057951.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-22
Publication Date
2026-10-27
Estimated Expiration
2043-08-22

AI Technical Summary

Technical Problem

[0005]有鉴于此,本发明提出一种利用带外技术无需启动DHCP的PXE操作系统部署方法、系统、设备及可存储介质,可以有效解决现有技术存在的需要启动DHCP服务器来分配动态IP地址和DHCP工作过程中对网络安全造成很大威胁的缺陷

Benefits of technology

[0045]本发明的有益效果是:通过将待安装部署的服务器通过带外管理端口在中心服务器进行管理,选择待安装部署的服务器进行IPXE操作系统部署,中心服务器依据自动化编程技术,对待安装部署的服务器生成带有嵌入式脚本的i PXE.i so镜像文件,将带有嵌入式脚本的i PXE.i so镜像文件挂载到每台待安装部署的服务器中,待安装部署的服务器自动配置带内网口的静态IP、子网掩码、网关的配置脚本,能够不需要启动DHCP服务器即可实现动态IP地址的分配,同时,通过中心服务器判断待安装部署的服务器是否配置静态IP地址、子网掩码、网关的配置脚本,若是,配置待安装部署的服务器相应的带内网口信息,否则,手动输入静态IP地址、子网掩码、网关的配置脚本来待安装部署的服务器相应的带内网口信息,判断待安装部署的服务器的带内网口IP与中心服务器是否可互相通信,若是,在iPXE环境内自动运行网关的配置脚本,若否,重新修改静态IP地址、子网掩码、网关的配置脚本进行带内网口信息的配置,能够有效进行认证,防止DHCP工作过程中对网络安全造成很大威胁。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117193803B_ABST
    Figure CN117193803B_ABST
Patent Text Reader

Abstract

The application discloses a PXE operating system deployment method without starting DHCP by using out-of-band technology, which comprises the following steps: managing a server to be installed and deployed through an out-of-band management port in a center server, selecting the server to be installed and deployed to perform i PXE operating system deployment, automatically generating i PXE.iso image files with embedded scripts by the center server according to different servers to be installed and deployed, mounting the i PXE.iso image files with embedded scripts into each server to be installed and deployed, automatically configuring a static IP, a subnet mask and a gateway configuration script of an in-band network port of the server to be installed and deployed, judging whether the server to be installed and deployed is configured with the static IP, the subnet mask and the gateway configuration script by the center server, judging whether the in-band network port IP can communicate with each other, downloading an operating system core program and an automatic response file from the center server by the server to be installed and deployed through the in-band network, and performing an operating system installation step by the server to be installed and deployed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of PXE operating system deployment technology, and in particular to a PXE operating system deployment method that utilizes out-of-band technology without requiring DHCP to be started. Background Technology

[0002] Traditional PXE in-band deployment requires manually configuring the server to boot from PXE and starting a DHCP server to assign temporary dynamic IP addresses, subnet masks, gateways, and other configuration information to the in-band ports of the server to be deployed. This enables the server to communicate with the deployment server over the network, allowing the operating system to be deployed via PXE.

[0003] However, this technology requires a DHCP server to be started to assign dynamic IP addresses. If there are multiple DHCP servers in the same business environment, it will cause network chaos. For example, when the operating system is started to deploy the DHCP server, it will cause other business servers to obtain the temporary IP of the DHCP server, resulting in the wrong operating system deployment to other business servers, affecting the normal operation of the business.

[0004] Furthermore, the lack of authentication mechanisms between DHCP servers and clients during DHCP operation poses a significant threat to network security. For example, malicious users can exhaust the IP addresses available on legitimate DHCP servers, then impersonate them to assign IP addresses and other configuration parameters to clients. Without the user's knowledge, they can be redirected to pre-configured fake websites to steal accounts and passwords. Such malicious attacks are extremely harmful. Summary of the Invention

[0005] In view of this, the present invention proposes a PXE operating system deployment method, system, device and storage medium that utilizes out-of-band technology to eliminate the need to start DHCP, which can effectively solve the shortcomings of the existing technology that requires starting a DHCP server to allocate dynamic IP addresses and that DHCP operation poses a great threat to network security.

[0006] The technical solution of this invention is implemented as follows:

[0007] A method for deploying a PXE operating system without enabling DHCP using out-of-band technology, specifically including:

[0008] The servers to be installed and deployed are managed on the central server through out-of-band management ports;

[0009] Select the server to be installed and deployed for IPXE operating system deployment;

[0010] The central server uses automated programming technology to generate an iPXE.iso image file with embedded scripts for the server to be installed and deployed;

[0011] Mount the i PXE.i so image file with embedded scripts to each server to be installed and deployed;

[0012] The server to be installed and deployed will be automatically configured with a static IP address, subnet mask, and gateway.

[0013] The central server determines whether the server to be installed and deployed has a configuration script for static IP address, subnet mask, and gateway. If so, it configures the corresponding internal network port information of the server to be installed and deployed. Otherwise, it manually enters the configuration script for static IP address, subnet mask, and gateway to configure the corresponding internal network port information of the server to be installed and deployed.

[0014] Determine whether the internal network port IP of the server to be installed and deployed can communicate with the central server. If yes, automatically run the gateway configuration script in the iPXE environment. If not, reconfigure the static IP address, subnet mask, and gateway configuration script to configure the internal network port information.

[0015] The server to be installed and deployed downloads the core operating system program and auto-response file from the central server via the in-band network.

[0016] The server to be installed will proceed with the operating system installation steps based on the downloaded operating system core program and the automatic response file.

[0017] As a further optional solution to the PXE operating system deployment method that utilizes out-of-band technology without requiring DHCP, the step of generating an iPXE.iso image file with embedded scripts for the server to be installed and deployed, based on automated programming technology, specifically includes:

[0018] Based on the selected servers to be installed and deployed, the central server generates a miniature i PXE.i.so image file for each server using automated programming technology;

[0019] According to the corresponding configuration of the server to be installed and deployed, embed the configuration script in each mini i PXE.i so image file;

[0020] Repackage the pre-configured scripts into miniature iPXE.i.so image files to generate the final miniature iPXE.i.so image file.

[0021] As a further optional solution to the PXE operating system deployment method that utilizes out-of-band technology without requiring DHCP to be enabled, the configuration script for automatically configuring the static IP address, subnet mask, and gateway of the server to be installed and deployed specifically includes:

[0022] The central server controls the server to be installed and deployed to boot up, and the virtual optical drive of the server to be installed and deployed is the primary boot device;

[0023] Boot the mini iPXE.i.so image to enter the iPXE environment on the server to be installed and deployed;

[0024] The server to be installed and deployed will automatically run a configuration script with static IP address, subnet mask, and gateway for the internal network port within the i PXE environment.

[0025] A PXE operating system deployment system that utilizes out-of-band technology and eliminates the need to enable DHCP includes:

[0026] The out-of-band management port module is used to manage the server to be installed and deployed on the central server through the out-of-band management port;

[0027] The selection module is used to select the server to be installed and deployed for IPXE operating system deployment;

[0028] The automated programming module is used by the central server to generate an iPXE.iso image file with embedded scripts for the server to be installed and deployed, based on automated programming technology.

[0029] The mounting module is used to mount the i PXE.i so image file with embedded scripts to each server to be installed and deployed;

[0030] The configuration module contains configuration scripts for automatically configuring the static IP address, subnet mask, and gateway of the server to be installed and deployed.

[0031] The first judgment module is used by the central server to determine whether the server to be installed and deployed has a configuration script for static IP address, subnet mask, and gateway. If so, the corresponding internal network port information of the server to be installed and deployed is configured. Otherwise, the configuration script for static IP address, subnet mask, and gateway is manually entered to obtain the corresponding internal network port information of the server to be installed and deployed.

[0032] The second judgment module is used to determine whether the internal network port IP of the server to be installed and deployed can communicate with the central server. If yes, the gateway configuration script will be run automatically in the i PXE environment. If no, the static IP address, subnet mask, and gateway configuration script will be modified to configure the internal network port information.

[0033] The download module is used to download the operating system core program and auto-response file from the central server via the in-band network to the server to be installed and deployed.

[0034] The installation module is used by the server to install the operating system based on the downloaded operating system kernel program and the automatic answer file.

[0035] As a further alternative to the aforementioned PXE operating system deployment system that utilizes out-of-band technology and eliminates the need to initiate DHCP, the automated programming module includes:

[0036] The generation module generates a miniature iPXE.iso image file for each of the selected servers to be installed and deployed, based on automated programming technology.

[0037] The matching module is used to embed configuration scripts in each mini-ipXE.i so image file according to the corresponding configuration of the server to be installed and deployed;

[0038] The packaging module is used to repackage the image files of each pre-configured script miniature i PXE.i so, generating the final miniature i PXE.i so image file.

[0039] As a further alternative to the aforementioned PXE operating system deployment system that utilizes out-of-band technology and eliminates the need to enable DHCP, the configuration module includes:

[0040] The control module is used by the central server to control the server to be installed and deployed to start up, and the virtual optical drive of the server to be installed and deployed is the primary boot device;

[0041] The boot module is used to start the mini i PXE.i.so image and boot the server to be installed and deployed into the i PXE environment;

[0042] The runtime module is used to automatically run configuration scripts for static IP addresses, subnet masks, and gateways for servers to be installed and deployed within the i PXE environment.

[0043] A computing device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the steps of the above-described method for deploying a PXE operating system without DHCP using out-of-band technology.

[0044] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above-described methods for deploying a PXE operating system without DHCP using out-of-band technology.

[0045] The beneficial effects of this invention are as follows: By managing the server to be installed and deployed through an out-of-band management port on a central server, the central server selects the server to be installed and deployed for IPXE operating system deployment. Based on automated programming technology, the central server generates an iPXE.iso image file with embedded scripts for the server to be installed and deployed. The image file is mounted to each server to be installed and deployed. The server is automatically configured with a static IP address, subnet mask, and gateway configuration script, enabling dynamic IP address allocation without requiring a DHCP server. Simultaneously, the central server checks if the server has a static IP address, subnet mask, and gateway configuration script. If so, the corresponding internal network port information is configured. Otherwise, the configuration script is manually entered to obtain the internal network port information. The server's internal network port IP address is then checked to see if it can communicate with the central server. If so, the gateway configuration script runs automatically within the iPXE environment. If not, the static IP address, subnet mask, and gateway configuration script is modified to configure the internal network port information. This effectively performs authentication and prevents significant network security threats during DHCP operation. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is a flowchart illustrating a method for deploying a PXE operating system without enabling DHCP using out-of-band technology, according to the present invention.

[0048] Figure 2 This is a schematic diagram of the composition of a PXE operating system deployment system that utilizes out-of-band technology and does not require DHCP startup, according to the present invention. Detailed Implementation

[0049] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0050] refer to Figure 1-2A method for deploying a PXE operating system without enabling DHCP using out-of-band technology, specifically including:

[0051] The servers to be installed and deployed are managed on the central server through out-of-band management ports;

[0052] Select the server to be installed and deployed for IPXE operating system deployment;

[0053] The central server uses automated programming technology to generate an iPXE.iso image file with embedded scripts for the server to be installed and deployed;

[0054] Mount the i PXE.i so image file with embedded scripts to each server to be installed and deployed;

[0055] The server to be installed and deployed will be automatically configured with a static IP address, subnet mask, and gateway.

[0056] The central server determines whether the server to be installed and deployed has a configuration script for static IP address, subnet mask, and gateway. If so, it configures the corresponding internal network port information of the server to be installed and deployed. Otherwise, it manually enters the configuration script for static IP address, subnet mask, and gateway to configure the corresponding internal network port information of the server to be installed and deployed.

[0057] Determine whether the internal network port IP of the server to be installed and deployed can communicate with the central server. If yes, automatically run the gateway configuration script in the iPXE environment. If not, reconfigure the static IP address, subnet mask, and gateway configuration script to configure the internal network port information.

[0058] The server to be installed and deployed downloads the core operating system program and auto-response file from the central server via the in-band network.

[0059] The server to be installed will proceed with the operating system installation steps based on the downloaded operating system core program and the automatic response file.

[0060] In this embodiment, the servers to be installed and deployed are managed by the central server through out-of-band management ports. The central server selects the servers to be installed and deployed for IPXE operating system deployment. Based on automated programming technology, the central server generates an IPXE.iso image file with embedded scripts for each server to be installed and deployed. This IPXE.iso image file is then mounted onto each server. The servers to be installed and deployed are automatically configured with static IP addresses, subnet masks, and gateway configuration scripts for their internal network ports. This enables dynamic IP address allocation without starting a DHCP server. Simultaneously, the central server determines whether the servers to be installed and deployed have configured static IP address, subnet mask, and gateway configuration scripts. If so, the corresponding internal network port information is configured for the servers to be installed and deployed. Otherwise, the configuration scripts for the static IP address, subnet mask, and gateway are manually entered to obtain the corresponding internal network port information for the servers to be installed and deployed. The central server then determines whether the internal network port IP of the servers to be installed and deployed can communicate with the central server. If so, the IPXE.iso image file is then configured. In a PXE environment, the gateway configuration script runs automatically. If not, the static IP address, subnet mask, and gateway configuration script are modified to configure with internal network port information. This can effectively perform authentication and prevent DHCP from posing a significant threat to network security.

[0061] It should be noted that mounting the i PXE.i so image file with embedded scripts to each server to be installed and deployed specifically means mounting it to the virtual optical drive of each server to be installed and deployed.

[0062] Preferably, the step of generating an iPXE.iso image file with embedded scripts for the server to be installed and deployed using automated programming technology specifically includes:

[0063] Based on the selected servers to be installed and deployed, the central server generates a miniature i PXE.i.so image file for each server using automated programming technology;

[0064] According to the corresponding configuration of the server to be installed and deployed, embed the configuration script in each mini i PXE.i so image file;

[0065] Repackage the pre-configured scripts into miniature iPXE.i.so image files to generate the final miniature iPXE.i.so image file.

[0066] In this embodiment, by embedding configuration scripts in each mini iPXE.iso image file according to the corresponding configuration of the server to be installed and deployed, different configuration scripts can be generated based on the different configurations of the servers to be installed and deployed, thereby improving the accuracy of operating system deployment.

[0067] Preferably, the configuration script for automatically configuring the server to be installed and deployed, including the static IP address, subnet mask, and gateway for the internal network port, specifically includes:

[0068] The central server controls the server to be installed and deployed to boot up, and the virtual optical drive of the server to be installed and deployed is the primary boot device;

[0069] Boot the mini iPXE.i.so image to enter the iPXE environment on the server to be installed and deployed;

[0070] The server to be installed and deployed will automatically run a configuration script with static IP address, subnet mask, and gateway for the internal network port within the i PXE environment.

[0071] A PXE operating system deployment system that utilizes out-of-band technology and eliminates the need to enable DHCP includes:

[0072] The out-of-band management port module is used to manage the server to be installed and deployed on the central server through the out-of-band management port;

[0073] The selection module is used to select the server to be installed and deployed for IPXE operating system deployment;

[0074] The automated programming module is used by the central server to generate an iPXE.iso image file with embedded scripts for the server to be installed and deployed, based on automated programming technology.

[0075] The mounting module is used to mount the i PXE.i so image file with embedded scripts to each server to be installed and deployed;

[0076] The configuration module contains configuration scripts for automatically configuring the static IP address, subnet mask, and gateway of the server to be installed and deployed.

[0077] The first judgment module is used by the central server to determine whether the server to be installed and deployed has a configuration script for static IP address, subnet mask, and gateway. If so, the corresponding internal network port information of the server to be installed and deployed is configured. Otherwise, the configuration script for static IP address, subnet mask, and gateway is manually entered to obtain the corresponding internal network port information of the server to be installed and deployed.

[0078] The second judgment module is used to determine whether the internal network port IP of the server to be installed and deployed can communicate with the central server. If yes, the gateway configuration script will be run automatically in the i PXE environment. If no, the static IP address, subnet mask, and gateway configuration script will be modified to configure the internal network port information.

[0079] The download module is used to download the operating system core program and auto-response file from the central server via the in-band network to the server to be installed and deployed.

[0080] The installation module is used by the server to install the operating system based on the downloaded operating system kernel program and the automatic answer file.

[0081] Preferably, the automated programming module includes:

[0082] The generation module generates a miniature iPXE.iso image file for each of the selected servers to be installed and deployed, based on automated programming technology.

[0083] The matching module is used to embed configuration scripts in each mini-ipXE.i so image file according to the corresponding configuration of the server to be installed and deployed;

[0084] The packaging module is used to repackage the image files of each pre-configured script miniature i PXE.i so, generating the final miniature i PXE.i so image file.

[0085] Preferably, the configuration module includes:

[0086] The control module is used by the central server to control the server to be installed and deployed to start up, and the virtual optical drive of the server to be installed and deployed is the primary boot device;

[0087] The boot module is used to start the mini i PXE.i.so image and boot the server to be installed and deployed into the i PXE environment;

[0088] The runtime module is used to automatically run configuration scripts for static IP addresses, subnet masks, and gateways for servers to be installed and deployed within the i PXE environment.

[0089] A computing device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the steps of the above-described method for deploying a PXE operating system without DHCP using out-of-band technology.

[0090] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above-described methods for deploying a PXE operating system without DHCP using out-of-band technology.

[0091] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for deploying a PXE operating system without requiring DHCP startup using out-of-band technology, characterized in that, Specifically, it includes: The servers to be installed and deployed are managed on the central server through out-of-band management ports; Select the server to be installed and deployed for PXE operating system deployment; The central server uses automated programming technology to generate an iPXE.iso image file with embedded scripts for the server to be installed and deployed; Mount the iPXE.iso image file with embedded scripts to each server to be installed and deployed; The server to be installed and deployed will be automatically configured with a static IP address, subnet mask, and gateway. The central server determines whether the server to be installed and deployed has a configuration script for static IP address, subnet mask, and gateway. If so, it configures the corresponding internal network port information of the server to be installed and deployed. Otherwise, the configuration script for static IP address, subnet mask, and gateway is manually entered to configure the corresponding internal network port information of the server to be installed and deployed. Determine whether the internal network port IP of the server to be installed and deployed can communicate with the central server. If yes, automatically run the gateway configuration script in the PXE environment. If not, reconfigure the static IP address, subnet mask, and gateway configuration script to configure the internal network port information. The server to be installed and deployed downloads the core operating system program and auto-response file from the central server via the in-band network. The server to be installed and deployed will proceed with the operating system installation steps based on the downloaded operating system core program and the automatic response file; Specifically, generating an iPXE.iso image file with embedded scripts for the server to be installed and deployed, based on automated programming technology, includes: Based on the selected servers to be installed and deployed, the central server generates a miniature iPXE.iso image file for each server using automated programming technology. According to the corresponding configuration of the server to be installed and deployed, embed the configuration script into each mini iPXE.iso image file; Repackage each pre-configured mini iPXE.iso image file to generate the final mini iPXE.iso image file.

2. The method for deploying a PXE operating system without DHCP startup using out-of-band technology according to claim 1, characterized in that, The configuration script for automatically configuring the server to be installed and deployed, including the static IP address, subnet mask, and gateway for the internal network interface, specifically includes: The central server controls the server to be installed and deployed to boot up, and the virtual optical drive of the server to be installed and deployed is the primary boot device; Boot the mini iPXE.iso image to enter the PXE environment on the server to be installed and deployed; The server to be installed and deployed will automatically run a configuration script within the PXE environment, specifying the static IP address, subnet mask, and gateway for the internal network port.

3. A PXE operating system deployment system that utilizes out-of-band technology and eliminates the need to boot DHCP, characterized in that, include: The out-of-band management port module is used to manage the server to be installed and deployed on the central server through the out-of-band management port; The selection module is used to select the server to be installed and deployed for PXE operating system deployment; The automated programming module is used by the central server to generate an iPXE.iso image file with embedded scripts for the server to be installed and deployed, based on automated programming technology. The mounting module is used to mount the iPXE.iso image file with embedded scripts to each server to be installed and deployed. The configuration module contains configuration scripts for automatically configuring the static IP address, subnet mask, and gateway of the server to be installed and deployed. The first judgment module is used by the central server to determine whether the server to be installed and deployed has a configuration script for static IP address, subnet mask, and gateway. If so, the corresponding internal network port information of the server to be installed and deployed is configured. Otherwise, the configuration script for static IP address, subnet mask, and gateway is manually entered to obtain the corresponding internal network port information of the server to be installed and deployed. The second judgment module is used to determine whether the internal network port IP of the server to be installed and deployed can communicate with the central server. If yes, the gateway configuration script will be run automatically in the PXE environment. If no, the static IP address, subnet mask, and gateway configuration script will be modified to configure the internal network port information. The download module is used to download the operating system core program and auto-response file from the central server via the in-band network to the server to be installed and deployed. The installation module is used by the server to be installed and deployed to perform the operating system installation steps based on the downloaded operating system core program and the automatic answer file; The automated programming module includes: The generation module generates a miniature iPXE.iso image file for each of the selected servers to be installed and deployed, based on automated programming technology. The matching module is used to embed configuration scripts into each mini iPXE.iso image file according to the corresponding configuration of the server to be installed and deployed; The packaging module is used to repackage the individual mini iPXE.iso image files that have been configured with scripts, generating the final mini iPXE.iso image file.

4. A PXE operating system deployment system that utilizes out-of-band technology and eliminates the need for DHCP startup, as described in claim 3, is characterized in that... The configuration module includes: The control module is used by the central server to control the server to be installed and deployed to start up, and the virtual optical drive of the server to be installed and deployed is the primary boot device; The boot module is used to start the mini iPXE.iso image and boot the server to be installed and deployed into the PXE environment; The runtime module is used to automatically run configuration scripts for static IP addresses, subnet masks, and gateways for servers to be installed and deployed within the PXE environment.

5. A computing device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any one of the PXE operating system deployment methods of claims 1-2 that utilize out-of-band technology without enabling DHCP.

6. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of any one of the PXE operating system deployment methods of claims 1-2 that utilize out-of-band technology without enabling DHCP.

Citation Information

Patent Citations

  • Method, device and system for deploying operating system

    CN106484437A

  • Out-of-band network IP automatic configuration method and device, electronic equipment and storage medium

    CN112272246A