CN114584608A - Network switching method, device, equipment and storage medium - Google Patents

Network switching method, device, equipment and storage medium Download PDF

Info

Publication number
CN114584608A
CN114584608A CN202210121913.3A CN202210121913A CN114584608A CN 114584608 A CN114584608 A CN 114584608A CN 202210121913 A CN202210121913 A CN 202210121913A CN 114584608 A CN114584608 A CN 114584608A
Authority
CN
China
Prior art keywords
network
network card
switching
address
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210121913.3A
Other languages
Chinese (zh)
Inventor
林皓
李聪
王海波
杨泳
毕永东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beixinyuan System Integration Co ltd
Original Assignee
Beixinyuan System Integration Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beixinyuan System Integration Co ltd filed Critical Beixinyuan System Integration Co ltd
Priority to CN202210121913.3A priority Critical patent/CN114584608A/en
Publication of CN114584608A publication Critical patent/CN114584608A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The disclosure provides a network switching method, a device, equipment and a storage medium, which are applied to a terminal configured with a plurality of network cards, and firstly, when a network switching request is received, a network card address of a target switching network card corresponding to the network switching request is obtained; inquiring whether a preset configuration file has a network segment address corresponding to the network card address; the preset configuration file comprises a corresponding relation between a network segment address and a server address; if the network segment address corresponding to the network card address exists in the preset configuration file, acquiring a server address corresponding to the network segment address from the preset configuration file; and switching the current network card into a target switching network card, and establishing connection with a target server corresponding to the server address through the target switching network card. Therefore, the network switching method provided by the embodiment of the disclosure can realize switching of the terminal among a plurality of network areas.

Description

Network switching method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a network switching method, apparatus, device, and storage medium.
Background
At present, enterprises work in different network areas, each network area has different intranet environments, a server a corresponding to a network card a is deployed in the network area a, a server B corresponding to a network card B is deployed in the network area B, and the enterprise needs to quickly switch the network area where the office terminal is located and establish connection with the server deployed in the switched network area.
However, in the prior art, the terminal can only be connected with the server in one network area independently, and can not be switched to another network area. Therefore, how to implement the handover of the terminal between multiple network areas is a technical problem that needs to be solved at present.
Disclosure of Invention
In order to solve the foregoing technical problem, an embodiment of the present disclosure provides a network handover method, which can implement handover of a terminal between multiple network areas.
In a first aspect, the present disclosure provides a network switching method, which is applied to a terminal configured with multiple network cards, and the method includes:
when a network switching request is received, acquiring a network card address of a target switching network card corresponding to the network switching request;
inquiring whether a network segment address corresponding to the network card address of the target switching network card exists in a preset configuration file; the preset configuration file comprises a corresponding relation between a network segment address and a server address;
if the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file, acquiring a server address corresponding to the network segment address from the preset configuration file;
and switching the current network card into a target switching network card, and establishing connection with a target server corresponding to the server address through the target switching network card.
In an optional implementation manner, after the connection is established between the target switching network card and the target server corresponding to the server address, the method further includes:
data and update policies are synchronized from the target server.
In an optional implementation manner, after switching the current network card to the target switching network card, the method further includes:
the current network card is set to the disabled mode.
In an optional implementation manner, when a network switching request is received, acquiring a network card address of a target switching network card corresponding to the network switching request, includes:
responding to the trigger operation aiming at the target switching control in at least one switching control, and determining a target switching network card corresponding to the target switching control;
and acquiring the network card address of the target switching network card.
In an optional embodiment, the method further comprises:
if the network segment address corresponding to the network card address of the target switching network card does not exist in the preset configuration file, continuing to perform network connection based on the current network card, and displaying switching prompt information; wherein, the switching prompt message is used for prompting the network switching failure.
In an optional implementation manner, querying whether a preset configuration file has a network segment address corresponding to a network card address of a target switching network card includes:
and inquiring whether a preset configuration file has a network segment address containing a network card address of the target switching network card.
In a second aspect, the present disclosure further provides a network switching apparatus, including:
the acquisition module is used for acquiring a network card address of a target switching network card corresponding to a network switching request when the network switching request is received;
the query module is used for querying whether a network segment address corresponding to the network card address of the target switching network card exists in a preset configuration file; the preset configuration file comprises a corresponding relation between a network segment address and a server address;
the determining module is used for acquiring a server address corresponding to the network segment address from the preset configuration file when the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file;
and the switching module is used for switching the current network card into a target switching network card and establishing connection with a target server corresponding to the server address through the target switching network card.
In a third aspect, the present disclosure provides a computer-readable storage medium having stored therein instructions that, when executed on a terminal device, cause the terminal device to implement the method described above.
In a fourth aspect, the present disclosure provides an apparatus comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method described above when executing the computer program.
In a fifth aspect, the present disclosure provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the method described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least the following advantages:
the disclosed embodiment provides a network switching method, which is applied to a terminal configured with a plurality of network cards, and comprises the steps of firstly, when a network switching request is received, obtaining a network card address of a target switching network card corresponding to the network switching request; inquiring whether a preset configuration file has a network segment address corresponding to the network card address of the target switching network card; the preset configuration file comprises a corresponding relation between a network segment address and a server address; if the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file, acquiring a server address corresponding to the network segment address from the preset configuration file; and then, switching the current network card into a target switching network card, and establishing connection with a target server corresponding to the server address through the target switching network card. Therefore, the network switching method provided by the embodiment of the disclosure can realize switching of the terminal among a plurality of network areas.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a network switching method according to an embodiment of the present disclosure;
fig. 2 is a schematic process diagram of a network handover method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a network switching device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a network switching device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
At present, for a scenario in which a security product deployed on a terminal is switched among a plurality of servers, the security product deployed in the terminal in one network area can only be deployed on a fixed server, where the security product includes a security management product, a gateway product, and the like. In the network area a, only the security management product and the gateway product corresponding to the server a can be used, and in the network area B, only the security management product and the gateway product corresponding to the server B can be used. That is, the terminal can only connect with the server in one network area alone and cannot switch to another network area.
In the prior art, if a network area a where a terminal is located is switched to a network area B, security products under the network area B can only be reinstalled on the terminal, so that the terminal is switched to network access control. Such a situation is not advantageous for managing the terminal and at the same time is inconvenient for the user to use the security product.
Therefore, how to implement the handover of the terminal between multiple network areas is a technical problem that needs to be solved at present.
Therefore, the disclosed embodiment provides a network switching method, which is applied to a terminal configured with a plurality of network cards, and comprises the steps of firstly, when a network switching request is received, acquiring a network card address of a target switching network card corresponding to the network switching request; inquiring whether a preset configuration file has a network segment address corresponding to the network card address of the target switching network card; the preset configuration file comprises a corresponding relation between a network segment address and a server address; if the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file, acquiring a server address corresponding to the network segment address from the preset configuration file; and then, switching the current network card into a target switching network card, and establishing connection with a target server corresponding to the server address through the target switching network card. Therefore, the network switching method provided by the embodiment of the disclosure can realize switching of the terminal among a plurality of network areas.
Based on this, an embodiment of the present disclosure provides a network switching method, which is applied to a terminal configured with multiple network cards, and referring to fig. 1, is a flowchart of the network switching method provided in the embodiment of the present disclosure, and the method includes:
s101, when a network switching request is received, a network card address of a target switching network card corresponding to the network switching request is obtained.
In the embodiment of the disclosure, the terminal is configured with a plurality of network cards, and can establish communication connection with the server in the network area corresponding to the network card through the network card. For example, it may be assumed that a network card a and a network card B are configured in the terminal, where the network card a may access the network area a to implement data transmission with the server a; the network card B can also be accessed into the network area B to realize data transmission with the server B.
In practical applications, different network cards have their corresponding network card addresses (which may be IP addresses), and therefore, when a terminal configures a network card, the terminal sets the IP address of the network card, and so on. Assuming that a network card A and a network card B are configured on the terminal, the IP address of the network card A can be set to be 192.168.1, and the terminal accesses the network area A through the network card A; the IP address of the network card B can be set to 192.168.2, and the terminal accesses the network area B through the network card B.
In the embodiments of the present disclosure, the network handover request is used to handover the current network area to the target network area. And when the terminal receives the network switching request, the network card address of the target switching network card corresponding to the target network area in the network switching request is obtained. For example, when the terminal receives a network switching request for switching from the network area a to the network area B, the terminal acquires a network card address of the network area B corresponding to the network switching request.
In an optional implementation manner, the terminal may determine a target switching network card corresponding to the target switching control by responding to a triggering operation for a target switching control in the at least one switching control, and further, obtain a network card address of the target switching network card.
In practical application, a plurality of switching controls are deployed in a terminal, wherein the switching controls are used for realizing switching of a plurality of network cards in the terminal. When the terminal receives the network switching request, the terminal can respond to the triggering operation of switching the current network card to the target switching control of the target switching network card, and then obtain the network card address of the target switching network card.
In an optional implementation manner, a function of switching multiple network areas can be issued to the terminal through the server system, and multiple switching controls corresponding to the network area switching are configured in the terminal. In practical application, the switching control may be a plurality of icons corresponding to a plurality of network cards configured on the terminal, and when one of the icons is clicked, the network card corresponding to the icon may be switched. For example, the icon corresponding to the network card a is a button for switching to the network area a, and the icon corresponding to the network card B is a button for switching to the network area B. And when the terminal receives the triggering operation aiming at the icon corresponding to the network card A, acquiring the network card address of the network card A. At this time, the icon corresponding to the network card a is the target switching control.
In another optional implementation, only one switching control is deployed in the terminal, and switching of multiple network cards in the terminal can be realized through multiple click operations on the switching control. For example, a network card a, a network card B and a network card C are configured on the terminal, assuming that the network card currently used by the terminal is the network card a, if the network area a where the terminal is located is switched to the network area B or the network area C, and the user clicks the switching control 1 time, the terminal can be switched from the current network card a to the target switching network card B; and the user clicks the switching control 2 times, so that the terminal can be switched from the current network card A to the target switching network card C.
S102, inquiring whether a preset configuration file has a network segment address corresponding to the network card address of the target switching network card.
The preset configuration file comprises the corresponding relation between the network segment address and the server address.
In practical application, when a security product is deployed in a terminal, a preset configuration file is set in the terminal, wherein the preset configuration file comprises network segment addresses corresponding to a plurality of network areas, server addresses and corresponding relations between the network segment addresses and the server addresses.
In the embodiment of the present disclosure, when the terminal obtains the network card address of the target switching network card corresponding to the network switching request, it may be queried whether a network segment address including the network card address of the target switching network card exists in the preset configuration file. Assuming that the network card B is a target switching network card when the terminal receives a trigger operation for a switching icon corresponding to the network card B, after clicking the icon corresponding to the network card B, whether a network segment address including the network card address of the network card B exists in the preset configuration file can be queried to determine whether a network segment address corresponding to the network card address of the network card B exists in the preset configuration file.
S103, if the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file, the server address corresponding to the network segment address is obtained from the preset configuration file.
In an optional implementation manner, whether a network segment address corresponding to a network card address of a target switching network card exists is inquired from a preset configuration file; and if the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file, directly acquiring the server address corresponding to the network segment address based on the corresponding relation between the network segment address corresponding to the network card address of the target switching network card in the preset configuration file and the server address.
Assuming that a network area a where a terminal is located is switched to a network area B, at this time, the network card B is a target switching network card, an IP address corresponding to the network card B in the network area B needs to be obtained first, and further, it is determined whether a network segment address corresponding to the IP address of the network card B exists in a preset configuration file, assuming that the IP address of the network card B is 192.168.1.2, if the network segment address corresponding to the IP address of the network card is within 192.168.1.1-255, the IP address of the network card B exists in the network segment address. And according to the corresponding relation between the network segment address and the server address in the pre-configuration file, the server address corresponding to the network segment can be obtained.
In practical application, whether a network segment address corresponding to the network card address of the target switching network card exists or not can be inquired from a preset configuration file; if the network segment address has the network card address of the target switching network card, further confirming the server address corresponding to the network card segment address. The network segment addresses in the preset configuration file need to be matched, when the network segment addresses are successfully matched, the server addresses are continuously matched, and when the server addresses are successfully matched, the server addresses are obtained.
And S104, switching the current network card to a target switching network card, and establishing connection with a target server corresponding to the server address through the target switching network card.
Assuming that the network area A where the terminal is located is switched to the network area B, the network card A is the current network card, the network card B is the target switching network card, and after the server address corresponding to the network card B is obtained, the network card B and the target server B corresponding to the server address can be connected to realize that the terminal is switched from the network card A in the network area A to the network card B in the network area B.
In an optional implementation manner, after the terminal establishes a connection with a target server corresponding to the server address through the target switching network card, the data and the update policy are synchronized from the target server. And after the terminal is switched from the current server to the target server, the terminal synchronizes data in time and receives an updating strategy sent by the target server. Specifically, the terminal synchronizes data information related to the current network card to the target switching network card. After the terminal receives the updating strategy sent by the target server, the local strategy is updated according to the updating strategy message, and synchronization with the strategy on the server is realized, so that the operation resource of the target server is saved, and the experience of a user on network area switching is promoted.
In another optional implementation, if it is determined that the network segment address corresponding to the network card address of the target switching network card does not exist in the preset configuration file, continuing to perform network connection based on the current network card, and displaying a switching prompt message; wherein, the switching prompt message is used for prompting the network switching failure.
Assuming that when the terminal receives a network switching request for switching from the network area a to the network area B, at this time, the network card B is a target switching network card, acquires an IP address corresponding to the network card B, and can query whether a preset configuration file has a corresponding network segment address including the IP address of the network card B, if the preset configuration file does not have the corresponding network segment address corresponding to the IP address of the network card B, a prompt message indicating that switching from the network area a to the network area B fails is displayed in the terminal, that is, the terminal cannot realize switching from the network area a to the network area B, and the terminal continues to perform network connection, data transmission and the like of the network area a based on the current network card a.
The disclosed embodiment provides a network switching method, which is applied to a terminal configured with a plurality of network cards, and comprises the steps of firstly, when a network switching request is received, obtaining a network card address of a target switching network card corresponding to the network switching request; inquiring whether a preset configuration file has a network segment address corresponding to the network card address of the target switching network card; the preset configuration file comprises a corresponding relation between a network segment address and a server address; if the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file, acquiring a server address corresponding to the network segment address from the preset configuration file; and then, switching the current network card into a target switching network card, and establishing connection with a target server corresponding to the server address through the target switching network card. Therefore, the network switching method provided by the embodiment of the disclosure can realize switching of the terminal among a plurality of network areas.
In order to further understand the network handover method provided by the present disclosure, on the basis of the foregoing embodiments, another network handover method is also provided in the embodiments of the present disclosure, and with reference to fig. 2, a process schematic diagram of a network handover method provided in the embodiments of the present disclosure is shown.
The network switching method of the embodiment of the disclosure can be applied to security products uniformly deployed on a server platform. Among them, security products are classified into 6 main categories, such as endpoint security, network security, application security, data security, identity and access management, and security management. Generally, the security product is generally deployed by using a C/S architecture, and the security product deployed in the terminal can perform functions such as data interaction through communication between the network card and a server corresponding to the network card.
In the embodiment of the disclosure, it is assumed that only a security product under a network area a is installed in a terminal, the terminal is switched from the current network area a to a network area B, the network card B is a target switching network card, when the terminal receives a network switching request for switching from the network area a to the network area B, the terminal acquires a network card address of the network card B corresponding to the network switching request, and then, whether a network segment address corresponding to the network card address of the network card B exists in a preset configuration file is queried.
Assuming that the IP address of the network card B in the terminal is 192.168.1.2, if the network segment address corresponding to the network card IP address is within 192.168.1.1-255, the network segment address has the IP address of the network card B. The terminal can obtain the server address corresponding to the network segment according to the corresponding relation between the network segment address and the server address in the pre-configuration file. After the terminal obtains the server address corresponding to the network card B, the network card B can be connected with the target server B corresponding to the server address, so that the terminal is switched from the network card a in the network area a to the network card B in the network area B. That is to say, the terminal switches the network card a to the network card B, and accesses the network area B through the network card B to realize data transmission with the server B.
In an optional implementation manner, if a network segment address corresponding to the IP address of the network card B does not exist in the preset configuration file, the terminal does not need to switch to the network access environment, or keeps the network card a accessing the network area a, and performs data transmission with the server a through the network card a.
In the embodiment of the present disclosure, after the terminal switches the current network card to the target switching network card, the terminal further sets the current network card to the disabled mode. In practical application, the network card a in the terminal accesses the network area a, and after data transmission with the server a is realized, other network cards including the network card B are disabled. When the network card B in the terminal is accessed to the network area B and transmits data with the server B, other network cards except the network card A are kept in a use prohibition state, so that the network card A only needs to be forbidden on the terminal, and the network card A cannot be accessed to the network area B, so that data transmission between other programs and the network card A by using the network card A can be avoided, the management of safety products is enhanced, and the occurrence of secret leakage events is reduced.
The embodiment of the disclosure provides a network switching method, which is applied to a terminal configured with a plurality of network cards, the terminal is switched from a current network area A to a current network area B, a safety product under the network area B does not need to be reinstalled, and whether a network segment address corresponding to an IP address of the network card B exists in network segment addresses in a pre-configuration file or not can be directly inquired. If the network segment address exists, the server address corresponding to the network segment can be obtained according to the corresponding relation between the network segment address and the server address in the pre-configuration file, and the terminal is connected with the server B through the network card B, so that the switching of the network area where the terminal is located is realized. Therefore, in the embodiment of the disclosure, the terminal is switched from the current network area a to the network area B, and the security product in the network area B does not need to be reinstalled, which is beneficial to deployment and management of the terminal and is convenient for the user to use the security product.
Based on the foregoing method embodiment, the present disclosure further provides a network switching device, and referring to fig. 3, a schematic structural diagram of the network switching device provided in the embodiment of the present disclosure is shown, where the device includes:
an obtaining module 301, configured to obtain a network card address of a target switching network card corresponding to a network switching request when the network switching request is received;
the query module 302 is configured to query whether a network segment address corresponding to a network card address of the target switching network card exists in a preset configuration file; the preset configuration file comprises a corresponding relation between a network segment address and a server address;
a determining module 303, configured to, when it is determined that a network segment address corresponding to a network card address of a target switching network card exists in a preset configuration file, obtain, from the preset configuration file, a server address corresponding to the network segment address;
and the switching module 304 is configured to switch the current network card to a target switching network card, and establish a connection with the target server corresponding to the server address through the target switching network card.
In an alternative embodiment, the apparatus further comprises:
an update module to synchronize data and update policies from a target server.
In an alternative embodiment, the apparatus further comprises:
and the disabling module is used for setting the current network card into a disabling mode.
In an alternative embodiment, the obtaining module 301 has a module for:
responding to the trigger operation aiming at the target switching control in at least one switching control, and determining a target switching network card corresponding to the target switching control; and acquiring the network card address of the target switching network card.
In an alternative embodiment, the apparatus further comprises:
the display module is used for continuing network connection based on the current network card and displaying switching prompt information when determining that the network segment address corresponding to the network card address of the target switching network card does not exist in the preset configuration file; wherein, the switching prompt message is used for prompting the network switching failure.
In an optional implementation manner, the query module 302 is specifically configured to:
and inquiring whether a preset configuration file has a network segment address containing a network card address of the target switching network card.
The network switching device provided by the embodiment of the disclosure includes that firstly, when a network switching request is received, a network card address of a target switching network card corresponding to the network switching request is obtained; inquiring whether a preset configuration file has a network segment address corresponding to the network card address of the target switching network card; the preset configuration file comprises a corresponding relation between a network segment address and a server address; if the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file, acquiring a server address corresponding to the network segment address from the preset configuration file; and switching the current network card into a target switching network card, and establishing connection with a target server corresponding to the server address through the target switching network card. Therefore, the network switching device provided by the embodiment of the disclosure can realize the switching of the device among a plurality of network areas.
In addition to the above method and apparatus, the present disclosure also provides a computer-readable storage medium, where instructions are stored, and when the instructions are executed on a terminal device, the terminal device is caused to implement the network handover method of the present disclosure.
The disclosed embodiments also provide a computer program product comprising a computer program/instructions that, when executed by a processor, implement the network switching method of the disclosed embodiments.
In addition, an embodiment of the present disclosure further provides a network switching device, as shown in fig. 4, where the network switching device may include:
a processor 401, a memory 402, an input device 403, and an output device 404. The number of the processors 401 in the network switching device may be one or more, and one processor is taken as an example in fig. 4. In some embodiments of the present disclosure, the processor 401, the memory 402, the input device 403, and the output device 404 may be connected by a bus or other means, wherein the connection by the bus is exemplified in fig. 4.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing of the network switching device by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The input device 403 may be used to receive input numeric or character information and generate signal inputs related to user settings and function control of the network switching device.
Specifically, in this embodiment, the processor 401 loads an executable file corresponding to a process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions of the network switching device.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A network switching method is applied to a terminal configured with a plurality of network cards, and comprises the following steps:
when a network switching request is received, acquiring a network card address of a target switching network card corresponding to the network switching request;
inquiring whether a network segment address corresponding to the network card address of the target switching network card exists in a preset configuration file; the preset configuration file comprises a corresponding relation between a network segment address and a server address;
if the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file, acquiring a server address corresponding to the network segment address from the preset configuration file;
and switching the current network card to the target switching network card, and establishing connection with a target server corresponding to the server address through the target switching network card.
2. The method according to claim 1, wherein after the connection is established with the target server corresponding to the server address through the target switching network card, the method further comprises:
synchronizing data and update policies from the target server.
3. The method of claim 1, wherein after switching the current network card to the target switching network card, further comprising:
and setting the current network card to be in a forbidden mode.
4. The method according to claim 1, wherein the obtaining a network card address of a target switching network card corresponding to the network switching request when the network switching request is received comprises:
responding to a trigger operation aiming at a target switching control in at least one switching control, and determining a target switching network card corresponding to the target switching control;
and acquiring the network card address of the target switching network card.
5. The method of claim 1, further comprising:
if the network segment address corresponding to the network card address of the target switching network card does not exist in the preset configuration file, continuing to perform network connection based on the current network card, and displaying switching prompt information; and the switching prompt information is used for prompting network switching failure.
6. The method of claim 1, wherein the querying whether a network segment address corresponding to the network card address of the target switching network card exists in a preset configuration file comprises:
and inquiring whether a preset configuration file has a network segment address containing the network card address of the target switching network card.
7. A network switching apparatus, the apparatus comprising:
the network switching system comprises an acquisition module, a switching module and a switching module, wherein the acquisition module is used for acquiring a network card address of a target switching network card corresponding to a network switching request when the network switching request is received;
the query module is used for querying whether a network segment address corresponding to the network card address of the target switching network card exists in a preset configuration file; the preset configuration file comprises a corresponding relation between a network segment address and a server address;
the determining module is used for acquiring a server address corresponding to the network segment address from the preset configuration file when the network segment address corresponding to the network card address of the target switching network card exists in the preset configuration file;
and the switching module is used for switching the current network card into the target switching network card and establishing connection with the target server corresponding to the server address through the target switching network card.
8. A computer-readable storage medium having stored therein instructions that, when run on a terminal device, cause the terminal device to implement the method of any one of claims 1-6.
9. A network switching device, comprising: memory, a processor, and a computer program stored on the memory and executable on the processor, when executing the computer program, implementing the method of any of claims 1-6.
10. A computer program product, characterized in that the computer program product comprises a computer program/instructions which, when executed by a processor, implements the method according to any of claims 1-6.
CN202210121913.3A 2022-02-09 2022-02-09 Network switching method, device, equipment and storage medium Pending CN114584608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210121913.3A CN114584608A (en) 2022-02-09 2022-02-09 Network switching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210121913.3A CN114584608A (en) 2022-02-09 2022-02-09 Network switching method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114584608A true CN114584608A (en) 2022-06-03

Family

ID=81773334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210121913.3A Pending CN114584608A (en) 2022-02-09 2022-02-09 Network switching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114584608A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115226256A (en) * 2022-07-12 2022-10-21 深圳壹账通创配科技有限公司 Data switching method and device, electronic equipment and storage medium
CN115695191A (en) * 2022-08-29 2023-02-03 中国工商银行股份有限公司 Switching method and device of terminal network and electronic equipment
CN116708283A (en) * 2023-08-08 2023-09-05 珠海派诺科技股份有限公司 Automatic network switching method and switching system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052384A1 (en) * 2004-12-07 2008-02-28 Brett Marl Network administration tool
JP2011118663A (en) * 2009-12-03 2011-06-16 Hitachi Ltd Nic selection method and program
CN103987098A (en) * 2014-04-28 2014-08-13 广州杰赛科技股份有限公司 Method and system for switching between IPV4 network and IPV6 network
US20160359982A1 (en) * 2015-06-08 2016-12-08 Quanta Computer Inc. Server link state detection and notification
US20180176152A1 (en) * 2016-12-19 2018-06-21 Futurewei Technologies, Inc. Programmable and low latency switch fabric for scale-out router
CN113014681A (en) * 2019-12-20 2021-06-22 北京金山云科技有限公司 Network card binding method and device of multi-network card server, electronic equipment and storage medium
WO2022001554A1 (en) * 2020-06-28 2022-01-06 深圳市广和通无线股份有限公司 Configuration file switching method and apparatus, computer device, and storage medium
CN113992578A (en) * 2021-09-09 2022-01-28 新华三大数据技术有限公司 Method, device and equipment for switching servers by cloud desktop terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052384A1 (en) * 2004-12-07 2008-02-28 Brett Marl Network administration tool
JP2011118663A (en) * 2009-12-03 2011-06-16 Hitachi Ltd Nic selection method and program
CN103987098A (en) * 2014-04-28 2014-08-13 广州杰赛科技股份有限公司 Method and system for switching between IPV4 network and IPV6 network
US20160359982A1 (en) * 2015-06-08 2016-12-08 Quanta Computer Inc. Server link state detection and notification
US20180176152A1 (en) * 2016-12-19 2018-06-21 Futurewei Technologies, Inc. Programmable and low latency switch fabric for scale-out router
CN113014681A (en) * 2019-12-20 2021-06-22 北京金山云科技有限公司 Network card binding method and device of multi-network card server, electronic equipment and storage medium
WO2022001554A1 (en) * 2020-06-28 2022-01-06 深圳市广和通无线股份有限公司 Configuration file switching method and apparatus, computer device, and storage medium
CN113992578A (en) * 2021-09-09 2022-01-28 新华三大数据技术有限公司 Method, device and equipment for switching servers by cloud desktop terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周翔等: "负载均衡在气象网站的应用研究", 计算机与网络 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115226256A (en) * 2022-07-12 2022-10-21 深圳壹账通创配科技有限公司 Data switching method and device, electronic equipment and storage medium
CN115695191A (en) * 2022-08-29 2023-02-03 中国工商银行股份有限公司 Switching method and device of terminal network and electronic equipment
CN116708283A (en) * 2023-08-08 2023-09-05 珠海派诺科技股份有限公司 Automatic network switching method and switching system
CN116708283B (en) * 2023-08-08 2023-10-31 珠海派诺科技股份有限公司 Automatic network switching method and switching system

Similar Documents

Publication Publication Date Title
CN114584608A (en) Network switching method, device, equipment and storage medium
US7454482B2 (en) Print queue manager
EP2771803B1 (en) File fetch from a remote client device
EP2696559B1 (en) Method and Device for Resource Sharing Between Devices
EP3541098B1 (en) Processing method for communication identifier binding and terminal
CN110287709A (en) User's operation authority control method, device, equipment and medium
CN109842694B (en) Method for synchronizing MAC addresses, network equipment and computer readable storage medium
CN106851758B (en) Communication network switching method and terminal equipment
CN113407383B (en) Main and standby system switching method and device, server and main and standby system
CN109768980B (en) Server access method, device, mobile terminal and computer readable storage medium
CN112968929B (en) Server management method and system
CN103312489A (en) Method and device for synchronizing terminal and server
CN111711556A (en) Routing method, device, system, equipment and storage medium of virtual private network
CN108683532B (en) Main and standby synchronization method and device
US8291406B2 (en) Data imaging system and methods
CN114499935B (en) Cloud platform access method, device, equipment and storage medium
CN107147651B (en) Gray level publishing system and publishing method thereof
CN113596795B (en) Device binding method, device and computer readable storage medium
CN114840263A (en) Network card management method, device, equipment and storage medium
Cisco Getting Started
Cisco Getting Started
Cisco Getting Started
Cisco Getting Started
CN113271326A (en) Network protocol address scheduling method and device and electronic equipment
US10985933B1 (en) Distributed push notifications for devices in a subnet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination