Method, system, device and storage medium for configuring IP address through BMC
By using BMC to automatically configure IP addresses, and leveraging preset rules and location information, the problems of slow server configuration and DHCP address changes are solved, enabling fast and efficient IP address allocation and deployment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-05-25
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, configuring the IP address of the server's BMC requires manual configuration on a machine-by-machine basis, which is slow and prone to errors. Furthermore, the IP address assigned via DHCP is prone to dynamic changes, making it difficult to quickly find the corresponding device after a device restart.
The method of automatically configuring IP addresses through BMC uses preset rules to confirm the client's location information, sends a request to the server, the server allocates IP addresses according to the location information, and BMC sets its own IP address, supporting fixed allocation of information such as rack ID, chassis ID, controller ID, and network card ID.
It enables rapid deployment of server equipment in the data center, reduces manpower input, improves deployment efficiency, and solves the problems of DHCP address changes and manual configuration of static IPs.
Smart Images

Figure CN116599930B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of servers, and more specifically, to a method, system, device, and storage medium for configuring IP addresses via a BMC. Background Technology
[0002] In the server industry, a typical data center contains multiple racks, each rack contains multiple chassis, and each chassis may contain multiple controllers. For example, rack 001 includes chassis 01, 02, and 03; chassis 01 includes controllers 01 and 02; chassis 02 includes controllers 01 and 02; and chassis 03 also includes controllers 01 and 02. Customers and maintenance personnel often need to configure the IP address (Internet Protocol Address) for each controller, including the Internet Protocol address of the BMC (Baseboard Management Controller) and the corresponding x86 server. However, during deployment, manual configuration of each controller is often required, or automatic IP address allocation via DHCP (Dynamic Host Configuration Protocol) is used. Manual configuration is slow and error-prone, while DHCP allocation suffers from dynamic Internet Protocol address allocation issues; when devices restart, the Internet Protocol address can change, making it difficult to quickly locate the corresponding device. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide a method, system, electronic device, and computer-readable storage medium for configuring IP addresses through BMC. This invention allocates IP addresses through preset rules, which can solve the problem of dynamic host configuration protocol address changes and the problem of static Internet Protocol addresses requiring manual configuration. It can quickly deploy server equipment in the data center, reduce manpower input, and effectively improve deployment efficiency.
[0004] To achieve the above objectives, one aspect of the present invention provides a method for configuring an IP address through a BMC, comprising the following steps: confirming the specific location information of the client BMC and starting an IP address acquisition service on the client; sending a request including the specific location information to a server through the IP address acquisition service; in response to the server receiving the request, determining the corresponding IP address based on the specific location information and allocation rules; and in response to receiving the allocated IP address returned by the server, setting its own IP address according to the allocated IP address.
[0005] In some implementations, the method further includes: pre-setting IP address allocation rules and supported rack IDs on the server side.
[0006] In some implementations, the method further includes: in response to the start of the server process, opening a server listening port to listen for whether client data is received.
[0007] In some implementations, confirming the specific location information of the client BMC includes: confirming the specific location information of the BMC based on its own hardware, external configuration, and rack management software.
[0008] In some implementations, the step of confirming the specific location information of the BMC based on its own hardware, external configuration, and rack management software includes: the BMC obtaining its own slot information, obtaining the ID of the chassis in the rack, and obtaining the rack ID from the rack management software.
[0009] In some implementations, the method further includes: in response to the BMC obtaining an IP address upon its next startup, comparing the obtained IP address with a local IP address; and in response to a discrepancy between the obtained IP address and the local IP address, updating the local IP address with the obtained IP address.
[0010] In some implementations, the method further includes configuring an IP address acquisition strategy for the BMC after its next restart on the server side.
[0011] In another aspect of this invention, a system for configuring an IP address via a BMC is provided, comprising: a location module for confirming the specific location information of a client BMC and initiating an IP address acquisition service on the client; a request module for sending a request including the specific location information to a server via the IP address acquisition service; an allocation module for determining a corresponding IP address based on the specific location information and allocation rules by the server in response to the server receiving the request; and an execution module for setting its own IP address based on the allocated IP address returned by the server in response to receiving the allocated IP address from the server.
[0012] In another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory storing computer instructions executable on the processor, the instructions, when executed by the processor, implementing the steps of the method described above.
[0013] In another aspect, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method steps.
[0014] The present invention has the following beneficial technical effects: by allocating IP addresses according to preset rules, it can solve the problem of dynamic host configuration protocol address changes and the problem of static Internet protocol addresses requiring manual configuration. It can quickly deploy server equipment in the data center, reduce manpower input, and effectively improve deployment efficiency. Attached Figure Description
[0015] 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 embodiments can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of an embodiment of the method for configuring IP addresses via BMC provided by the present invention;
[0017] Figure 2 This is a schematic diagram of the client processing flow in the method for configuring IP addresses via BMC provided by the present invention;
[0018] Figure 3 This is a schematic diagram of the server-side processing flow in the method for configuring IP addresses via BMC provided by the present invention.
[0019] Figure 4 A schematic diagram illustrating an embodiment of the system for configuring IP addresses via BMC provided by the present invention;
[0020] Figure 5 A schematic diagram of the hardware structure of an electronic device that configures its IP address via BMC, as provided by the present invention;
[0021] Figure 6 This is a schematic diagram of an embodiment of a computer storage medium that configures IP addresses via BMC, provided by the present invention. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to specific examples and the accompanying drawings.
[0023] It should be noted that all uses of "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities or parameters with the same name but different names. It is clear that "first" and "second" are only for the convenience of expression and should not be construed as limiting the embodiments of the present invention. Subsequent embodiments will not explain this in detail.
[0024] In a first aspect, an embodiment of a method for configuring IP addresses via BMC is proposed. Figure 1 This diagram illustrates an embodiment of the method for configuring IP addresses via BMC provided by the present invention. Figure 1 As shown, the embodiments of the present invention include the following steps:
[0025] S1. Confirm the specific location information of the client's BMC and start the IP address acquisition service on the client.
[0026] S2. Send a request including the specific location information to the server through the IP address acquisition service;
[0027] S3. In response to the server receiving the request, the server determines the corresponding IP address based on the specific location information and allocation rules; and
[0028] S4. In response to receiving the allocated IP address returned by the server, the BMC sets its own IP address according to the allocated IP address.
[0029] This invention proposes a method for automatically configuring Internet Protocol (IP) addresses via BMC. This method can solve the problems of DHCP address changes and the need for manual configuration of static IP addresses. It can quickly deploy server equipment in the data center, reduce manpower input, and effectively improve deployment efficiency.
[0030] This embodiment of the invention confirms the specific location information of the client's BMC and initiates the Internet Protocol address acquisition service on the client.
[0031] In some implementations, confirming the specific location information of the client BMC includes: confirming the specific location information of the BMC based on its own hardware, external configuration, and rack management software.
[0032] In some implementations, the step of confirming the specific location information of the BMC based on its own hardware, external configuration, and rack management software includes: the BMC obtaining its own slot information, obtaining the ID of the chassis in the rack, and obtaining the rack ID from the rack management software.
[0033] In some implementations, initiating the IP address acquisition service on the client includes: broadcasting the client's MAC address, rack ID, chassis ID, controller ID, network interface card (NIC) ID, and other information used for allocating Internet Protocol (IP) addresses to the entire network via UDP (User Datagram Protocol). The client requests an IP address from the server by obtaining the location of its BMC (Rack ID-Chassis ID-Controller ID-NIC ID). The server generates an IP address based on the location information sent by the client, using a configuration file and configuration rules, and returns it to the client. The client then configures its own information based on the received address.
[0034] UDP provides applications with a method to send encapsulated IP packets without establishing a connection. UDP is a connectionless transport layer protocol in the OSI (Open Systems Interconnection) reference model. It is primarily used for transmissions where packet order is not critical; packet order checking and sequencing are handled by the application layer, providing a simple, unreliable, transaction-oriented message delivery service. Essentially, UDP is the interface between the IP protocol and higher-layer protocols. UDP ports can be used by multiple applications running on the same device. UDP provides connectionless communication and does not guarantee the reliability of transmitted data packets, making it suitable for transmitting small amounts of data at a time. The reliability of UDP transmission is the responsibility of the application layer.
[0035] UDP packets lack reliability guarantees, order guarantees, and flow control fields, resulting in lower reliability. However, precisely because UDP has fewer control options, it experiences low latency and high data transmission efficiency, making it suitable for applications with low reliability requirements, or applications that can guarantee reliability, such as DNS, TFTP, and SNMP.
[0036] To enable the identification of multiple destination addresses on a given host, and to allow multiple applications to operate on the same host and independently send and receive data packets, the User Datagram Protocol (UDP) was designed. UDP uses the underlying Internet Protocol (IP) to transmit messages, providing unreliable connectionless data packet delivery services, similar to IP. It does not provide message arrival acknowledgment, ordering, or flow control. UDP Helpers can relay broadcast messages on a specified UDP port, converting broadcast messages on that port into unicast messages and sending them to a designated server, thus acting as a relay.
[0037] In this embodiment of the invention, a request including the specific location information is sent to the server through the Internet Protocol address acquisition service. After the client broadcasts its MAC address, rack ID, chassis ID, controller ID, network card ID, and other information used for allocating Internet Protocol addresses to the entire network, it can wait for the server to return data. If no data is received from the server after a preset time, a retry can be performed. When the number of retries reaches a threshold, it can be considered that a transmission failure has occurred and the process can be terminated directly.
[0038] In some implementations, configuring IP addresses via BMC also includes pre-setting IP address allocation rules and supported rack IDs on the server side. Internet Protocol address allocation rules and supported rack IDs can be pre-set on the server side as needed. When the rack ID sent by the client meets the requirements, an Internet Protocol address can be allocated, further improving the adaptability of Internet Protocol address allocation.
[0039] In some implementations, configuring IP addresses via the BMC further includes: opening a server-side listening port in response to the server process starting to monitor whether client data is being received. After configuring the IP allocation rules and supported rack IDs on the server side, the server process can be started. Once the server process starts, the listening port can be opened to monitor whether client data has arrived at the server.
[0040] In this embodiment of the invention, upon receiving the request, the server determines the corresponding Internet Protocol (IP) address based on the specific location information and allocation rules. After receiving the request from the client, the server verifies the data in the request. If the verification passes, the server allocates the corresponding IP address based on the location information in the data and pre-set IP address allocation rules, and returns the IP address-related information to the corresponding client. This IP address-related information includes, but is not limited to, IP address type, IP address, subnet mask, and gateway information.
[0041] In this embodiment of the invention, in response to receiving an assigned Internet Protocol (IP) address from the server, the BMC sets its own IP address based on the assigned IP address. When receiving data from the server, the BMC sets its own IP address based on the IP address, subnet mask, gateway, and other information assigned by the server, and writes it into the configuration.
[0042] In some implementations, the method for configuring the IP address via the BMC further includes: in response to the BMC obtaining an IP address upon its next startup, comparing the obtained IP address with the local IP address; and in response to a discrepancy between the obtained IP address and the local IP address, updating the local IP address with the obtained IP address. Upon the BMC's next startup, if the obtained Internet Protocol address is inconsistent with the local Internet Protocol address, it indicates that the local Internet Protocol address has not yet been updated, and the obtained Internet Protocol address can be used to update the local Internet Protocol address. If the obtained Internet Protocol address is consistent with the local Internet Protocol address, it indicates that the local Internet Protocol address has already been updated, and this step can be skipped.
[0043] In some implementations, configuring IP addresses via BMC further includes: in response to the client obtaining the assigned IP address returned by the server, configuring the client to directly use the locally saved IP address for configuration upon the next restart. This reduces configuration time and improves operational efficiency.
[0044] In some implementations, the method of configuring IP addresses via BMC also includes: in response to a conflict between client functions and DHCP service, prioritizing the normal use of client functions.
[0045] In some implementations, the method for configuring IP addresses via the BMC further includes configuring the IP address acquisition strategy for the next BMC restart on the server side. This allows for the use of different Internet Protocol address acquisition strategies each time the BMC restarts, improving the applicability to both the client and server.
[0046] In some implementations, configuring IP addresses via the BMC further includes the server determining whether to allocate IPv4 or IPv6 to the BMC based on demand. IPv4 and IPv6 are different types of Internet Protocol addresses. Their primary purpose is the same: to identify different users and allow users to communicate via IP. The main difference is that IPv6 is the latest generation of Internet Protocol addresses. IPv4 is a 32-bit Internet Protocol address, while IPv6 is a 128-bit Internet Protocol address. IPv4 is a numeric address separated by dots. IPv6 is an alphanumeric address separated by colons.
[0047] Figure 2 This is a schematic diagram of the client processing flow in the method for configuring IP addresses via BMC provided by the present invention, as shown below. Figure 2As shown, the client BMC first confirms its specific location information through its own hardware, external configuration, and rack management software. Specifically, the BMC obtains its slot information, the ID of its chassis within the rack, and the rack ID from the rack management software. Once all these are successfully obtained, it initiates the Internet Protocol Address (IPA) acquisition service. This service broadcasts its MAC address, rack ID, chassis ID, controller ID, network interface card (NIC) ID, and other associated information that can be used to allocate IPA rules to the entire network via UDP. After sending, it waits for the server to return data. When it receives the server's data, the BMC sets its own IPA address based on the IPA address, subnet mask, gateway, and other information allocated by the server and writes it into the configuration. It then checks whether an IPA address has been acquired within a specified time. If so, it checks whether the locally stored IPA address information matches the acquired one. If they match, the locally stored IPA address is used; otherwise, the acquired IPA address is set based on the acquired IP information.
[0048] Figure 3 This is a schematic diagram of the server-side processing flow in the method for configuring IP addresses via BMC provided by the present invention, as shown below. Figure 3 As shown, the server pre-configures its Internet Protocol address (IPv4) allocation rules and supported rack IDs based on the data center configuration. After the server process starts, it opens a listening port to monitor whether it receives data from the client. Upon receiving data, it verifies the data to determine if it is valid and within acceptable limits. If the verification passes, it allocates the corresponding IPV address based on the client's location information according to specific rules and returns IP-related information to the client, including but not limited to IPV address type, IPV address, subnet mask, and gateway information. It checks if the IPV address has been duplicated; if so, it alerts the client and waits for a response. If not, it replies to the client with the allocated IPV address, subnet mask, and gateway information. The server decides whether to allocate an IPv4 or IPv6 IPV address to the BMC based on requirements. Optionally, the server can configure the IPV address acquisition strategy after the BMC's next restart.
[0049] This invention can be extended to serve large systems, including large system management IP configuration and business IP configuration. The path for the large system IP configuration can be configured based on the BMC IP, or it can be obtained by building its own client and server.
[0050] This invention provides a method for fixed IP address allocation based on rack ID + chassis ID + controller ID + network interface card (NIC) serial number. This method dynamically assigns IP addresses to all IP addresses within a data center according to specific rules, allowing users to quickly locate the corresponding server device via the IP address. This invention's embodiments allocate Internet Protocol (IP) addresses using preset rules, solving the problem of dynamically changing host configuration protocol addresses (HMACs) and the need for manual configuration of static IP addresses. This enables rapid deployment of server equipment in the data center, reduces manpower, and effectively improves deployment efficiency.
[0051] It should be noted that the steps in each embodiment of the above-described method for configuring IP addresses via BMC can be interchanged, substituted, added, or deleted. Therefore, these reasonable permutations and combinations of the method for configuring IP addresses via BMC should also fall within the protection scope of this invention, and the protection scope of this invention should not be limited to the embodiments.
[0052] Based on the above objectives, a second aspect of this invention proposes a system for configuring IP addresses via a BMC. For example... Figure 4 As shown, system 200 includes the following modules: a location module, used to confirm the specific location information of the client BMC and start the IP address acquisition service on the client; a request module, used to send a request including the specific location information to the server through the IP address acquisition service; an allocation module, used to determine the corresponding IP address based on the specific location information and allocation rules by the server in response to the server receiving the request; and an execution module, used to set its own IP address according to the allocated IP address returned by the server in response to receiving the allocated IP address.
[0053] In some implementations, the system also includes a rules module, which is used to: pre-set IP address allocation rules and supported rack IDs on the server side.
[0054] In some implementations, the system further includes a listening module, which is used to: in response to the startup of the server process, open a server listening port to listen for whether client data has been received.
[0055] In some implementations, the location module is used to: confirm the specific location information of the BMC based on its own hardware, external configuration, and rack management software.
[0056] In some implementations, the location module is also used for: the BMC to obtain its own slot information, to obtain the ID of the chassis in the rack, and to obtain the rack ID from the rack management software.
[0057] In some implementations, the system further includes an update module, which is configured to: compare the obtained IP address with the local IP address in response to the BMC obtaining an IP address upon its next startup; and update the local IP address with the obtained IP address in response to the inconsistency between the obtained IP address and the local IP address.
[0058] In some implementations, the system further includes a policy module, which is used to configure the IP address acquisition policy for the BMC after the next restart on the server side.
[0059] Based on the above objectives, a third aspect of the present invention provides an electronic device, comprising: at least one processor; and a memory storing computer instructions executable by the processor to perform the following steps: S1, confirming the specific location information of a client BMC and initiating an IP address acquisition service on the client; S2, sending a request including the specific location information to a server through the IP address acquisition service; S3, in response to the server receiving the request, determining a corresponding IP address based on the specific location information and an allocation rule; and S4, in response to receiving the allocated IP address returned by the server, setting its own IP address according to the allocated IP address.
[0060] In some implementations, the steps also include: pre-setting IP address allocation rules and supported rack IDs on the server side.
[0061] In some implementations, the steps further include: in response to the start of the server process, opening a server listening port to listen for whether client data is received.
[0062] In some implementations, confirming the specific location information of the client BMC includes: confirming the specific location information of the BMC based on its own hardware, external configuration, and rack management software.
[0063] In some implementations, the step of confirming the specific location information of the BMC based on its own hardware, external configuration, and rack management software includes: the BMC obtaining its own slot information, obtaining the ID of the chassis in the rack, and obtaining the rack ID from the rack management software.
[0064] In some implementations, the steps further include: in response to the BMC obtaining an IP address upon its next startup, comparing the obtained IP address with a local IP address; and in response to a discrepancy between the obtained IP address and the local IP address, updating the local IP address with the obtained IP address.
[0065] In some implementations, the steps further include: configuring the IP address acquisition policy for the BMC after the next restart on the server.
[0066] like Figure 5 The diagram shown is a hardware structure schematic of an embodiment of the electronic device with IP address configured via BMC provided by the present invention.
[0067] For example Figure 5 The device shown is an example, which includes a processor 301 and a memory 302.
[0068] Processor 301 and memory 302 can be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.
[0069] The memory 302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the method of configuring IP addresses through the BMC in the embodiments of this application. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 302, thereby implementing the method of configuring IP addresses through the BMC.
[0070] Memory 302 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the use of the method of configuring IP addresses via the BMC. Furthermore, memory 302 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 302 may optionally include memory remotely located relative to processor 301, and these remote memories may be connected to the local module via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0071] One or more computer instructions 303 corresponding to the method of configuring IP address through BMC are stored in memory 302. When executed by processor 301, the method of configuring IP address through BMC in any of the above method embodiments is executed.
[0072] Any embodiment of an electronic device that performs the above-described method for configuring IP addresses via BMC can achieve the same or similar effects as any of the aforementioned method embodiments.
[0073] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs a method for configuring an IP address via a BMC.
[0074] like Figure 6 The diagram shown is a schematic representation of an embodiment of the computer storage medium for configuring IP addresses via BMC provided by the present invention. Figure 6 Taking the computer storage medium shown as an example, the computer-readable storage medium 401 stores a computer program 402 that, when executed by a processor, performs the above method.
[0075] Finally, it should be noted that those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program for configuring IP addresses via BMC can be stored in a computer-readable storage medium. When executed, the program can include the processes of the embodiments of the above methods. The storage medium for the program can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc. The above computer program embodiments can achieve the same or similar effects as any of the corresponding foregoing method embodiments.
[0076] The above are exemplary embodiments disclosed in this invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments of this invention as defined by the claims. The functions, steps, and / or actions of the methods according to the disclosed embodiments described herein do not need to be performed in any particular order. Furthermore, although the elements disclosed in the embodiments of this invention may be described or claimed individually, they may be understood as multiple unless explicitly limited to a singular number.
[0077] It should be understood that, as used herein, the singular form “a” is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, “and / or” refers to any and all possible combinations of one or more of the associated listed items.
[0078] The embodiment numbers disclosed in the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0079] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0080] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples. Within the framework of the invention, technical features of the above embodiments or different embodiments can be combined, and many other variations of different aspects of the invention exist, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the invention should be included within the protection scope of the invention.
Claims
1. A method for configuring an IP address through a BMC, characterized in that, Includes the following steps: Pre-configure IP address allocation rules and supported rack IDs on the server side; Confirming the specific location information of the client BMC includes: confirming the specific location information of the BMC based on its own hardware, external configuration and rack management software, and further includes: the BMC obtaining its own slot information, obtaining the ID of the chassis in the rack, and obtaining the rack ID from the rack management software; The client initiates an IP address acquisition service, which includes: broadcasting the client's MAC address, rack ID, chassis ID, controller ID, network card ID, and other information used for allocating Internet Protocol addresses to the entire network via UDP based on the IP address acquisition service; and requesting an Internet Protocol address from the server by obtaining the location of the BMC. The IP address acquisition service is used to send a request to the server including the specific location information. In response to the server receiving the request, the server determines the corresponding IP address based on the specific location information and allocation rules; and In response to receiving the assigned IP address from the server, the BMC sets its own IP address based on the assigned IP address; In response to the BMC obtaining an IP address upon its next startup, the obtained IP address will be compared with the local IP address; and In response to the discrepancy between the obtained IP address and the local IP address, the local IP address is updated using the obtained IP address.
2. The method for configuring an IP address through a BMC according to claim 1, wherein, The method also includes: In response to the server process starting, the server listening port is opened to listen for whether client data is received. 3.The method of configuring an IP address through a BMC according to claim 1, wherein, The method also includes: Configure the IP address acquisition strategy for the BMC after the next restart on the server.
4. A system for configuring an IP address through a BMC, the system comprising: include: The location module is used to confirm the specific location information of the client's BMC and to start the IP address acquisition service on the client. The request module is used to send a request including the specific location information to the server through the IP address acquisition service; The allocation module is used to respond to the server receiving the request and determine the corresponding IP address based on the specific location information and allocation rules. as well as The execution module is used to respond to the allocated IP address returned by the server, and the BMC sets its own IP address according to the allocated IP address; The location module is also used to: confirm the specific location information of the BMC based on its own hardware, external configuration, and rack management software, further including: the BMC obtaining its own slot information, obtaining the ID of the chassis in the rack, and obtaining the rack ID from the rack management software; and broadcasting the client's MAC address, rack ID, chassis ID, controller ID, network card ID, and other information used for allocating Internet Protocol addresses to the entire network in UDP mode based on the obtained IP address service; and applying for an Internet Protocol address from the server by obtaining the location of the BMC. Modules used for the following functions: Pre-setting IP address allocation rules and supported rack IDs on the server side; In response to the BMC obtaining an IP address upon its next startup, the obtained IP address will be compared with the local IP address; and In response to the acquired IP address not being consistent with the local IP address, updating the local IP address with the acquired IP address.
5. An electronic device, characterized by comprising: Comprising: at least one processor; and a memory storing computer instructions executable on the processor, the instructions, when executed by the processor, implementing the steps of the method of any one of claims 1-3.
6. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 5. The computer program, when executed by the processor, implements the steps of the method of any one of claims 1-3.
Citation Information
Patent Citations
Method and system for configuring BMC static IP address based on node position
CN110113444A