IP configuration method of server BMC system, display terminal, device and storage medium
By directly sending new IP configuration information to the server BMC system on the display side, the restart problem caused by BIOS dependence is solved, and the stability and management intuitiveness of the server system are improved.
Patent Information
- Application Number
- CN202411577051.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-11
AI Technical Summary
The IP configuration of the server BMC system depends on the BIOS. After the setup is completed, the server needs to be restarted, which affects the system stability.
Enter the preset IP interface through the display terminal detection, send IP acquisition instructions to the server BMC system, receive the current IP configuration information, enter the new IP configuration information, judge and detect its legality, if passed, send the new IP configuration information to configure, avoiding Configure via BIOS.
It realizes that the IP configuration of the BMC system can be updated without restarting the server, improving system stability and management intuitiveness.
Smart Images

Figure CN119415182A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of IP configuration, and in particular to an IP configuration method, a display terminal, a device and a storage medium of a server BMC system. Background Art
[0002] The server BMC, or baseboard management controller, is a crucial component in the server. It is usually inherited on the motherboard and has an independent system. The BMC is connected to the server hardware through multiple interfaces and can monitor key indicators such as temperature, voltage, and fan speed in real time. It can remotely realize power on and off and access operations for easy management. It has a strict security mechanism to ensure management security and plays an important role in scenarios such as data centers, remote maintenance, and R&D testing. It can effectively ensure stable operation and efficient management of servers.
[0003] With the rapid development of information technology, servers are playing an increasingly important role in various application scenarios. In scenarios such as data centers, cloud computing, and edge computing, server configuration and management have become one of the key factors in improving system performance and stability. Among them, the IP configuration of the server BMC system is an important part of network management, which directly affects the device management, connection, and communication of the server. In the past, the IP configuration of the server BMC system relied on BIOS, and the server needed to be restarted after the setting was completed, which was extremely unfavorable for servers that pursue system stability. Summary of the invention
[0004] The present invention provides an IP configuration method, a display terminal, a device and a storage medium of a server BMC system, which are used to solve the technical problem that the IP configuration of the server BMC system depends on BIOS, and the server needs to be restarted after the setting is completed, which affects the system stability of the server.
[0005] The present invention provides an IP configuration method for a server BMC system, which is applied to a display terminal; the method comprises:
[0006] When entering the preset IP interface, an IP acquisition instruction is sent to the server BMC system;
[0007] Receiving the current IP configuration information of the server BMC system returned by the server BMC system in response to the IP acquisition instruction;
[0008] Receive new IP configuration information input by the user;
[0009] Determine whether the current IP configuration information and the new IP configuration information are the same;
[0010] If they are different, then the legitimacy of the new IP configuration information is checked;
[0011] When the new IP configuration information passes the legitimacy check, the new IP configuration information is sent to the server BMC system for IP configuration.
[0012] Optionally, the step of returning the current IP configuration information in response to the IP acquisition instruction by the server BMC system includes:
[0013] The server BMC system responds to the IP acquisition instruction and determines the network interface;
[0014] Acquiring configuration information of a network access device through the network interface;
[0015] The current IP configuration information of the server BMC system is acquired according to the configuration information, and the current IP configuration information is returned to the display terminal.
[0016] Optionally, the step of detecting the legitimacy of the new IP configuration information includes:
[0017] Determine the format type of the IP configuration information;
[0018] Determining a legality detection scheme according to the format type;
[0019] According to the legitimacy detection scheme, the legitimacy of the IP configuration information is detected.
[0020] Optionally, when the new IP configuration information passes the legitimacy check, the step of sending the new IP configuration information to the server BMC system for IP configuration includes:
[0021] When the new IP configuration information passes the legitimacy check, the new IP configuration information is sent to the server BMC system; the server BMC system is used to perform a legitimacy check on the new IP configuration information, and when the check passes, use the new IP configuration information to perform IP configuration through the network interface;
[0022] Receive the configuration result returned by the server BMC system in response to the new IP configuration information.
[0023] Optionally, it also includes:
[0024] When the configuration result is configuration failure, an error message is displayed.
[0025] The present invention also provides a display terminal, comprising:
[0026] An IP acquisition instruction sending module is used to send an IP acquisition instruction to the server BMC system when it detects that the preset IP interface has been entered;
[0027] A current IP configuration information receiving module, used for receiving the current IP configuration information of the server BMC system returned by the server BMC system in response to the IP acquisition instruction;
[0028] A new IP configuration information receiving module, used to receive new IP configuration information input by a user;
[0029] A judging module, used to judge whether the current IP configuration information and the new IP configuration information are the same;
[0030] A legitimacy detection module, used for detecting the legitimacy of the new IP configuration information if different;
[0031] The IP configuration module is used to send the new IP configuration information to the server BMC system for IP configuration when the new IP configuration information passes the legitimacy detection.
[0032] Optionally, the server BMC system includes:
[0033] A network interface determination module, used for the server BMC system to respond to the IP acquisition instruction and determine the network interface;
[0034] A configuration information acquisition module, used to acquire configuration information of a network access device through the network interface;
[0035] The current IP configuration information returning module is used to obtain the current IP configuration information of the server BMC system according to the configuration information, and return the current IP configuration information to the display terminal.
[0036] Optionally, the legality detection module includes:
[0037] A format type determination submodule, used to determine the format type of the IP configuration information;
[0038] A legality detection scheme determination submodule, used to determine a legality detection scheme according to the format type;
[0039] The legitimacy detection submodule is used to perform legitimacy detection on the IP configuration information according to the legitimacy detection scheme.
[0040] The present invention also provides an electronic device, the device comprising a processor and a memory:
[0041] The memory is used to store program code and transmit the program code to the processor;
[0042] The processor is used to execute the IP configuration method of the server BMC system as described in any one of the above items according to the instructions in the program code.
[0043] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes, and the program codes are used to execute the IP configuration method of the server BMC system as described in any one of the above items.
[0044] It can be seen from the above technical solutions that the present invention has the following advantages: The present invention provides an IP configuration method for a server BMC system, and specifically discloses: when entering a preset IP interface is detected, an IP acquisition instruction is sent to the server BMC system; the current IP configuration information of the server BMC system returned by the server BMC system in response to the IP acquisition instruction is received; the new IP configuration information input by the user is received; it is determined whether the current IP configuration information and the new IP configuration information are the same; if they are different, the legitimacy of the new IP configuration information is detected; when the new IP configuration information passes the legitimacy detection, the new IP configuration information is sent to the server BMC system for IP configuration. The present invention directly sends the updated IP configuration information to the server BMC system through the display terminal, without the need to perform IP configuration through BIOS. Compared with the BIOS configuration method, it is more intuitive and does not require restarting, thereby improving the system stability of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 A flowchart of a method for configuring an IP address of a server BMC system provided by an embodiment of the present invention;
[0047] Figure 2 A flowchart of a method for configuring an IP address of a server BMC system according to another embodiment of the present invention;
[0048] Figure 3 A timing flow chart of an IP configuration method for a server BMC system provided by an embodiment of the present invention;
[0049] Figure 4 A structural block diagram of a display terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The embodiment of the present invention provides an IP configuration method, display terminal, device and storage medium of a server BMC system, which are used to solve the technical problem that the IP configuration of the server BMC system depends on BIOS, and the server needs to be restarted after the setting is completed, which affects the system stability of the server.
[0051] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] See also Figure 1 , Figure 1 A flowchart of an IP configuration method for a server BMC system provided by an embodiment of the present invention.
[0053] The present invention provides an IP configuration method for a server BMC system, which is applied to a display terminal. The method may include:
[0054] Step 101, when entering the preset IP interface is detected, an IP acquisition instruction is sent to the server BMC system;
[0055] In the embodiment of the present invention, the display end may be an interface such as a liquid crystal screen on which a user can perform human-computer interaction.
[0056] BMC, or the server's baseboard management controller, is a controller for remote management of the server. It is usually integrated on the motherboard and is another small operating system independent of the server. BMC is connected to the server hardware through a variety of interfaces and can monitor key indicators such as temperature, voltage, and fan speed in real time. It can remotely perform operations such as power on and off and access. BMC has a strict security mechanism that can ensure management security. It plays an important role in scenarios such as data centers, remote maintenance, and R&D testing, effectively ensuring the stable operation and efficient management of servers.
[0057] The preset IP interface is a pre-set interface for displaying and updating IP configuration information. In an embodiment of the present invention, when the display terminal detects that the user has entered the preset IP interface, it can actively trigger the IP configuration information acquisition operation and send an IP acquisition instruction to the server BMC system, thereby acquiring the current IP configuration information of the server BMC address and displaying it.
[0058] Step 102, receiving the current IP configuration information of the server BMC system returned by the server BMC system in response to the IP acquisition instruction;
[0059] In the embodiment of the present invention, after receiving the IP acquisition instruction sent by the display terminal, the server BMC system can return the current IP configuration information to the display terminal. The display terminal can display the current IP configuration information of the server BMC system in real time for users to view.
[0060] In the embodiment of the present invention, the IP configuration information may include network parameters such as address format, subnet mask, and default gateway.
[0061] Step 103, receiving new IP configuration information input by the user;
[0062] When the user decides to update the IP configuration information of the server BMC system, the new IP configuration information can be directly entered on the display terminal.
[0063] Step 104, determining whether the current IP configuration information and the new IP configuration information are the same;
[0064] After receiving the new IP configuration information, the display terminal can compare the new IP configuration information with the current IP configuration information to determine whether the two are the same. If they are the same, it indicates that the user has not updated the current IP configuration information. If they are different, it indicates that the user is ready to update the IP configuration information of the server BMC system.
[0065] Step 105, if different, then check the legitimacy of the new IP configuration information;
[0066] In the embodiment of the present invention, when the new IP configuration information is different from the current IP configuration information, the validity of the new IP configuration information can be detected to determine whether to use the new IP configuration information to update the IP configuration information of the server BMC.
[0067] Step 106: When the new IP configuration information passes the validity check, the new IP configuration information is sent to the server BMC system for IP configuration.
[0068] In the embodiment of the present invention, when the display terminal determines that the new IP configuration information passes the legitimacy check, the new IP configuration information is sent to the server BMC system for IP configuration.
[0069] The present invention sends updated IP configuration information directly to the server BMC system through the display terminal, without the need to perform IP configuration through BIOS. Compared with the BIOS configuration method, the present invention is more intuitive and does not require restart, thereby improving the system stability of the server.
[0070] See also Figure 2 , Figure 2 A flowchart of a method for configuring an IP address of a server BMC system provided by another embodiment of the present invention. Specifically, the following steps may be included:
[0071] Step 201, when entering the preset IP interface is detected, an IP acquisition instruction is sent to the server BMC system;
[0072] In the embodiment of the present invention, step 201 is the same as step 101. For details, please refer to the description of step 101, which will not be repeated here.
[0073] Step 202, receiving the current IP configuration information of the server BMC system returned by the server BMC system in response to the IP acquisition instruction;
[0074] In the embodiment of the present invention, after receiving the IP acquisition instruction sent by the display terminal, the server BMC system can return the current IP configuration information to the display terminal. The display terminal can display the current IP configuration information of the server BMC system in real time for users to view.
[0075] In the embodiment of the present invention, the step of the server BMC system returning the current IP configuration information in response to the IP acquisition instruction may specifically include:
[0076] S11, the server BMC system responds to the IP acquisition instruction and determines the network interface;
[0077] S12, obtaining configuration information of the network access device through the network interface;
[0078] S13, obtaining the current IP configuration information of the server BMC system according to the configuration information, and returning the current IP configuration information to the display terminal.
[0079] Network interface refers to various interfaces of network devices. The commonly used network interface is Ethernet interface. Common Ethernet interface types include RJ-45 interface, RJ-11 interface, SC fiber interface, FDDI interface, AUI interface, BNC interface, and Console interface.
[0080] The network access device may be a dedicated management network interface, an Ethernet interface, or a USB external Serial-to-Ethernet converter.
[0081] Dedicated management network interface: is an Ethernet interface used for an internal private network to isolate the BMC management network from the server's business network to improve server security.
[0082] Ethernet interface: It is a commonly used interface through which data transmission, remote management support, etc. can be performed.
[0083] USB external Serial-to-Ethernet converter: When the Ethernet interface is damaged or unavailable, this combination can be used to connect to the network. In an emergency, this method can be used to access and maintain the BMC network. It is a flexible way to supplement the Ethernet interface.
[0084] In a specific implementation, after receiving the IP acquisition instruction, the server BMC system can determine the network interface of the network access device, and obtain the configuration information of the network access device according to the network interface, thereby obtaining the current IP configuration information of the server BMC system from the configuration information of the network access device. After obtaining the current IP configuration information, the server BMC system can return the current IP configuration information to the display terminal for display.
[0085] Step 203, receiving new IP configuration information input by the user;
[0086] When the user decides to update the IP configuration information of the server BMC system, the new IP configuration information can be directly entered on the display terminal.
[0087] Step 204, determining whether the current IP configuration information and the new IP configuration information are the same;
[0088] After receiving the new IP configuration information, the display terminal can compare the new IP configuration information with the current IP configuration information to determine whether the two are the same. If they are the same, it indicates that the user has not updated the current IP configuration information. If they are different, it indicates that the user is ready to update the IP configuration information of the server BMC system.
[0089] Step 205, if different, determine the format type of the IP configuration information;
[0090] Step 206, determining a legality detection scheme according to the format type;
[0091] Step 207, performing a legitimacy check on the IP configuration information according to the legitimacy check scheme;
[0092] In the embodiment of the present invention, the format type of IP configuration information may include but is not limited to IPv4 and IPv6, and different format types may correspond to different validity detection schemes. The validity detection of IPv4 and IPv6 both include address format detection, subnet mask detection, and default gateway detection, but there are differences in the specific detection processes.
[0093] Taking IPv4 as an example, the legitimacy detection process is as follows:
[0094] Address format detection:
[0095] An IPv4 address consists of 32 bits of binary numbers, usually expressed in dotted decimal notation. A legal IPv4 address is four decimal numbers (each between 0 and 255) separated by dots, such as 192.168.1.1.
[0096] The smallest IPv4 address is 0.0.0.0, and the largest is 255.255.255.255. 0.0.0.0 is often used to represent the default network, and 255.255.255.255 is the broadcast address.
[0097] If a decimal number in the IP address exceeds the range of 0-255, the IP configuration is illegal. For example, 192.168.256.1 is illegal.
[0098] Subnet mask detection:
[0099] The IPv4 subnet mask is also a 32-bit binary number, also expressed in dotted decimal notation, which is used to divide the network portion and the host portion of the IP address.
[0100] In the binary representation of a legal subnet mask, consecutive 1s are followed by consecutive 0s starting from the left. For example, 255.255.255.0 (binary 111111111.11111111.11111111.00000000) is a common subnet mask.
[0101] The subnet mask cannot be configured arbitrarily. For example, a subnet mask that does not comply with the rules, such as 255.0.255.0, is illegal.
[0102] Default Gateway Detection:
[0103] For a given IP address configuration, the IP address of the default gateway must match the network on which the device resides.
[0104] In an IPv4 network, if the device's IP address is 192.168.1.10 and the subnet mask is 255.255.255.0, then the default gateway address should be in the range of 192.168.1.1-192.168.1.254 (generally, .0 is the network address and .255 is the broadcast address, and these two are not usually used as the default gateway).
[0105] Taking IPv6 as an example, the legitimacy detection process is as follows:
[0106] Address format detection:
[0107] An IPv6 address is 128 bits long and is represented by eight groups of hexadecimal numbers separated by colons. Each group of hexadecimal numbers represents 16 bits, for example, 2001:0db8:85a3:0000:0000:8a2e:0370:7334.
[0108] The leading zero in each group can be omitted, but at least one number must be retained in each group. For example, 2001:db8:85a3::8a2e:370:7334 is a legal abbreviation. However, "::" can only appear once in an IPv6 address.
[0109] Subnet mask detection:
[0110] IPv6 uses prefix length to represent the subnet mask, which is a number between 0 and 128, indicating how many of the leftmost bits of the address are the network part. For example, 2001:db8:: / 32 means that the prefix length is 32 bits, that is, the first 32 bits are the network part.
[0111] Default Gateway Detection:
[0112] In an IPv6 network, the default gateway also needs to match the device's IPv6 network prefix to ensure that the device can correctly forward data packets to other networks.
[0113] Step 208: When the new IP configuration information passes the validity check, the new IP configuration information is sent to the server BMC system for IP configuration.
[0114] In the embodiment of the present invention, when the display terminal determines that the new IP configuration information passes the legitimacy check, the new IP configuration information is sent to the server BMC system for IP configuration.
[0115] In one example, when the new IP configuration information passes the legitimacy check, the step of sending the new IP configuration information to the server BMC system for IP configuration includes:
[0116] When the new IP configuration information passes the legitimacy check, the new IP configuration information is sent to the server BMC system; the server BMC system is used to perform a legitimacy check on the new IP configuration information, and when the check passes, the new IP configuration information is used to perform IP configuration through the network interface.
[0117] In a specific implementation, when the display terminal verifies that the new IP configuration information has passed the legitimacy test, it can send the new IP configuration information to the server BMC system to update the IP configuration information. Considering that there is a risk of loss or tampering when data is transmitted between different devices, the server BMC system can perform a legitimacy test on the new IP configuration information after receiving it. The specific test process can refer to steps 205-207, which will not be repeated here. When the server BMC system determines that the new IP configuration information has passed the legitimacy test, it can perform IP configuration through the network interface to obtain the IP configuration result.
[0118] Furthermore, when the configuration result is configuration failure, an error message is displayed. When the configuration result is configuration success, new IP configuration information is displayed on the display terminal.
[0119] The present invention sends updated IP configuration information directly to the server BMC system through the display terminal, without the need to perform IP configuration through BIOS. Compared with the BIOS configuration method, the present invention is more intuitive and does not require restart, thereby improving the system stability of the server.
[0120] For ease of understanding, the embodiments of the present invention are described below by using specific examples:
[0121] See also Figure 3 , Figure 3 A timing flow chart of an IP configuration method for a server BMC system provided in an embodiment of the present invention.
[0122] When the user enters the preset IP interface of the display terminal, the display terminal can send an IP acquisition instruction to the BMC system. The BMC system will obtain the current IP configuration information through the network interface and send the current IP configuration information to the display terminal for display.
[0123] When the user enters new IP configuration information in the display terminal, the display terminal can compare the new IP configuration information with the current IP configuration information. When the two are different, the legitimacy of the new IP configuration information is verified, and the new IP configuration information is sent to the server BMC system when the legitimacy verification is passed.
[0124] After receiving the new IP configuration information, the server BMC system will verify its legitimacy. If the verification is successful, the new IP configuration information will be configured through the network interface and the configuration result will be returned to the server BMC system. The server BMC system will then feedback success / error information to the display terminal through the configuration result.
[0125] See also Figure 4 , Figure 4 A structural block diagram of a display terminal provided by an embodiment of the present invention.
[0126] An embodiment of the present invention provides a display terminal, including:
[0127] The IP acquisition instruction sending module 401 is used to send an IP acquisition instruction to the server BMC system when it is detected that the preset IP interface is entered;
[0128] The current IP configuration information receiving module 402 is used to receive the current IP configuration information of the server BMC system returned by the server BMC system in response to the IP acquisition instruction;
[0129] New IP configuration information receiving module 403, used to receive new IP configuration information input by a user;
[0130] A determination module 404 is used to determine whether the current IP configuration information and the new IP configuration information are the same;
[0131] A validity detection module 405 is used to detect the validity of the new IP configuration information if it is different;
[0132] The IP configuration module 406 is used to send the new IP configuration information to the server BMC system for IP configuration when the new IP configuration information passes the validity check.
[0133] In an embodiment of the present invention, a server BMC system includes:
[0134] A network interface determination module is used for the server BMC system to respond to the IP acquisition instruction and determine the network interface;
[0135] A configuration information acquisition module, used to acquire configuration information of a network access device through a network interface;
[0136] The current IP configuration information return module is used to obtain the current IP configuration information of the server BMC system according to the configuration information, and return the current IP configuration information to the display end.
[0137] In the embodiment of the present invention, the legitimacy detection module 405 includes:
[0138] A format type determination submodule is used to determine the format type of IP configuration information;
[0139] A submodule for determining a legality detection scheme, used to determine a legality detection scheme according to a format type;
[0140] The legitimacy detection submodule is used to perform legitimacy detection on the IP configuration information according to the legitimacy detection scheme.
[0141] In the embodiment of the present invention, the IP configuration module 406 includes:
[0142] The new IP configuration information sending submodule is used to send the new IP configuration information to the server BMC system when the new IP configuration information passes the legitimacy test; the server BMC system is used to perform a legitimacy test on the new IP configuration information, and when the test passes, use the new IP configuration information to perform IP configuration through the network interface;
[0143] The configuration result receiving submodule is used to receive the configuration result returned by the server BMC system in response to the new IP configuration information.
[0144] In the embodiment of the present invention, the display terminal further includes:
[0145] The error reporting module is used to display error information when the configuration result is configuration failure.
[0146] An embodiment of the present invention further provides an electronic device, the device comprising a processor and a memory:
[0147] The memory is used to store the program code and transmit the program code to the processor;
[0148] The processor is used to execute the IP configuration method of the server BMC system according to the instructions in the program code.
[0149] The embodiment of the present invention further provides a computer-readable storage medium, which is used to store program codes, and the program codes are used to execute the IP configuration method of the server BMC system of the embodiment of the present invention.
[0150] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0151] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0152] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0153] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0157] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0158] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for configuring an IP address of a server BMC system, characterized in that: Applied to a display terminal; the method comprises: When entering the preset IP interface, an IP acquisition instruction is sent to the server BMC system; Receiving the current IP configuration information of the server BMC system returned by the server BMC system in response to the IP acquisition instruction; Receive new IP configuration information input by the user; Determine whether the current IP configuration information and the new IP configuration information are the same; If they are different, then the legitimacy of the new IP configuration information is checked; When the new IP configuration information passes the legitimacy check, the new IP configuration information is sent to the server BMC system for IP configuration.
2. The method according to claim 1, characterized in that The step of the server BMC system returning the current IP configuration information in response to the IP acquisition instruction comprises: The server BMC system responds to the IP acquisition instruction and determines the network interface; Acquiring configuration information of a network access device through the network interface; The current IP configuration information of the server BMC system is acquired according to the configuration information, and the current IP configuration information is returned to the display terminal.
3. The method according to claim 1, characterized in that The step of detecting the legitimacy of the new IP configuration information comprises: Determine the format type of the IP configuration information; Determining a legality detection scheme according to the format type; According to the legitimacy detection scheme, the legitimacy of the IP configuration information is detected.
4. The method according to any one of claims 1 to 3, characterized in that: When the new IP configuration information passes the legitimacy check, the step of sending the new IP configuration information to the server BMC system for IP configuration includes: When the new IP configuration information passes the legitimacy check, the new IP configuration information is sent to the server BMC system; the server BMC system is used to perform a legitimacy check on the new IP configuration information, and when the check passes, use the new IP configuration information to perform IP configuration through the network interface; Receive the configuration result returned by the server BMC system in response to the new IP configuration information.
5. The method according to claim 4, characterized in that Also includes: When the configuration result is configuration failure, an error message is displayed.
6. A display terminal, characterized in that: include: An IP acquisition instruction sending module is used to send an IP acquisition instruction to the server BMC system when it detects that the preset IP interface has been entered; A current IP configuration information receiving module, used for receiving the current IP configuration information of the server BMC system returned by the server BMC system in response to the IP acquisition instruction; A new IP configuration information receiving module, used to receive new IP configuration information input by a user; A judging module, used to judge whether the current IP configuration information and the new IP configuration information are the same; A legitimacy detection module, used for detecting the legitimacy of the new IP configuration information if different; The IP configuration module is used to send the new IP configuration information to the server BMC system for IP configuration when the new IP configuration information passes the legitimacy detection.
7. The display terminal according to claim 6, characterized in that: The server BMC system includes: A network interface determination module, used for the server BMC system to respond to the IP acquisition instruction and determine the network interface; A configuration information acquisition module, used to acquire configuration information of a network access device through the network interface; The current IP configuration information returning module is used to obtain the current IP configuration information of the server BMC system according to the configuration information, and return the current IP configuration information to the display terminal.
8. The display terminal according to claim 6, characterized in that: Legality detection module, including: A format type determination submodule, used to determine the format type of the IP configuration information; A legality detection scheme determination submodule, used to determine a legality detection scheme according to the format type; The legitimacy detection submodule is used to perform legitimacy detection on the IP configuration information according to the legitimacy detection scheme.
9. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the IP configuration method of the server BMC system according to any one of claims 1 to 6 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the IP configuration method of the server BMC system according to any one of claims 1 to 6.