A dynamic IP modification method and system based on an intelligent gateway

By deploying the server in the gateway system and using the client configuration tool, dynamic IP modification of the gateway system is achieved, which solves the time-consuming and labor-intensive problems of the traditional gateway system and improves configuration efficiency and interaction convenience.

CN116723174BActive Publication Date: 2025-10-21ZHONGRUIHENG (BEIJING) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310906590.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-21
Publication Date
2025-10-21
Estimated Expiration
2043-07-21

AI Technical Summary

Technical Problem

Modifying IP in traditional gateway systems requires manual operation, which is time-consuming, labor-intensive, and costly, and reduces the convenience and adaptability of interaction between acquisition devices and gateways.

Method used

By deploying the server in the gateway system, using the client configuration tool, scanning the preset network segment to obtain the initial IP, connecting to the server and correcting the port error, receiving the target IP address configuration information, and transferring the file to the server via the network cable to modify the IP.

Benefits of technology

It simplifies the gateway system configuration process, reduces manpower and material resources, improves configuration efficiency and interactive convenience, and ensures the correctness of IP configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116723174B_ABST
    Figure CN116723174B_ABST
Patent Text Reader

Abstract

The application discloses a kind of dynamic IP modification method and system based on intelligent gateway, to deploy service end in gateway system, in the way of client modification in configuration tool.Gateway system is set default IP, gateway and implementation computer are connected by network cable, gateway configuration system is opened in implementation computer to realize intelligent gateway dynamic IP modification.Configuration system and gateway system are connected by the way of service end client, and configuration information is transmitted by the way of TCP communication.Gateway system modifies corresponding IP by the information transmitted, and scans IP by IP scanning function when forgetting specific IP but knowing IP network segment.Reduce personnel configuration process, reduce gateway system configuration process, and also facilitate technicians to use, improve efficiency, simple operation and ensure the correctness and convenient interactivity of gateway system IP configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of dynamic IP modification based on intelligent gateway, and in particular to a method and system for dynamic IP modification based on intelligent gateway. Background Art

[0002] IoT gateways not only have network routing capabilities but also connect IoT devices to the internet. In the IoT gateway industry, more than one gateway is often deployed, so IoT gateways need to handle the cascading relationship between multiple gateways.

[0003] Traditional gateway systems require accessing the gateway's backend interface to modify IP addresses, plugging in a monitor, mouse, and keyboard. This process must be repeated for every modification. This process is highly dependent on the environment and equipment, requiring manual verification of the changes. The need for external equipment consumes significant manpower, material resources, and time. Errors are also prone to occur, requiring specialized personnel to configure and modify the settings. These personnel also need training on the gateway's backend operations. This approach is time-consuming, labor-intensive, and costly, reducing the ease and adaptability of interaction between data acquisition devices and the gateway. Summary of the Invention

[0004] Based on this, in response to the above technical problems, a dynamic IP modification method and system based on an intelligent gateway is provided to solve the problem that the existing gateway system's IP modification method is time-consuming, labor-intensive, and costly, and reduces the convenience and adaptability of interaction between the collection device and the gateway.

[0005] In a first aspect, a method for dynamic IP modification based on an intelligent gateway is provided, the method comprising:

[0006] In response to a first input from a user, a preset configuration tool is opened and an initial IP address is received. If the initial IP address is unknown, the initial IP address is obtained by scanning a preset network segment.

[0007] Connect to the server through the initial IP address. If the connection fails, check whether the initial IP and the server port are correct. If they are wrong, correct them and connect again;

[0008] In response to a second input from the user, receiving configuration information of the target IP address input by the user, and writing the configuration information of the target IP address into a target file;

[0009] The target file is sent to the server, and the server modifies the initial IP address to the target IP address according to the target file.

[0010] In the above solution, optionally, before responding to the first input from the user, opening the preset configuration tool and receiving the initial IP address, the method further includes:

[0011] A default IP address is set for the server in preparation for the first connection with the server, wherein the server is a server deployed at the gateway.

[0012] In the above solution, further optionally, if the initial IP address is unknown, obtaining the target IP address by scanning a preset network segment includes:

[0013] Get the corresponding network segment of the target network and ensure that the target host is set to the same network segment, scan the target IP, enter the corresponding network segment, and output two optional IPs, one of which is the gateway device IP and the other is the target IP.

[0014] In the above solution, further optionally, sending the target file to the server, and the server modifying the initial IP address to the target IP address according to the target file, includes:

[0015] The server and the client are connected via a network cable;

[0016] The server modifies the initial IP address to the target IP address according to the target file, specifically: the server processes the received target file, replaces and modifies the relevant configuration through script replacement to ensure that the dhcpcd.conf configuration file is replaced and modified to the setting item, and finally restarts the gateway to realize the modification of the initial IP address to the target IP address.

[0017] In a second aspect, a dynamic IP modification system based on an intelligent gateway comprises:

[0018] A first input module: configured to open a preset configuration tool and receive an initial IP address in response to a first input from a user, and to obtain the initial IP address by scanning a preset network segment if the initial IP address is unknown;

[0019] Connection module: connects to the server through the initial IP address. If the connection fails, check whether the initial IP and the server port are correct. If they are wrong, correct them and connect again.

[0020] A second input module is configured to receive, in response to a second input from a user, configuration information of a target IP address input by the user, and write the configuration information of the target IP address into a target file;

[0021] Modification module: used for sending the target file to the server, and the server modifies the initial IP address to the target IP address according to the target file.

[0022] In the above solution, further optionally, before the first input module responds to the first input of the user, opens the preset configuration tool and receives the initial IP address, it further includes:

[0023] A default IP address is set for the server in preparation for the first connection with the server, wherein the server is a server deployed at the gateway.

[0024] In the above solution, further optionally, if the initial IP address is unknown in the first input module, obtaining the target IP address by scanning a preset network segment includes:

[0025] Get the corresponding network segment of the target network and ensure that the target host is set to the same network segment, scan the target IP, enter the corresponding network segment, and output two optional IPs, one of which is the gateway device IP and the other is the target IP.

[0026] In the above solution, further optionally, sending the target file to the server, and the server modifying the initial IP address to the target IP address according to the target file, includes:

[0027] The server and the client are connected via a network cable;

[0028] The server modifies the initial IP address to the target IP address according to the target file, specifically: the server processes the received target file, replaces and modifies the relevant configuration through script replacement to ensure that the dhcpcd.conf configuration file is replaced and modified to the setting item, and finally restarts the gateway to realize the modification of the initial IP address to the target IP address.

[0029] According to a third aspect, a computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are performed:

[0030] In response to a first input from a user, a preset configuration tool is opened and an initial IP address is received. If the initial IP address is unknown, the initial IP address is obtained by scanning a preset network segment.

[0031] Connect to the server through the initial IP address. If the connection fails, check whether the initial IP and the server port are correct. If they are wrong, correct them and connect again;

[0032] In response to a second input from the user, receiving configuration information of the target IP address input by the user, and writing the configuration information of the target IP address into a target file;

[0033] The target file is sent to the server, and the server modifies the initial IP address to the target IP address according to the target file.

[0034] In a fourth aspect, a computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the computer program implements the following steps:

[0035] In response to a first input from a user, a preset configuration tool is opened and an initial IP address is received. If the initial IP address is unknown, the initial IP address is obtained by scanning a preset network segment.

[0036] Connect to the server through the initial IP address. If the connection fails, check whether the initial IP and the server port are correct. If they are wrong, correct them and connect again;

[0037] In response to a second input from the user, receiving configuration information of the target IP address input by the user, and writing the configuration information of the target IP address into a target file;

[0038] The target file is sent to the server, and the server modifies the initial IP address to the target IP address according to the target file.

[0039] The present invention has at least the following beneficial effects:

[0040] Based on further analysis and research of existing technical problems, the present invention recognizes that the existing gateway system modification method is time-consuming, labor-intensive, and costly, which reduces the convenience and adaptability of interaction between the acquisition device and the gateway. By opening a preset configuration tool on the client and receiving an initial IP address, if the initial IP address is unknown, the initial IP is obtained by scanning a preset network segment, and the server is connected through the initial IP address. If the connection fails, the initial IP and the server port are checked to see if they are correct. If they are wrong, they are corrected and then connected; the configuration information of the target IP address input by the user is received, and the configuration information of the target IP address is written into a target file; the target file is sent to the server, and the server modifies the initial IP address to the target IP address according to the target file.

[0041] The present invention deploys a server in the gateway system and performs client modifications in the configuration tool. The gateway system is set to a default IP, the gateway is connected to the implementation computer via a network cable, and the gateway configuration system is opened on the implementation computer to achieve dynamic IP modification of the intelligent gateway. A connection is established between the configuration system and the gateway system through the server client, and the configuration information is transmitted through TCP communication. The gateway system modifies the corresponding IP based on the transmitted information. When the specific IP is forgotten but the IP network segment is known, the IP is scanned through the IP scanning function. This reduces the configuration process of personnel and the gateway system configuration process. At the same time, it can also facilitate the use of technical personnel to improve efficiency, simplify operation, and ensure the correctness and convenient interactivity of the gateway system IP configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A schematic diagram of a flow chart of a method for dynamic IP modification based on an intelligent gateway provided in one embodiment of the present invention;

[0043] Figure 2 A schematic diagram of the overall process of a dynamic IP modification method based on an intelligent gateway provided by one embodiment of the present invention;

[0044] Figure 3 A schematic diagram of opening an interface to configure IP according to an embodiment of the present invention;

[0045] Figure 4 A schematic diagram of a server program interface provided by an embodiment of the present invention;

[0046] Figure 5 A schematic diagram of the client interface of a gateway configuration tool provided by one embodiment of the present invention;

[0047] Figure 6 A schematic diagram of the client interface after a successful connection is provided in one embodiment of the present invention;

[0048] Figure 7 One of the schematic diagrams of the scanning IP interface provided by one embodiment of the present invention;

[0049] Figure 8 The second schematic diagram of the scanning IP interface provided by one embodiment of the present invention;

[0050] Figure 9 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0052] The dynamic IP modification method based on intelligent gateway provided by this application is as follows: Figure 1 Figure 2 As shown, the following steps are included:

[0053] In response to a first input from a user, a preset configuration tool is opened and an initial IP address is received. If the initial IP address is unknown, the initial IP address is obtained by scanning a preset network segment.

[0054] Connect to the server through the initial IP address. If the connection fails, check whether the initial IP and the server port are correct. If they are wrong, correct them and connect again;

[0055] In response to a second input from the user, receiving configuration information of the target IP address input by the user, and writing the configuration information of the target IP address into a target file;

[0056] The target file is sent to the server, and the server modifies the initial IP address to the target IP address according to the target file.

[0057] In one embodiment, before the step of opening the preset configuration tool and receiving the initial IP address in response to the first input of the user, the step further includes:

[0058] A default IP address is set for the server in preparation for the first connection with the server, wherein the server is a server deployed at the gateway.

[0059] In one embodiment, if the initial IP address is unknown, obtaining the target IP address by scanning a preset network segment includes:

[0060] Get the corresponding network segment of the target network and ensure that the target host is set to the same network segment, scan the target IP, enter the corresponding network segment, and output two optional IPs, one of which is the gateway device IP and the other is the target IP.

[0061] In one embodiment, the sending of the target file to the server, and the modification of the initial IP address to the target IP address by the server according to the target file, includes:

[0062] The server and the client are connected via a network cable;

[0063] The server modifies the initial IP address to the target IP address according to the target file, specifically: the server processes the received target file, replaces and modifies the relevant configuration through script replacement to ensure that the dhcpcd.conf configuration file is replaced and modified to the setting item, and finally restarts the gateway to realize the modification of the initial IP address to the target IP address.

[0064] This embodiment deploys the server in the gateway system and makes client modifications in the configuration tool. Set the default IP for the gateway system, connect the gateway and the implementation computer via a network cable, and open the gateway configuration system on the implementation computer to achieve dynamic IP modification of the intelligent gateway. Establish a connection between the configuration system and the gateway system through the server client and transmit the configuration information through TCP communication. The gateway system modifies the corresponding IP based on the transmitted information. When the specific IP is forgotten but the IP network segment is known, the IP is scanned through the IP scanning function. This reduces the configuration process of personnel and the gateway system configuration process. At the same time, it can also facilitate the use of technical personnel to improve efficiency, simplify operation, and ensure the correctness and convenient interactivity of the gateway system IP configuration.

[0065] In one embodiment, Figure 3-Figure 8 As shown, the method proposed in this patent is mainly an improvement for the dynamic IP modification and scanning of the intelligent gateway, by deploying the server in the gateway system and making client modifications in the configuration tool. Set the default IP of the gateway system, connect the gateway and the implementation computer through a network cable, and open the gateway configuration system in the implementation computer to realize the dynamic IP modification of the intelligent gateway. Establish a connection between the configuration system and the gateway system through the server client and transmit the configuration information through TCP communication. The gateway system modifies the corresponding IP through the transmitted information. When the specific IP is forgotten but the IP network segment is known, the IP is scanned through the IP scanning function. It reduces the configuration process of personnel and the gateway system configuration process. At the same time, it can also facilitate the use of technical personnel to improve efficiency, simplify operation and ensure the correctness and convenient interactivity of the gateway system IP configuration.

[0066] In one embodiment, the configuration of IP information in the gateway system is related to the data transmission of the entire system and the connection and communication of related systems. Ease of maintenance, simplicity, low cost, high efficiency, and speed are of paramount importance. This patent proposes a system and method for dynamic IP modification and scanning based on intelligent gateways, which will start from the following aspects:

[0067] Set the initial IP address for the gateway system to connect to; deploy the server program in the gateway system and set it to start automatically at boot; embed the client program in the gateway configuration system; connect through the client server to set the configuration information to the gateway system; scan the IP address to determine the final IP address if the IP address is forgotten;

[0068] In one embodiment, the gateway system deploys the server program and sets it to start automatically at boot. The server is deployed in the gateway system and is set to start automatically at boot through a script. When setting up the gateway system, we will set a default IP for our first connection. By starting the server automatically, we ensure that the client can connect and modify the IP by entering the IP. After connecting, we can set the corresponding IP to achieve dynamic IP modification. In the previous approach, we need to open the interface to configure the IP such as Figure 3 As shown:

[0069] In one embodiment, during this operation, the configuration personnel need to configure the corresponding network information according to the on-site requirements, and need to connect the monitor, mouse and keyboard to the gateway system for operation, which is quite cumbersome. By deploying the server program in the gateway system, these operations are handed over to the server to complete, and this purpose is achieved by transferring files through the client and server, thus realizing the modification of dynamic IP. The server program interface is as follows Figure 4 shown.

[0070] In one embodiment, the client program is embedded in the gateway configuration system, and the host is connected to the gateway through a network cable to achieve the connection conditions between the client and the server. Enter the gateway IP in the gateway configuration system, and the gateway configuration tool client interface is as follows: Figure 5 As shown:

[0071] In one embodiment, the connection status is displayed in the lower left corner of the dialog box by entering the IP address. The corresponding input box is editable. Edit the corresponding information to configure the wireless and network port IP addresses and gateway. Once confirmed, click the Modify button to transfer the file. The configuration information is transmitted to the server via a network cable connection. The server replaces the information, thus achieving dynamic IP modification. The client editing process processes the information and writes it into the configuration file, which is then transmitted to the server.

[0072] In one embodiment, the IP scanning function makes it easy to find the IP address. When we modify the IP, the IP address may be unclear due to personnel turnover, improper operation, forgetfulness, or missing process record files. Due to hardware equipment issues, we cannot perform one-click recovery or restoration operations. In the past, we needed to continue to enter the gateway system background to confirm and view the IP. This consumes a lot of manpower and material resources and is not conducive to project maintenance and implementation. The IP scanning function is operated through the corresponding tools. As long as we know the corresponding network segment, we can perform IP scanning. During the scanning process, ensure that the operating host is also set to the same network segment. Enter the corresponding network segment in the input box below and click the start button to perform IP scanning.

[0073] During the scan, green indicates a ping success, while darker colors indicate a ping failure or a timeout. The scan revealed that only 22 and 200 were ping-able. Since 192.168.10.22 is the local IP address, the scan result, 192.168.10.200, indicates the gateway device's IP address. This allows us to quickly determine the gateway's IP address. Entering 192.168.10.200 successfully connects.

[0074] This embodiment deploys a server program in the gateway system and sets a default IP address for the gateway system, connects the gateway system to the implementation host via a network cable, runs the gateway configuration system in the implementation host, opens the client in the gateway configuration system and enters the IP address to connect. When the specific IP address is forgotten, the IP scan function can be used to scan the IP, and then the IP can be determined before connecting. After connecting, modify the corresponding configuration to confirm that the information is correct and click Modify. After the modification, the server receives the information, and the server processes the received information. The relevant configuration is replaced and modified through the script to ensure that the dhcpcd.conf configuration file is replaced and modified to the setting item, and finally the gateway is restarted to implement the modification. When the IP address needs to be modified again, continue to connect the gateway device via the network cable, and use the gateway configuration tool to connect to the server to modify the IP address.

[0075] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 1 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The order of execution of these steps or stages is not necessarily one by one, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0076] In one embodiment, a dynamic IP modification system based on an intelligent gateway is provided, comprising the following program modules:

[0077] A first input module: configured to open a preset configuration tool and receive an initial IP address in response to a first input from a user, and to obtain the initial IP address by scanning a preset network segment if the initial IP address is unknown;

[0078] Connection module: connects to the server through the initial IP address. If the connection fails, check whether the initial IP and the server port are correct. If they are wrong, correct them and connect again.

[0079] A second input module is configured to receive, in response to a second input from a user, configuration information of a target IP address input by the user, and write the configuration information of the target IP address into a target file;

[0080] Modification module: used for sending the target file to the server, and the server modifies the initial IP address to the target IP address according to the target file.

[0081] In one embodiment, the first input module, in response to the first input of the user, before opening the preset configuration tool and receiving the initial IP address, further comprises:

[0082] A default IP address is set for the server in preparation for the first connection with the server, wherein the server is a server deployed at the gateway.

[0083] In one embodiment, if the initial IP address is unknown, the first input module obtains the target IP address by scanning a preset network segment, including:

[0084] Get the corresponding network segment of the target network and ensure that the target host is set to the same network segment, scan the target IP, enter the corresponding network segment, and output two optional IPs, one of which is the gateway device IP and the other is the target IP.

[0085] In one embodiment, the sending of the target file to the server, and the modification of the initial IP address to the target IP address by the server according to the target file, includes:

[0086] The server and the client are connected via a network cable;

[0087] The server modifies the initial IP address to the target IP address according to the target file, specifically: the server processes the received target file, replaces and modifies the relevant configuration through script replacement to ensure that the dhcpcd.conf configuration file is replaced and modified to the setting item, and finally restarts the gateway to realize the modification of the initial IP address to the target IP address.

[0088] For the specific definition of the dynamic IP modification system based on the intelligent gateway, please refer to the definition of the dynamic IP modification method based on the intelligent gateway above, and will not be repeated here. The various modules in the above-mentioned dynamic IP modification system based on the intelligent gateway can be implemented in whole or in part through software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of the above-mentioned modules.

[0089] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 9 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input system connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a dynamic IP modification method based on an intelligent gateway is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input system of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0090] Those skilled in the art will understand that Figure 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0091] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, which involves all or part of the processes in the above-mentioned embodiment method.

[0092] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which involves all or part of the processes in the above-mentioned embodiment method.

[0093] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0094] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0095] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A dynamic IP modification method based on an intelligent gateway, characterized in that: The method comprises: In response to a first input from a user, a preset configuration tool is opened and an initial IP address is received. If the initial IP address is unknown, the initial IP address is obtained by scanning a preset network segment. Connect to the server through the initial IP address. If the connection fails, check whether the initial IP and the server port are correct. If they are wrong, correct them and connect again; In response to a second input from the user, receiving configuration information of the target IP address input by the user, and writing the configuration information of the target IP address into a target file; The target file is sent to the server, and the server modifies the initial IP address to the target IP address according to the target file.

2. The method according to claim 1, characterized in that Before the method of opening the preset configuration tool and receiving the initial IP address in response to the first input of the user further includes: A default IP address is set for the server in preparation for the first connection with the server, wherein the server is a server deployed at the gateway.

3. The method according to claim 1, characterized in that If the initial IP address is unknown, obtaining the initial IP address by scanning a preset network segment includes: Get the corresponding network segment of the target network and ensure that the target gateway is set to the same network segment. Enter the scan IP interface, enter the corresponding network segment, and output two optional IPs, one of which is the local IP and the other is the initial IP.

4. The method according to claim 1, wherein The sending of the target file to the server, wherein the server modifies the initial IP address to the target IP address according to the target file, includes: The server and the client are connected via a network cable; The server modifies the initial IP address to the target IP address according to the target file, specifically: the server processes the received target file, replaces and modifies the relevant configuration through script replacement to ensure that the dhcpcd.conf configuration file is replaced and modified to the setting item, and finally restarts the gateway to realize the modification of the initial IP address to the target IP address.

5. A dynamic IP modification system based on intelligent gateway, characterized in that: The system comprises: A first input module: configured to open a preset configuration tool and receive an initial IP address in response to a first input from a user, and to obtain the initial IP address by scanning a preset network segment if the initial IP address is unknown; Connection module: connects to the server through the initial IP address. If the connection fails, check whether the initial IP and the server port are correct. If they are wrong, correct them and connect again. A second input module is configured to receive, in response to a second input from a user, configuration information of a target IP address input by the user, and write the configuration information of the target IP address into a target file; Modification module: used for sending the target file to the server, and the server modifies the initial IP address to the target IP address according to the target file.

6. The system according to claim 5, characterized in that The first input module further includes, before opening the preset configuration tool and receiving the initial IP address in response to the first input of the user: A default IP address is set for the server in preparation for the first connection with the server, wherein the server is a server deployed at the gateway.

7. The system according to claim 5, characterized in that If the initial IP address is unknown in the first input module, obtaining the initial IP address by scanning a preset network segment includes: Get the corresponding network segment of the target network and ensure that the target gateway is set to the same network segment. Enter the scan IP interface, enter the corresponding network segment, and output two optional IPs, one of which is the local IP and the other is the initial IP.

8. The system according to claim 5, wherein: The sending of the target file to the server, wherein the server modifies the initial IP address to the target IP address according to the target file, includes: The server and the client are connected via a network cable; The server modifies the initial IP address to the target IP address according to the target file, specifically: the server processes the received target file, replaces and modifies the relevant configuration through script replacement to ensure that the dhcpcd.conf configuration file is replaced and modified to the setting item, and finally restarts the gateway to realize the modification of the initial IP address to the target IP address.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Gateway IP address configuration method and device, gateway and readable storage medium

    CN113037880A

  • Interface management method and device, electronic equipment and storage medium

    CN115941779A