Server equipment network configuration method, device and system
Through the improved DHCP protocol and AI technology, customized network configuration files are generated, which solves the accuracy and efficiency of server equipment network configuration in the IDC computer room, realizes automatic IP address allocation and settings, and ensures compliance and compatibility of the network environment.
Patent Information
- Application Number
- CN202510726831.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-08-08
AI Technical Summary
The existing DHCP protocol has high center dependence, IP address uncertainty and service access instability in the IDC computer room, resulting in low accuracy and efficiency of server equipment network configuration.
Adopting improved DHCP protocol and AI technology, customized network configuration files are generated through deep learning text generation model, supporting multiple operating systems, and achieving automated IP address allocation and settings.
The automated network configuration of newly installed server equipment in the IDC computer room has been realized, which improves the accuracy and consistency of configuration, reduces the possibility of human errors, and improves work efficiency and equipment utilization.
Smart Images

Figure CN120455265A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of operating system configuration, and in particular to a server device network configuration method, device and system. Background Art
[0002] DHCP (Dynamic Host Configuration Protocol) is a local area network protocol located at the application layer of the OSI model and operates using the UDP protocol. It uses a client / server communication model and is primarily used for centralized management and allocation of IP addresses, enabling network devices to dynamically obtain network configuration information such as IP addresses, subnet masks, default gateways, and DNS servers.
[0003] DHCP operates primarily in four phases: discovery, offer, selection, and confirmation. During the discovery phase, the DHCP client broadcasts a DHCP DISCOVER message to all DHCP servers on the network, searching for available DHCP servers. During the offer phase, after receiving the client's request, the DHCP server selects an IP address from the address pool and responds to the client with a DHCP OFFER message. During the selection phase, the DHCP client receives OFFER messages from multiple DHCP servers, selects one as its IP address provider, and then sends a DHCP REQUEST message to confirm the selection. Finally, during the confirmation phase, after receiving the client's ACK message, the DHCP server sends a DHCP ACK message to the client, formally assigning the IP address and other network configuration information.
[0004] DHCP greatly simplifies network management, improves IP address utilization, and reduces the likelihood of configuration errors. It's particularly useful in large-scale network environments, such as enterprises, schools, and data centers, where device IP addresses frequently change or when managing a large number of devices. DHCP also supports both IPv4 and IPv6, providing flexible IP address allocation and management for network devices.
[0005] Although DHCP provides many conveniences in network management, it also has some drawbacks that cannot be ignored:
[0006] Central dependency: The network is highly dependent on the DHCP server. Once the DHCP server fails, the IP allocation mechanism of the entire network may be paralyzed.
[0007] IP address uncertainty: The IP address obtained through DHCP is uncertain, which may make it difficult to access the user, especially in scenarios where a fixed IP address is required.
[0008] Stability of service access: Service devices should be configured with fixed static IP addresses. If Dynamic Host Configuration Protocol (DHCP) is used, the device's IP address may change, affecting service accessibility.
[0009] In view of the above-mentioned defects of the existing DHCP protocol, the manual network configuration method of the existing server equipment has low configuration accuracy. Summary of the Invention
[0010] The purpose of this application is to provide a server equipment network configuration method, device and system, which realizes the automatic IP address allocation and setting function of newly installed server equipment in the IDC (Internet Data Center) computer room through an improved DHCP protocol and advanced AI technology. It has high compatibility and can support many different models and versions of operating systems, ensuring accurate network configuration.
[0011] In a first aspect, the present application provides a server device network configuration method, which is applied to a server; the server is in communication connection with multiple agents; each agent is pre-installed in the operating system of a newly-installed server device; the server and the agent are both configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; the method includes: receiving a DHCP request sent by an agent based on the improved DHCP protocol after the newly-installed server device is started and running; the DHCP request carries the following content: device information and operating system information; based on the device information carried in the DHCP request, searching for corresponding network parameter configuration information from pre-imported data to be configured, and generating customized network configuration file information based on the network parameter configuration information and the operating system information using a preset file information generation model; writing the network configuration file information into a DHCP response packet and sending it to the agent, so that the agent completes the automated setup process of the network environment of the newly-installed server device.
[0012] Furthermore, the above-mentioned file information generation model is a text generation model based on deep learning, including: DeepSeek model or Transformer model.
[0013] Furthermore, the above-mentioned device information includes a MAC address, an SN serial number, and an IPMI address; the step of searching for corresponding network parameter configuration information from the pre-imported data to be configured based on the device information carried in the DHCP request includes: judging whether corresponding first configuration information is found from the pre-imported data to be configured based on the MAC address; if so, using the found first configuration information as the network parameter configuration information; if not, judging whether corresponding second configuration information is found from the pre-imported data to be configured based on the SN serial number; if so, using the found second configuration information as the network parameter configuration information; if not, judging whether corresponding third configuration information is found from the pre-imported data to be configured based on the IPMI address; if so, using the found third configuration information as the network parameter configuration information.
[0014] Furthermore, after the above-mentioned step of generating customized network configuration file information by processing the network parameter configuration information and the operating system information using a preset configuration file generation model, it also includes: verifying and optimizing the network configuration file information by comparing it with known network configuration standards or by comparing it through an AI model.
[0015] Furthermore, the above-mentioned server end is also configured with a management module. After the network environment of multiple newly-launched server devices is automatically set up through multiple agents, the method also includes: displaying the configuration status of multiple newly-launched server devices through the management module to monitor the configuration progress; and performing connectivity checks on the assigned IP addresses corresponding to the newly-launched server devices through the management module to verify the correctness of the configuration.
[0016] In a second aspect, the present application also provides a server device network configuration method, which is applied to an Agent; the Agent is communicatively connected to a server; the Agent is pre-installed in an operating system in a newly-installed server device; both the server and the Agent are configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; the method includes: after the newly-installed server device is started and running, based on the improved DHCP protocol, sending a DHCP request to the server, so that the server searches for corresponding network parameter configuration information from pre-imported configuration data according to the device information carried in the DHCP request, and generates customized network configuration file information by using a preset file information generation model based on the network parameter configuration information and operating system information; receiving a DHCP response packet containing the network configuration file information sent by the server; and completing the automated setting process of the network environment of the newly-installed server device according to the DHCP response packet.
[0017] Furthermore, the above method further includes: if no DHCP response packet is received, setting a temporary IP, and resending a DHCP request to the server until a DHCP response packet is received.
[0018] Furthermore, the above-mentioned steps of completing the automated setup process of the network environment of the newly-installed server device based on the DHCP response packet include: parsing the DHCP response packet to obtain network configuration file information; creating a new configuration file in a specified path based on the network configuration file information; executing a specific verification configuration command on the configuration file; after successful verification, restarting the network; and making an RPC call to the server to update the network configuration status to completed.
[0019] In a third aspect, the present application also provides a server device network configuration device, which is applied to a server end; the server end is communicatively connected to multiple agents; each agent is pre-installed in the operating system of a newly-installed server device; the server end and the agent are both configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; the device includes: a request receiving module, which is used to receive a DHCP request sent by the agent based on the improved DHCP protocol after the newly-installed server device is started and running; the DHCP request carries the following content: device information and operating system information; a configuration generating module, which is used to search for corresponding network parameter configuration information from pre-imported configuration data based on the device information carried in the DHCP request, and generate customized network configuration file information based on the network parameter configuration information and operating system information using a preset file information generation model; a configuration sending module, which is used to write the network configuration file information into a DHCP response packet and send it to the agent, so that the agent completes the automated setting process of the network environment of the newly-installed server device.
[0020] In a fourth aspect, the present application also provides a server device network configuration system, which includes a server and multiple agents connected in communication; each agent is pre-installed in the operating system of a newly installed server device; the server and the agent are both configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; the server is used to execute the method described in the first aspect; the agent is used to execute the method described in the second aspect.
[0021] The present application provides a server device network configuration method, apparatus, and system, wherein the method is applied to a server; the server is in communication connection with multiple agents; each agent is pre-installed in the operating system of a newly-installed server device; the server and the agent are both configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; the method includes: receiving a DHCP request sent by an agent based on the improved DHCP protocol after the newly-installed server device is started and running; the DHCP request carries the following content: device information and operating system information; based on the device information carried in the DHCP request, searching for corresponding network parameter configuration information from pre-imported data to be configured; processing the network parameter configuration information and the operating system information using a preset file information generation model to generate customized network configuration file information; writing the network configuration file information into a DHCP response packet and sending it to the agent, so that the agent completes the automated setup process of the network environment of the newly-installed server device. This application uses an improved DHCP protocol and advanced AI technology to achieve automated IP address allocation and configuration for newly installed server equipment in the IDC computer room. It has high compatibility and can support many different models and versions of operating systems, ensuring accurate network configuration. In addition, it greatly simplifies the management process of server equipment network configuration and achieves a high degree of automation. It not only greatly improves work efficiency, but also significantly reduces the possibility of errors caused by manual operations, thereby ensuring the consistency and compliance of all device configurations in the entire network environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the specific implementation methods or the description of the prior art. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0023] Figure 1 A flowchart of a server device network configuration method provided in an embodiment of the present application;
[0024] Figure 2 A schematic diagram of a monitoring management interface provided in an embodiment of the present application;
[0025] Figure 3 A schematic diagram of another server device network configuration method provided in an embodiment of the present application;
[0026] Figure 4 An interactive diagram of a server device network configuration method provided in an embodiment of the present application;
[0027] Figure 5 A data import format diagram provided in an embodiment of the present application;
[0028] Figure 6 A schematic diagram of a DHCP message format provided in an embodiment of the present application;
[0029] Figure 7 A flowchart of a configuration search process provided in an embodiment of the present application;
[0030] Figure 8 A flowchart of a configuration file information generation process provided in an embodiment of the present application;
[0031] Figure 9 A structural block diagram of a server device network configuration device provided in an embodiment of the present application;
[0032] Figure 10 A structural block diagram of another server device network configuration device provided in an embodiment of the present application;
[0033] Figure 11 A schematic diagram of the structure of a server device network configuration system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will clearly and completely describe the technical solutions of this application in conjunction with the embodiments. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0035] With the continuous evolution of computer technology, the number of computer equipment in IDC computer rooms continues to increase, and the number of purchases at one time has also doubled. In view of the various defects of the existing DHCP protocol, such as central dependence, IP address uncertainty, and service access instability, the existing manual network configuration method of server equipment has low configuration accuracy and efficiency. The embodiment of the present application provides a server equipment network configuration method, device and system, which realizes the automatic IP address allocation and setting function of the newly installed server equipment in the IDC computer room through the improved DHCP protocol and advanced AI technology. It has high compatibility and can support many different models and versions of operating systems, ensuring the accuracy of network configuration.
[0036] To facilitate understanding of this embodiment, a server device network configuration method disclosed in an embodiment of the present application is first introduced in detail.
[0037] An embodiment of the present application provides a server device network configuration method, which is applied to a server; the server communicates with multiple agents; in actual environments, there may be as few as dozens or as many as hundreds or even thousands of such agents. Each agent is pre-installed in the operating system of a newly installed server device; both the server and the agent are configured with an improved DHCP protocol; the improved DHCP protocol simplifies the original DHCP protocol, retaining only the discovery phase and the provision phase. The discovery phase is the process in which the DHCP client sends a network configuration request packet, while the provision phase is the phase in which the DHCP server finds the configuration information and responds to it after receiving the client's request packet.
[0038] After the DHCP Agent server is started, if the network has not been configured, it will automatically configure the network according to the network planning configuration using the following steps. Figure 1 As shown, the server device network configuration method specifically includes the following steps:
[0039] Step S102: receiving a DHCP request sent by the agent based on the improved DHCP protocol after the newly installed server device is started and running; the DHCP request carries the following content: device information and operating system information;
[0040] The above device information includes MAC address, SN serial number and IPMI address; operating system information includes: operating system name and version information.
[0041] Step S104: searching for corresponding network parameter configuration information from pre-imported configuration data based on the device information carried in the DHCP request, and processing the network parameter configuration information and operating system information using a preset file information generation model to generate customized network configuration file information.
[0042] The above-mentioned step of searching for corresponding network parameter configuration information from the pre-imported data to be configured based on the device information carried in the DHCP request specifically includes the following steps: judging whether the corresponding first configuration information is found from the pre-imported data to be configured based on the MAC address; if so, using the found first configuration information as the network parameter configuration information; if not, judging whether the corresponding second configuration information is found from the pre-imported data to be configured based on the SN sequence number; if so, using the found second configuration information as the network parameter configuration information; if not, judging whether the corresponding third configuration information is found from the pre-imported data to be configured based on the IPMI address; if so, using the found third configuration information as the network parameter configuration information.
[0043] The above network configuration file information is used to define the configuration parameters of the network interface, which include: IP address, subnet mask, default gateway, BOND information, DNS server, server version and other key network parameters.
[0044] The aforementioned file information generation model is a text generation model based on deep learning, including a DeepSeek model or a Transformer model. In this embodiment, SFT-based Transformer model fine-tuning is used to generate a network configuration model, namely the file information generation model. Supervised fine-tuning (SFT) is a key optimization method for pre-training large language models. The following will be explained based on the standard training process and the content of the invention:
[0045] 1. Data preparation:
[0046] Build a high-quality instruction dataset: manually annotate or filter task-related samples (such as question-answer pairs and code generation examples);
[0047] Format model input template (Alpaca format): [command] + [input] → [expected output];
[0048] After labeling the original data, you can obtain the formatted structured data shown above, which can be used for subsequent fine-tuning training.
[0049] 2. Fine-tune configuration:
[0050] For fine-tuning, Lora technology is a good choice. This technology uses low memory, is fast, plug-and-play, and retains most of the original knowledge. Using the open-source llama-Factory framework allows for rapid fine-tuning.
[0051] In addition, 10-20% of the data can be used as a validation set during training to adjust hyperparameters to improve the performance of the Lora adapter.
[0052] 3. Inference loading:
[0053] When using the DeepSeek model to load inference, you can use the lora_adaptor parameter to load Lora, or you can merge the adapter with the model before loading it, so that you can perform targeted questions and answers based on the DHCP configuration data.
[0054] After the above-mentioned step of generating customized network configuration file information by processing the network parameter configuration information and the operating system information using the preset configuration file generation model, the step also includes: verifying and optimizing the network configuration file information by comparing it with known network configuration standards or by comparing it through an AI model.
[0055] In this embodiment, the verification of the network configuration generated by the model requires the establishment of a multi-level verification system to ensure the correctness of the configuration in terms of syntax, semantics, and functionality. Syntax layer verification includes data format verification and parameter format checking. Data format verification is performed using a platform-specific parser: such as Linux: netplan try (verify Netplan configuration). Parameter format checking includes IP address legitimacy: regular expression verification of IPv4 / IPv6 format, CIDR range detection: ensuring the validity of the subnet mask (such as / 24 corresponds to 255.255.255.0), data type verification: digital range (BOND mode 0-6), etc.
[0056] Step S106: Write the network configuration file information into a DHCP response packet and send it to the Agent, so that the Agent completes the automatic setting process of the network environment of the newly-installed server device.
[0057] The above steps describe the entire process of automatic configuration of a single server. However, in the system, it is necessary to serve many server devices. Therefore, the above process can also realize the batch server configuration process.
[0058] In a preferred embodiment, the server is further configured with a management module. After automatically setting the network environment of multiple newly-added server devices through multiple agents, the method further includes:
[0059] (1) Display the configuration status of multiple newly installed server devices through the management module to monitor the configuration progress;
[0060] In the process of automatic configuration of IP addresses, you can query the configuration status of each server in the system, such as Figure 2 As shown, you can monitor in real time which devices have completed IP configuration and which have yet to complete it. Since the system already has a clear total number of servers requiring configuration, each server's status is updated as configuration completes. Therefore, by querying this status information, you can clearly understand the overall configuration progress, ensuring that configuration progresses as planned and promptly identifying and addressing unfinished devices, effectively monitoring and managing the entire configuration process.
[0061] (2) The management module performs a connectivity check on the assigned IP address corresponding to the newly installed server device to verify the correctness of the configuration.
[0062] After the server completes automatic batch configuration, the system will perform a connectivity check on the assigned IP addresses. This check attempts to establish a network connection with these IP addresses to verify the correctness of the configuration. If any network configuration issues are detected, the system will display relevant data to facilitate timely identification and resolution of the anomaly.
[0063] The server device network configuration method provided in the embodiment of the present application provides a set of automated IP address setting and allocation solutions for newly installed service equipment in the IDC computer room by integrating the improved DHCP protocol with advanced AI technology (i.e., technology for automatically generating configuration file information from a file information generation model). This solution has high compatibility and can support many different models and versions of operating systems to ensure accurate network configuration; it achieves rapid deployment, effectively avoids manual operation links, significantly shortens server preparation time, and improves overall server utilization; in addition, the solution also greatly improves deployment efficiency and accuracy, and reduces the risk of human error.
[0064] Based on the above-mentioned server method embodiment, the present application embodiment also provides a server device network configuration method, which is applied to the Agent; the Agent is connected to the server in communication; the Agent is pre-installed in the operating system of the newly installed server device; the server and the Agent are both configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; see Figure 3 As shown, the method specifically includes the following steps:
[0065] Step S302: After the newly installed server device is started and running, it sends a DHCP request to the server based on the improved DHCP protocol. The server searches for corresponding network parameter configuration information from the pre-imported configuration data based on the device information carried in the DHCP request. The server then processes the network parameter configuration information and operating system information using a preset file information generation model to generate customized network configuration file information.
[0066] Step S304: receiving a DHCP response packet including network configuration file information sent by the server;
[0067] Step S306: According to the DHCP response packet, the automatic setting process of the network environment of the newly-installed server device is completed.
[0068] In specific implementation, the network configuration file information is obtained by parsing the DHCP response packet (the network configuration of the operating system is driven by the configuration file, and the configuration is stored in a text file); a new configuration file is created in the specified path according to the network configuration file information; a specific verification configuration command is executed on the configuration file; after successful verification, the network is restarted; an RPC call is made to the server to update the network configuration status to completed.
[0069] In complex network environments, the Agent on a newly installed server may sometimes fail to receive a response from the DHCP server. To address this situation, the Agent uses a pre-defined IP address as a solution, ensuring it is within the same IP network segment as the server. The Agent then resends the DHCP request to ensure normal communication with the server. This method also includes: if no DHCP response packet is received, a temporary IP address is set and the DHCP request is resent to the server until a DHCP response packet is received.
[0070] In the server device network configuration method provided in the embodiment of the present application, when the newly purchased server device is started and running, its built-in Agent will send a DHCP request containing specific information to the server through the improved DHCP protocol. The request includes key data such as MAC address, SN serial number, IPMI address, and operating system version. After the server receives the request sent by the client, the modified DHCP server will automatically retrieve the corresponding configuration details based on the information provided, and use the model obtained through AI training to generate a customized configuration file, and then send the file back to the client. Finally, the client completes the automated setup process of its own network environment based on the received configuration information. This method not only improves work efficiency, but also reduces the possibility of human error.
[0071] This approach significantly simplifies the management process of server network configuration, achieving a high degree of automation. Using pre-defined network planning and configuration rules, the tool automatically assigns and sets the correct network parameters for each newly launched server. This not only greatly improves work efficiency but also significantly reduces the potential for errors caused by manual operations, ensuring consistent and compliant configurations across all devices in the entire network environment.
[0072] The interaction process between the above server and Agent is as follows: Figure 4 The following is a detailed description of the implementation of the entire interaction process:
[0073] 1. Import configuration:
[0074] The data import function is designed to efficiently integrate the configuration information of network planning into the system. By supporting the import of data files in Excel format, it significantly reduces the tediousness and error rate of manual data input. Users can directly select local Excel documents to upload data. During the import process, the system will intelligently identify the data content and perform configuration update operations for records that already exist in the system, ensuring the timeliness and accuracy of the information and avoiding the trouble of repeated entry. The format of data import is as follows: Figure 5 shown.
[0075] 2.DHCP Agent Discover Request (referred to as the aforementioned DHCP Request):
[0076] Before explaining the Agent, let's first explain the extended modifications to the DHCP message. The DHCP message format is as follows: Figure 6 As shown in Figure 1, the Options field is extended to store control information and parameters not defined in the standard protocol. These options allow the DHCP server to provide additional configuration information to the client to meet the needs of different network environments.
[0077] Because of this, in the embodiment of the present application, the request and response data are transmitted using the Options field, which stores a JSON string of information.
[0078] When a newly installed server is started, the built-in DHCP Agent service will also start. During the startup process, the Agent will check whether the network configuration has been completed. If the configuration has not been completed, the Agent will send a DHCP Discover request containing the server's SN serial number, BMC network, MAC address, operating system name and version information. The JSON data format in Options is as follows:
[0079]
[0080] 3. Query network configuration parameter information based on MAC address, SN serial number, and IPMI address:
[0081] After receiving the DHCP request from the Agent, the server retrieves the request details from the Options section of the request. If the request does not contain the structured information provided by the Agent, it is not Enhanced DHCP protocol information and can be ignored. If it can obtain the information, it indicates that the data is transmitted by the Enhanced DHCP protocol. In this case, the server parses the data and obtains the request information.
[0082] See also Figure 7As shown in the figure, in actual application, the Agent will pass in the SN serial number, MAC address, and IPMI address. After receiving the incoming information, the server will first search according to the SN serial number. If it is found, then the configuration information is the network parameter configuration information of the device and is returned. Otherwise, it will continue to search according to the MAC address. If it is found, then the configuration information is the network parameter configuration information of the device and is returned. Otherwise, it will continue to search according to the IPMI address. If it is found and there is only one configuration information, then the configuration information is the network parameter configuration information of the device and is returned. Otherwise, the network parameter configuration information is not found.
[0083] 4. Generate network configuration file information:
[0084] See also Figure 8 As shown in the figure, on the server side, the network parameter configuration information of the newly launched server device is first obtained, including the IP address, gateway address, server version, key network parameters, etc. After obtaining the network parameter configuration information, an appropriate AI model is selected. This model can be a text information generation model based on deep learning, such as DeepSeek or the Transformer model. The selected model should have good text generation capabilities and a certain understanding of network configuration knowledge. Then, the selected AI model is used to combine the provided network parameter configuration information to generate network configuration information. Finally, the generated network configuration information is verified and optimized to ensure its correctness and effectiveness. This can be achieved by comparing it with known network configuration standards or through AI model comparison.
[0085] 5. Generate the network configuration file information, write it into the DHCP Offer packet and reply it to the Agent.
[0086] 6. If the Agent does not receive a response when sending a request, it will continue to send requests periodically until it receives a response.
[0087] 7. If the Agent receives a DHCP offer response, it first processes the returned data, focusing on the network configuration file information, file path, and file name. Because different operating systems utilize different network configuration methods, the first step after receiving this data is to create a new configuration file in the specified path based on the provided file contents. Next, to ensure the correctness and validity of the configuration, it executes specific configuration verification commands. This process ensures that network configuration changes are accurately applied and verified regardless of the system environment.
[0088] 8. After completing the network configuration, the Agent will restart the network.
[0089] 9. After the network is restarted, the Agent will make an RPC call to the server and update the network configuration status to Completed.
[0090] The beneficial effects of the embodiments of the present application are as follows:
[0091] 1. Supports determining the required IP address range and quantity based on factors such as network scale, number of devices, and future expansion plans.
[0092] 2. Establish an IP address database: record each device’s IP address, MAC address, device type, location, and other information for easy management and troubleshooting.
[0093] 3. Automatically assign IP addresses. When a device accesses the network, there is no need to manually configure the IP address. The server will find the IP address that should be assigned to the device based on the configuration information and configure it, significantly reducing the administrator's workload.
[0094] 4. Based on the AI model, preset rules and algorithms, network configuration files are automatically generated, which can automatically adapt to different versions and different operating systems without excessive development. There is no need for manual writing and adjustment, which greatly saves time and human resources.
[0095] 5. Provide a unified management interface to achieve centralized monitoring of network configuration and improve maintenance convenience. Administrators can centrally view the IP allocation of all devices through the web server, quickly locate problems, and improve troubleshooting efficiency.
[0096] 6. The embodiment of the present application can monitor the progress of network configuration in real time, including the number of configured devices, devices being configured, and the estimated remaining time, etc. This makes it easier for administrators to understand the configuration status of the entire network.
[0097] 7. In this embodiment of the present application, unconfigured or incorrectly configured devices can be promptly detected, and the system can generate a detailed omission report, including information about the missing devices and discrepancies between the expected and actual configurations. For any omissions or errors discovered, the system can provide correction suggestions, helping administrators quickly locate and fix the problem.
[0098] 8. Reduce maintenance costs: Automatic configuration reduces the need for manual maintenance, significantly reducing operation and maintenance costs, especially in large-scale networks.
[0099] Based on the above-mentioned server method embodiment, the embodiment of the present application also provides a server device network configuration device, which is applied to the server; the server is connected to multiple agents for communication; each agent is pre-installed in the operating system of the newly installed server device; the server and the agent are both configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; see Figure 9 As shown, the apparatus includes: a request receiving module 92, configured to receive a DHCP request sent by an agent based on the improved DHCP protocol after a newly-installed server device is started and running; the DHCP request carries the following contents: device information and operating system information; a configuration generating module 94, configured to search for corresponding network parameter configuration information from pre-imported configuration data according to the device information carried in the DHCP request, and to generate customized network configuration file information by processing the network parameter configuration information and the operating system information using a preset file information generation model; and a configuration sending module 96, configured to write the network configuration file information into a DHCP response packet and send it to the agent, so that the agent completes the automated setup process of the network environment of the newly-installed server device.
[0100] Furthermore, the above-mentioned file information generation model is a text generation model based on deep learning, including: DeepSeek model or Transformer model.
[0101] Furthermore, the above-mentioned device information includes a MAC address, an SN serial number, and an IPMI address; the configuration generation module 94 is used to determine whether the corresponding first configuration information is found from the pre-imported configuration data based on the MAC address; if so, the first configuration information found is used as the network parameter configuration information; if not, determine whether the corresponding second configuration information is found from the pre-imported configuration data based on the SN serial number; if so, the second configuration information found is used as the network parameter configuration information; if not, determine whether the corresponding third configuration information is found from the pre-imported configuration data based on the IPMI address; if so, the third configuration information found is used as the network parameter configuration information.
[0102] Furthermore, the configuration generation module 94 is configured to verify and optimize the network configuration file information by comparing it with known network configuration standards or by comparing it through an AI model.
[0103] Furthermore, the above-mentioned server is also configured with a management module. After the network environment of multiple newly-launched server devices is automatically set up through multiple agents, the configuration status of the multiple newly-launched server devices is displayed through the management module to monitor the configuration progress; the management module performs a connectivity check on the assigned IP addresses corresponding to the newly-launched server devices to verify the correctness of the configuration.
[0104] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference can be made to the corresponding content in the aforementioned method embodiment.
[0105] Based on the above-mentioned embodiment of the method on the Agent side, the embodiment of the present application further provides a server device network configuration device, which is applied to the Agent; the Agent is connected to the server in communication; the Agent is pre-installed in the operating system of the newly installed server device; the server and the Agent are both configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; see Figure 10 As shown, the apparatus includes: a request sending module 102, which is used to send a DHCP request to the server based on the improved DHCP protocol after the newly-installed server device is started and running, so that the server can search for corresponding network parameter configuration information from pre-imported configuration data according to the device information carried in the DHCP request, and use a preset file information generation model to process the network parameter configuration information and operating system information to generate customized network configuration file information; a configuration information receiving module 104, which is used to receive a DHCP response packet containing network configuration file information sent by the server; and a configuration module 106, which is used to complete the automatic setting process of the network environment of the newly-installed server device according to the DHCP response packet.
[0106] Furthermore, the request sending module 102 is further configured to set a temporary IP if no DHCP response packet is received, and resend the DHCP request to the server until a DHCP response packet is received.
[0107] Furthermore, the configuration module 106 is configured to parse the DHCP response packet to obtain network configuration file information, file storage path, and file name; create a new configuration file in a specified path according to the network configuration file information; execute a specific verification configuration command on the configuration file; restart the network after successful verification; and make an RPC call to the server to update the network configuration status to completed.
[0108] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the device, reference can be made to the corresponding content in the aforementioned method embodiment.
[0109] Based on the above method embodiment, the present application embodiment also provides a server device network configuration system, see Figure 11 As shown, the system includes a server and multiple agents in communication connection; each agent is pre-installed in the operating system of a newly installed server device; the server and the agent are both configured with an improved DHCP protocol; the improved DHCP protocol includes: a discovery phase and a provision phase; the server is used to execute the method described in the method embodiment on the server side; the agent is used to execute the method described in the method embodiment on the agent side.
[0110] In this embodiment, the Agent is deployed in a newly installed server operating system as a system service, automatically running upon system startup. This Agent incorporates a modified DHCP client, responsible for sending packets requesting network configuration during the discovery phase and receiving configuration information responses from the DHCP server during the provision phase. Upon receiving the responses, the Agent generates network configuration files based on the responses, thus implementing network configuration.
[0111] The server is deployed on the management machine and integrates the modified DHCP protocol server and management system. The main functions of the system cover network configuration, agent client configuration, data import, status update and progress monitoring, configuration completion check, and configuration update mode.
[0112] The system provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the system, reference can be made to the corresponding content in the aforementioned method embodiment.
[0113] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the above-mentioned method. The specific implementation can be found in the above-mentioned method embodiment, which will not be repeated here.
[0114] The computer program products of the methods, devices, and electronic devices provided in the embodiments of the present application include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. For specific implementation, please refer to the method embodiments and will not be repeated here.
[0115] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0116] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0117] In the description of this application, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this application and simplify the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0118] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The scope of protection of the present application is not limited thereto. Although the present application has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present application, or perform equivalent replacements for some of the technical features thereof. These modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims.
Claims
1. A server device network configuration method, characterized in that: The method is applied to a server; the server is connected to multiple agents; each agent is pre-installed in the operating system of a newly installed server device; The server and the agent are both configured with an improved DHCP protocol; The improved DHCP protocol includes: a discovery phase and a provision phase; the method includes: Receive a DHCP request sent by the Agent based on the improved DHCP protocol after the newly installed server device is started and running; the DHCP request carries the following content: device information and operating system information; According to the device information carried in the DHCP request, the corresponding network parameter configuration information is searched from the pre-imported configuration data, and according to the network parameter configuration information and the operating system information, a preset file information generation model is used for processing to generate customized network configuration file information; The network configuration file information is written into a DHCP response packet and sent to the Agent, so that the Agent completes the automatic setting process of the network environment of the newly-installed server device.
2. The method according to claim 1, characterized in that The file information generation model is a text generation model based on deep learning, including: a DeepSeek model or a Transformer model.
3. The method according to claim 1, characterized in that The device information includes a MAC address, a SN serial number, and an IPMI address; and the step of searching for corresponding network parameter configuration information from pre-imported configuration data according to the device information carried in the DHCP request includes: Determine whether corresponding first configuration information is found from pre-imported configuration data according to the MAC address; If yes, use the first configuration information found as the network parameter configuration information; If not, determine whether the corresponding second configuration information is found from the pre-imported configuration data according to the SN sequence number; If yes, use the found second configuration information as network parameter configuration information; If not, determining whether corresponding third configuration information is found from pre-imported configuration data according to the IPMI address; If yes, the found third configuration information is used as the network parameter configuration information.
4. The method according to claim 1, wherein After the step of generating customized network configuration file information by processing the network parameter configuration information and the operating system information using a preset configuration file generation model, the method further includes: The network configuration file information is verified and optimized by comparing it with known network configuration standards or by comparing it through an AI model.
5. The method according to claim 1, wherein The server is further configured with a management module. After automatically setting the network environment of multiple newly-added server devices through multiple agents, the method further includes: The management module displays the configuration status of multiple newly installed server devices to facilitate configuration progress monitoring; The management module performs a connectivity check on the allocated IP address corresponding to the newly-installed server device to verify the correctness of the configuration.
6. A server device network configuration method, characterized in that: The method is applied to an Agent; the Agent is connected to a server for communication; the Agent is pre-installed in an operating system of a newly installed server device; The server and the agent are both configured with an improved DHCP protocol; The improved DHCP protocol includes: a discovery phase and a provision phase; the method includes: After the newly installed server device is started and running, it sends a DHCP request to the server based on the improved DHCP protocol, so that the server searches for corresponding network parameter configuration information from the pre-imported configuration data according to the device information carried in the DHCP request, and uses the preset file information generation model to process the network parameter configuration information and operating system information to generate customized network configuration file information; receiving a DHCP response packet including the network configuration file information sent by the server; According to the DHCP response packet, the automatic setting process of the network environment of the newly-installed server device is completed.
7. The method according to claim 6, characterized in that The method further includes: if no DHCP response packet is received, setting a temporary IP, and resending a DHCP request to the server until a DHCP response packet is received.
8. The method according to claim 6, characterized in that The steps of completing the automated setup process of the network environment of the newly-installed server device according to the DHCP response packet include: Parsing the DHCP response packet to obtain network configuration file information; Creating a new configuration file in a specified path according to the network configuration file information; Executing a specific verification configuration command on the configuration file; After successful verification, restart the network; Make an RPC call to the server and update the network configuration status to complete.
9. A server equipment network configuration device, characterized in that: The device is applied to a server; the server is connected to multiple agents for communication; each agent is pre-installed in the operating system of a newly installed server device; The server and the agent are both configured with an improved DHCP protocol; The improved DHCP protocol includes: a discovery phase and a provision phase; the device includes: The request receiving module is used to receive a DHCP request sent by the Agent based on the improved DHCP protocol after the newly-installed server device is started and running; the DHCP request carries the following content: device information and operating system information; A configuration generation module is configured to search for corresponding network parameter configuration information from pre-imported configuration data based on the device information carried in the DHCP request, and to generate customized network configuration file information based on the network parameter configuration information and the operating system information using a preset file information generation model; The configuration sending module is used to write the network configuration file information into a DHCP response packet and send it to the Agent, so that the Agent can complete the automatic setting process of the network environment of the newly-installed server device.
10. A server equipment network configuration system, characterized in that: The system includes a server and multiple agents connected in communication; each agent is pre-installed in the operating system of a newly installed server device; The server and the agent are both configured with an improved DHCP protocol; The improved DHCP protocol includes: a discovery phase and a provision phase; the server is used to execute the method according to any one of claims 1 to 5; and the agent is used to execute the method according to any one of claims 6 to 8.