Gateway configuration method, operating system, equipment and storage medium

By obtaining and modifying the default gateway priority in the operating system, the problem of random connection failure in a multi-gateway environment is solved, achieving more efficient network connection and improving user experience.

CN119449597APending Publication Date: 2025-02-14DALIAN RUITU INTELLIGENT PRINTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411562124.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, multiple gateway parameters corresponding to multiple network environments are obtained by manual input or dynamic host configuration protocol server, resulting in multiple gateways present in the system being used as default gateways, and randomly using the default gateway cannot be connected to the external network, which affects the User experience.

Method used

Provide a gateway configuration method, based on the network configuration of the operating system, obtain the default gateway priority information set by the user, modify the default gateway priority, and display the default gateway information on the UI interface, so that the operating system can be more easily connected to external devices.

Benefits of technology

By setting default gateway priority, the operating system can effectively connect to the external network, improve the user experience, simplify the network connection process, and reduce memory usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449597A_ABST
    Figure CN119449597A_ABST
Patent Text Reader

Abstract

The invention provides a gateway configuration method, which is based on network configuration of an operating system, and comprises the following steps: obtaining first gateway setting information, and modifying a default gateway priority according to the first gateway setting information, the first gateway setting information being related information representing default gateway options set by a user; first gateway display information is generated, the first gateway display information is displayed on a first gateway display interface, and the first gateway display information comes from the identification part of the first gateway setting information; wherein the identification part of the first gateway information is used for distinguishing the first gateway information from the information of the non-default gateway. In the embodiment of the invention, when a plurality of gateways exist, the information of the default gateway priority option set by the user is acquired, and the information of the default gateway is prompted / displayed on the UI interface, so that the operating system is easier to connect to the external equipment, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of associated network information processing of electronic devices, and specifically to a gateway configuration method, an operating system, a device and a storage medium. Background Art

[0002] Gateway is also called network connector or protocol converter. Gateway realizes network interconnection above the network layer. It is a complex network interconnection device and is only used for interconnection between two networks with different high-level protocols. Gateway can be used for wide area network interconnection as well as local area network interconnection. It is a computer system or device that performs the important task of conversion. It is used between two systems with different communication protocols, data formats or languages, or even completely different architectures. Gateway is like a translator. Gateway repackages the received information to meet the needs of the destination system.

[0003] In existing solutions, there are usually multiple network environments. At this time, multiple gateways corresponding to the multiple network environments may be set in the system through manual input or acquisition from the Dynamic Host Configuration Protocol server. In the current situation, it is equivalent to that all the gateways in the system are used as default gateways. These default gateways are usually not in order. When the default gateway is randomly used to establish a connection with the gateway server for data transmission, it is impossible to connect to the external network for normal communication.

[0004] It should be pointed out that the information disclosed in the background technology section of this application is only intended to deepen the understanding of the general background technology of this application, and should not be regarded as an admission or suggestion in any form that the information constitutes prior art already known to those skilled in the art. Summary of the invention

[0005] In view of this, the present application provides a gateway configuration method to help solve the problem in the prior art that, in a case where multiple gateway parameters corresponding to multiple network environments can be set to the system by manual input or acquisition from a dynamic host configuration protocol server, multiple gateways in the system are all used as default gateways. When the default gateway is randomly used to establish a connection with the gateway server for data transmission, it is impossible to connect to the external network for normal communication, affecting the user experience.

[0006] In a first aspect, an embodiment of the present application provides a gateway configuration method based on a network configuration of an operating system, the method comprising:

[0007] Acquire first gateway setting information, and modify the default gateway priority according to the first gateway setting information, where the first gateway setting information is related information representing a default gateway option set by a user;

[0008] Generate first gateway display information, and display the first gateway display information on a first gateway display interface, wherein the first gateway display information is derived from an identification portion of the first gateway setting information;

[0009] The identification part of the first gateway information is used to distinguish the first gateway information from information of a non-default gateway.

[0010] In an embodiment of the present application, when there are multiple gateways, information of the default gateway priority option set by the user is obtained, and the information of the default gateway is prompted / displayed on the UI interface, making it easier for the operating system to connect to external devices and improving the user experience.

[0011] In a possible implementation manner, the type of the first gateway setting information is at least one of wired gateway information or wireless gateway information, and the first gateway setting information at least includes a gateway address.

[0012] In the embodiment of the present application, the types of default gateway priority cover wired form or wireless form, ensuring the comprehensiveness of the default gateway information connection method.

[0013] In the embodiment of the present application, the first gateway setting information is identification information, which can be said to be a naming form. The naming form can be selected from multiple first gateway setting information, but it must at least include the gateway address, which is highly distinctive and universal information, and can also be assisted by destination information and subnet mask information for enhanced identification.

[0014] In a possible implementation, after the first gateway setting information is obtained, other default gateways other than the default gateway represented by the first gateway setting information are deleted.

[0015] In the embodiment of the present application, after the user selects a default gateway as the default gateway to be connected, the other default gateways are directly deleted, and only the default gateway with the first gateway setting information is left to perform the network connection. At this time, the other default gateways are unnecessary options. Deleting them can reduce memory and purify the network list to make it more concise and clear. At the same time, there is no need to perform subsequent setting steps for the gateway priority, and the network connection is directly established, which is convenient and quick.

[0016] In a possible implementation, before modifying the gateway priority according to the first gateway setting information, the current network interaction status is first detected. If the current network interaction status is connected, a first prompt message is sent to the user, and the first prompt message is used to prompt the user of the current network interaction status.

[0017] In addition, this implementation also implements priority detection of network connections, prompts the user that the current network is connected, and provides the user with the option of whether to switch networks, thereby avoiding disconnection of the currently connected network due to user misoperation, thereby improving the user experience.

[0018] In a possible implementation, the first prompt message is displayed on the second gateway display interface, and an associated option is also set on the second gateway display interface. The associated option is used to prompt the user whether to choose to continue to modify the default gateway priority. If so, the current network interaction is cut off and the default gateway priority is modified according to the first gateway setting information.

[0019] When it is detected that the network is connected, the user can still choose whether to continue to modify the gateway priority through the display interface of the prompt message, providing the user with optional options to facilitate user operation.

[0020] In a possible implementation, the first gateway setting information is obtained from a third gateway display interface, and the third gateway display interface is used to display gateway priority setting options.

[0021] In the embodiment of the present application, in order to facilitate users to set the default gateway priority, a third gateway display interface is specially set to display all the configurable default gateway information in the system, which is convenient for users to select and set and improve the user experience.

[0022] In a second aspect, an embodiment of the present application provides an operating system based on a management module, characterized in that the management module includes:

[0023] A setting management module, used for obtaining the first gateway setting information;

[0024] A gateway setting module modifies the gateway priority of the operating system according to the first gateway setting information.

[0025] In a possible implementation, the management module further includes:

[0026] A network detection module is used to detect the current network interaction state. If the current network interaction state is connected, the result is output to the device management module, and the device management module sends a first prompt message to the user.

[0027] an interactive module, providing the user with the first gateway display interface of the gateway priority modified based on the first gateway setting information,

[0028] And / or, displaying the first prompt message sent by the device management module to the user.

[0029] According to a third aspect, an electronic device is provided, comprising:

[0030] processor;

[0031] Memory;

[0032] Communication unit;

[0033] And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes any one of the methods described in the first aspect.

[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described in the first aspect.

[0035] It is understandable that the operating system provided in the second aspect, the electronic device provided in the third aspect, and the computer-readable storage medium provided in the fourth aspect are used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0037] Figure 1 A schematic diagram of a flow chart of a gateway configuration method according to an embodiment of the present application;

[0038] Figure 2 A schematic diagram of a flow chart of a gateway configuration method according to an embodiment of the present application;

[0039] Figure 3 A schematic diagram of a flow chart of a gateway configuration method according to an embodiment of the present application;

[0040] Figure 4 A schematic diagram of an operating system according to an embodiment of the present application;

[0041] Figure 5 A schematic diagram of an operating system according to an embodiment of the present application;

[0042] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0044] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0045] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0046] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0047] In the related art, there are usually multiple network environments, and multiple gateways corresponding to the multiple network environments may be set in the system by manual input or acquisition from a dynamic host configuration protocol server. In the current situation, it is equivalent to that all the gateways in the system are used as default gateways, and these default gateways are usually not in order. When the default gateway is randomly used to establish a connection with the gateway server for data transmission, it is impossible to connect to the external network for normal communication.

[0048] In response to the above problems, the present application provides a gateway configuration method based on the network configuration of an operating system, the method comprising: obtaining first gateway setting information, modifying the default gateway priority according to the first gateway setting information, the first gateway setting information being related information representing the default gateway option set by the user; generating first gateway display information, displaying the first gateway display information on a first gateway display interface, the first gateway display information being derived from an identification portion of the first gateway setting information; wherein the identification portion of the first gateway information is used to distinguish the first gateway information from information of a non-default gateway.

[0049] It is understandable that the current operating system realizes the function of setting the default gateway priority through this embodiment. Before modifying the gateway priority, the default gateway priority is modified by obtaining the relevant information of the default gateway option set by the user as the first gateway setting information. Through the default gateway priority setting, the operating system sets a default gateway with priority connection to connect to the gateway server. If the default gateway setting received by the current gateway server happens to be the same as the network setting of the network to be connected, the electronic device where the operating system is located can be connected to the network to be connected. If the default gateway of the current network server is different from the network setting to be connected, the default gateway priority can still be set, which provides a more convenient method for realizing the connection between the electronic device where the operating system is located and the network to be connected. Specifically, it is described in detail below and in the accompanying drawings and specific embodiments.

[0050] See also Figure 1 , is a flow chart of a gateway configuration method provided in an embodiment of the present application. Figure 1 As shown, the method mainly includes the following steps:

[0051] Step S101: Acquire first gateway setting information, and modify the default gateway priority according to the first gateway setting information.

[0052] Specifically, the user sets the priority of the default gateway in the third gateway display interface of the electronic device. After setting the priority of the default gateway, the first gateway setting information is obtained, and the default gateway priority is modified (including the first setting and the change of the original setting) according to the first gateway setting information. The gateway setting step implements the priority setting of the default gateway, wherein the first gateway setting information is the relevant information representing the default gateway option set by the user.

[0053] In a possible implementation, the type of the first gateway setting information is at least one of wired gateway information or wireless gateway information, and the first gateway setting information at least includes a gateway address, where the gateway address is an Internet Protocol address, and can be exemplarily an IP address of the gateway.

[0054] In addition, in another possible implementation, the first gateway setting information includes at least one of a destination and a subnet mask in addition to the gateway address. The included gateway address information, wherein at least one of a destination and a subnet mask is included, means that the first gateway setting information is a distinguishing identification information, which is used to provide an instruction for modifying the default gateway priority, and the default gateway setting of the specified priority is completed by identifying this identification information.

[0055] Step S102: Generate first gateway display information and display it on a first gateway display interface. The first gateway display information is derived from the identification part of the first gateway setting information.

[0056] Specifically, the identification part of the first gateway information refers to the gateway address, destination or sub-mask information in the aforementioned embodiment, which is used to distinguish the first gateway information from the non-default gateway information. The identification part is used to provide the user with the first gateway display information, which shows which current priority default gateway is.

[0057] In the method of the embodiment of the present application, when there are multiple default gateways for an electronic device but it is impossible to choose which default gateway to use to connect to the network to be connected, relevant information of the default gateway option set by the user is obtained as the first gateway setting information, the priority of the default gateway is modified, and the priority of the default gateway is set. A priority default gateway is selected for the operating system to establish a network connection with the network to be connected through the gateway server, so that the electronic device can still establish a network connection when it has multiple default gateways.

[0058] See also Figure 2 , is a flow chart of a gateway configuration method provided in an embodiment of the present application. Figure 2 As shown, the method mainly includes the following steps:

[0059] Step S201: Acquire first gateway setting information, and modify the default gateway priority according to the first gateway setting information.

[0060] Specifically, the user sets the priority of the default gateway in the third gateway display interface of the electronic device. After setting the priority of the default gateway, the first gateway setting information is obtained, and the default gateway priority is modified (including the first setting and the change of the original setting) according to the first gateway setting information. The gateway setting step implements the priority setting of the default gateway, wherein the first gateway setting information is the relevant information representing the default gateway option set by the user.

[0061] In a possible implementation, the type of the first gateway setting information is at least one of wired gateway information or wireless gateway information, and the first gateway setting information at least includes a gateway address, where the gateway address is an Internet Protocol address, and can be exemplarily an IP address of the gateway.

[0062] In a possible implementation, exemplarily, the process of obtaining the first gateway setting information and modifying the default gateway priority is: when the printer is connected to network 1 and network 2 at the same time, the printer obtains the IP address, subnet mask, gateway, DNS server address and other information through the DHCP server in network 1 and network 2 respectively to form a default gateway option displayed on the third gateway display interface. The user modifies the default gateway through the third gateway display interface and saves it, and obtains the modified default gateway option value, that is, the first gateway setting information. At the same time, the system gateway priority is modified according to the first gateway setting information, and the modified default gateway with a high priority is displayed in the first gateway display interface. In addition, in another possible implementation, the first gateway setting information includes at least one of a destination and a subnet mask in addition to the gateway address. The gateway address information included, wherein at least one of a destination and a subnet mask is included, means that the first gateway setting information is a kind of identification information that plays a distinguishing role, and is used to provide an instruction for modifying the default gateway priority. By identifying this identification information, the default gateway setting of the specified priority is completed.

[0063] Step S202: After obtaining the first gateway setting information, delete other default gateways except the default gateway represented by the first gateway setting information.

[0064] In a possible implementation, after obtaining the first gateway setting information, other default gateways other than the default gateway represented by the first gateway setting information can be deleted or hidden. For example, when the user selects the default gateway of network 1 as the default gateway to be connected, the default gateway of network 2 is directly deleted, leaving only the default gateway of network 1 to perform network connection. At this time, the default gateway of network 2 is an unnecessary option. Deleting it can purify the network list to make it more concise and clear. At the same time, there is no need to perform the subsequent setting steps of gateway priority, and the network connection is directly established, which is convenient and fast.

[0065] Step S203: Generate first gateway display information and display it on the first gateway display interface. The first gateway display information is derived from the identification part of the first gateway setting information.

[0066] Specifically, the identification part of the first gateway information refers to the information such as the gateway address, destination or sub-mask in the aforementioned embodiment, which is used to distinguish the first gateway information from the information of the non-default gateway, and the identification part is used to provide the user with the first gateway display information, which has been displayed which current priority default gateway is the current default gateway. In a possible implementation, the first prompt message is displayed on the second gateway display interface, and the second gateway display interface is also provided with an associated option, which is used to prompt the user whether to choose to continue to modify the gateway priority. If so, the current network interaction is cut off, and the gateway priority is modified according to the first gateway setting information.

[0067] In a possible implementation, when the default gateway accessed is unique, the gateway priority setting is not displayed. After obtaining the first gateway setting information, the network is directly connected according to the currently accessed default gateway. Even if the user sets the priority of other default gateways in the third gateway interface, only the currently accessed default gateway information is displayed on the first gateway display interface.

[0068] Exemplarily, the printer is only connected to network 1 and has no other network access, so it directly obtains the default gateway of network 1 for network connection, and does not display the gateway priority information on the second gateway display interface. In this case, even if the user sets the priority of the default gateway in the third gateway display interface of the electronic device, for example, the user sets network 2 as the default gateway, because network 2 does not actually exist, the current first gateway display interface only displays the default gateway information of network 1.

[0069] This implementation can ensure that the user can still obtain accurate gateway setting prompt information when the user is not clear about the current default gateway and sets other default gateways to a higher priority.

[0070] In a possible implementation, when the default gateway accessed is unique, the gateway priority setting is not displayed. After obtaining the first gateway setting information, the network is directly connected according to the currently accessed default gateway, and no default gateway information is displayed on the first gateway display interface.

[0071] Exemplarily, if the printer is only connected to network 1 and has no other network access, it will directly obtain the default gateway of network 1 for network connection, and will not display the gateway priority information on the second gateway display interface. In this case, regardless of whether the user sets the priority of the default gateway in the third gateway display interface of the electronic device, the first gateway display interface will not display it. For example, the user sets network 2 as the default gateway, but because network 2 does not actually exist, the current first gateway display interface does not display the default gateway; or, the user does not set the default gateway, and the current first gateway display interface does not display the default gateway. This implementation method can ensure that the user is not affected by the gateway setting prompt information when the user is not clear about the current default gateway and sets other default gateways to a higher priority. See. Figure 3 , is a flow chart of a gateway configuration method provided in an embodiment of the present application. Figure 3 As shown, the method mainly includes the following steps:

[0072] Step S301: Before modifying the gateway priority according to the first gateway setting information, first detect the current network interaction state.

[0073] Step S302: If the current network interaction state is in connection, a first prompt message is sent to the user when the gateway priority is modified according to the first gateway setting information.

[0074] Specifically, the user sets the priority of the default gateway in the third gateway display interface of the electronic device. After setting the priority of the default gateway, the first gateway setting information is obtained, and the default gateway priority is modified (including the first setting and the change of the original setting) according to the first gateway setting information. The gateway setting step implements the priority setting of the default gateway, wherein the first gateway setting information is the relevant information representing the default gateway option set by the user.

[0075] In a possible implementation, the type of the first gateway setting information is at least one of wired gateway information or wireless gateway information, and the first gateway setting information at least includes a gateway address, where the gateway address is an Internet Protocol address, and can be exemplarily an IP address of the gateway.

[0076] In addition, in another possible implementation, the first gateway setting information includes at least one of a destination and a subnet mask in addition to the gateway address. The included gateway address information, wherein at least one of a destination and a subnet mask is included, means that the first gateway setting information is a distinguishing identification information, which is used to provide an instruction for modifying the default gateway priority, and the default gateway setting of the specified priority is completed by identifying this identification information.

[0077] Step S303: The first prompt message is displayed on the second gateway display interface. The second gateway display interface also provides associated options to prompt the user whether to choose to continue modifying the default gateway priority.

[0078] Step S304: If the default gateway priority is not to be modified, the modification is stopped;

[0079] If you choose to continue to modify the default gateway priority, generate first gateway display information and display it on the first gateway display interface. The first gateway display information is derived from the identification part of the first gateway setting information.

[0080] Specifically, the identification part of the first gateway information refers to the gateway address, destination or sub-mask information in the aforementioned embodiment, which is used to distinguish the first gateway information from the non-default gateway information. The identification part is used to provide the user with the first gateway display information, which shows which current priority default gateway is.

[0081] In a possible implementation, illustratively, when the printer is connected to network 1 and network 2 at the same time, the printer obtains information such as IP address, subnet mask, gateway, DNS server address, etc. through the DHCP servers in network 1 and network 2 respectively. Whether there is a network connected to the Internet in network 1 and network 2 is detected by pinging the Internet server through the network interfaces of network 1 and network 2 respectively, and the detection results are saved. The user sets the priority of the default gateway through the third gateway display interface. When the user clicks Save, the system determines whether the default gateway setting selected by the user is consistent with the network interface that can currently connect to the Internet. If it is inconsistent (for example: if network 1 can access the Internet, but the user wants to select the gateway of network 2 as the default gateway), the first prompt message is displayed to the user (for example: the second gateway display interface displays "Modifying the default gateway will affect Internet access, do you want to continue?"), and the user needs to confirm whether to continue. If the user selects "Yes", the modified default gateway option value is saved in the setting management module, and the gateway setting module modifies the system gateway priority according to the default gateway option value. Otherwise, the system does not execute the save command.

[0082] In the above embodiment, the first gateway display interface, the second gateway display interface and the third gateway display interface are all UI interfaces (short for User Interface).

[0083] DHCP: Dynamic Host Configuration Protocol DHCP (Dynamic Host Configuration Protocol) is a standard protocol defined by RFC 1541 (replaced by RFC 2131), which allows a server to dynamically assign IP addresses and configuration information to clients.

[0084] In the method of the embodiment of the present application, when there are multiple default gateways for an electronic device but it is impossible to choose which default gateway to use to connect to the network to be connected, relevant information of the default gateway option set by the user is obtained as the first gateway setting information, the priority of the default gateway is modified, and the priority of the default gateway is set. A priority default gateway is selected for the operating system to establish a network connection with the network to be connected through the gateway server, so that the electronic device can still establish a network connection when it has multiple default gateways.

[0085] Corresponding to the above embodiments, the present application also provides an operating system.

[0086] See also Figure 4 , is a schematic diagram of an operating system provided in an embodiment of the present application. Figure 4 The operating system is based on a management module, and the management module includes:

[0087] A setting management module 401, used to obtain the first gateway setting information;

[0088] The gateway setting module 402 modifies the gateway priority of the operating system according to the first gateway setting information.

[0089] See also Figure 5 , is a schematic diagram of an operating system provided in an embodiment of the present application. Figure 5 The operating system shown in the figure, the management module includes:

[0090] A setting management module 501, used to obtain the first gateway setting information;

[0091] The gateway setting module 502 modifies the gateway priority of the operating system according to the first gateway setting information.

[0092] The network detection module 503 is used to detect the current network interaction state. If the current network interaction state is in connection, the result is output to the device management module, and the device management module sends a first prompt message to the user;

[0093] The interaction module 504 provides the user with the first gateway display interface of the gateway priority modified based on the first gateway setting information, and / or displays the first prompt message sent by the device management module to the user.

[0094] These modules communicate through one or more buses. Those skilled in the art will understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present application. It can be a bus structure or a star structure, and can also include more or fewer modules than shown in the figure, or combine certain modules, or arrange modules in different ways. Such settings are conventional settings for those skilled in the art and will not be repeated here.

[0095] The operating system of the above embodiment may be a Linux system (the route command may be used to modify the metric value of the default gateway, such as route change 0.0.0.0mask 0.0.0.0 192.168.87.1metric 201). A Windows system (the default gateway may be modified through the Network and Sharing Center of the control panel, and a gateway with a high priority may be selected as the default gateway).

[0096] Corresponding to the above embodiments, the present application also provides an electronic device.

[0097] See also Figure 6 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 600 may include: a processor 601, a memory 602, a communication unit 603 and a computer program. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present application. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0098] The processor 601 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 602, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 401 can only include a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.

[0099] The memory 602 is used to store the execution instructions of the processor 601. The memory 602 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0100] When the execution instructions in the memory 602 are executed by the processor 601, the electronic device 600 can execute Figure 1 Some or all of the steps in the illustrated embodiments.

[0101] The communication unit 603 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0102] The electronic devices in the embodiments of the present application refer to, but are not limited to, computers, mobile phones, tablets, printers, fax machines, and multifunction machines that integrate printing, copying, faxing, scanning and other functions, etc., and their function is to connect to the corresponding network through the default gateway and then establish a communication connection with the external network.

[0103] In a specific implementation, the embodiment of the present application further provides a computer-readable storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the simulation scene generation method provided in the embodiment of the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0104] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0105] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0106] 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.

[0107] In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.

[0108] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. A gateway configuration method, characterized in that: Based on the network configuration of the operating system, the method comprises: Acquire first gateway setting information, and modify the default gateway priority according to the first gateway setting information, where the first gateway setting information is related information representing a default gateway option set by a user; Generate first gateway display information, and display the first gateway display information on a first gateway display interface, wherein the first gateway display information is derived from an identification portion of the first gateway setting information; The identification part of the first gateway information is used to distinguish the first gateway information from information of a non-default gateway.

2. The method according to claim 1, characterized in that The type of the first gateway setting information is at least one of wired gateway information and wireless gateway information, and the first gateway setting information at least includes a gateway address.

3. The method according to claim 1, characterized in that After the first gateway setting information is obtained, other default gateways except the default gateway represented by the first gateway setting information are deleted.

4. The method according to claim 1, characterized in that: Before modifying the gateway priority according to the first gateway setting information, the current network interaction state is first detected. If the current network interaction state is in connection, when modifying the gateway priority according to the first gateway setting information, a first prompt message is sent to the user. The first prompt message is used to prompt the user of the current network interaction state.

5. The method according to claim 1, characterized in that The first prompt message is displayed on the second gateway display interface. The second gateway display interface also has associated options, which are used to prompt the user whether to choose to continue modifying the gateway priority. If so, the current network interaction is cut off and the gateway priority is modified according to the first gateway setting information.

6. The method according to claim 1, characterized in that The first gateway setting information is obtained from a third gateway display interface, and the third gateway display interface is used to display a default gateway priority setting option.

7. An operating system, based on a management module, characterized in that: The management module comprises: A setting management module, used to obtain the first gateway setting information; A gateway setting module modifies the gateway priority of the operating system according to the first gateway setting information.

8. The operating system according to claim 8, characterized in that: The management module also includes: The network detection module is used to detect the current network interaction state. If the current network interaction state is in connection, the result is output to the device management module, and the device management module sends a first prompt message to the user. an interactive module, providing the user with the first gateway display interface of the gateway priority modified based on the first gateway setting information, And / or, displaying the first prompt message sent by the device management module to the user.

9. An electronic device, characterized in that: include: processor; Memory; Communication unit; and a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 6.