Search

CN-116647536-B - Method, device, equipment and storage medium for dial-up networking

CN116647536BCN 116647536 BCN116647536 BCN 116647536BCN-116647536-B

Abstract

The embodiment of the application provides a dial-up networking method, device, equipment and storage medium. The method comprises the steps of receiving an activation instruction of a first dialing, configuring an Internet Protocol (IP) address of a target network card to activate the first dialing according to the activation instruction of the first dialing, receiving an activation instruction of a second dialing, acquiring an IP address according to the activation instruction of the second dialing, and activating the second dialing according to the IP address to establish communication connection with network equipment. When the embodiment of the application is adopted, when the internet surfing is realized by carrying out internal and external dialing, the same path of IP address can be used for activating the external dialing and the internal dialing, so that the problem of slow response of the internet surfing caused by the fact that network equipment needs to be sequentially allocated with two times of IP addresses and a wireless communication module needs to be sequentially allocated with two times of network cards and other long-time operation in the prior art is solved.

Inventors

  • ZHANG MIAO

Assignees

  • 西安广和通无线通信有限公司

Dates

Publication Date
20260508
Application Date
20230616

Claims (8)

  1. 1. A dial-up networking method, the method comprising: Receiving an activation instruction of a first dialing; configuring an Internet Protocol (IP) address of a target network card to activate the first dialing according to an activation instruction of the first dialing, wherein the first dialing is used for establishing communication connection with network equipment; receiving an activation instruction of a second dialing, and acquiring the IP address according to the activation instruction of the second dialing, wherein the first dialing and the second dialing are in different dialing modes, when the first dialing is external dialing, the second dialing is internal dialing, and the target network card comprises an internal network card and an external network card; activating the second dial to establish a communication connection with the network device according to the IP address, comprising: When the first dialing is internal dialing, the second dialing is external dialing, and the target network card is an internal network card, the external network card is configured according to the IP address to establish communication connection with an upper computer, wherein the external network card is used for transmitting data service with the upper computer; And bridging the internal network card and the external network card through a network bridge to activate the external dialing so as to establish communication connection with the network equipment, wherein the network bridge is established according to an activation instruction of the external dialing and is communicated with the upper computer.
  2. 2. The method of claim 1, wherein configuring the IP address of the target network card to activate the first dial according to the activation instruction of the first dial comprises: When the first dialing is external dialing, the second dialing is internal dialing, and when the target network card comprises an internal network card and an external network card, a network bridge for communicating with an upper computer is established according to an activation instruction of the external dialing; Configuring the built-in network card according to the IP address to establish communication connection with the network equipment; Configuring the external network card according to the IP address to establish communication connection with the upper computer; and bridging the internal network card and the external network card through the network bridge to activate the external dialing.
  3. 3. The method of claim 2, wherein activating the second dial to establish a communication connection with the network device according to the IP address comprises: activating the internal dialing according to the IP address and the internal network card configured when the external dialing is activated so as to establish communication connection with the network equipment.
  4. 4. A method according to claim 2 or 3, wherein after said configuring the internet protocol address, IP, address of the destination network card according to the activation instruction of the first dial to activate the first dial, before said activating the second dial according to the IP address to establish the communication connection with the network device, further comprises: deactivating the external dial by removing a bridge in communication with the host computer.
  5. 5. The method of claim 4, wherein after activating the second dial to establish a communication connection with the network device according to the IP address, further comprising: Deactivating the internal dial-up to disconnect communication with the network device by removing the internal network card.
  6. 6. A dial-up networking device, the device comprising: The communication unit is used for receiving an activation instruction of the first dialing; the processing unit is used for configuring an Internet Protocol (IP) address of the target network card according to the activation instruction of the first dialing to activate the first dialing, wherein the first dialing is used for establishing communication connection with the network equipment; The communication unit is further configured to receive an activation instruction of a second dialing, and obtain the IP address according to the activation instruction of the second dialing, where the first dialing and the second dialing are different dialing modes, when the first dialing is external dialing, the second dialing is internal dialing, and the target network card includes an internal network card and an external network card; The processing unit is further configured to activate the second dialing according to the IP address to establish a communication connection with the network device; the processing unit is specifically configured to configure an external network card according to the IP address to establish communication connection with an upper computer when the first dialing is an internal dialing, the second dialing is an external dialing, and the target network card is an internal network card, where the external network card is used for transmitting data service with the upper computer; And bridging the internal network card and the external network card through a network bridge to activate the external dialing so as to establish communication connection with the network equipment, wherein the network bridge is established according to an activation instruction of the external dialing and is communicated with the upper computer.
  7. 7. A computing device comprising a processor and a memory, wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the method of any of claims 1-5.
  8. 8. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer or processor, implements the method according to any of claims 1 to 5.

Description

Method, device, equipment and storage medium for dial-up networking Technical Field The present application relates to the field of wireless communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for dial-up networking. Background One step critical in the application field of LTE wireless communication technology is dialing, which may include two different forms of dialing. After one of the dialing modes is completed, the wireless communication module can be used for data service. After the dialing mode is completed, the upper computer connected with the wireless communication module can be used for data service. For two different types of dialing scenarios, one Internet protocol address IP (Internet Protocol) is used when one dialing mode is performed, and another IP address is used when the other dialing mode is performed. The process of configuring the IP address may generate the operation problems of frequently pulling up the network card and completing the related configuration during the dialing activation, and frequently removing the network card and the related configuration during the dialing deactivation. Therefore, when the user frequently uses two kinds of dialing, a plurality of operations are long and the execution efficiency of the dialing is reduced. Disclosure of Invention The embodiment of the application provides a method, a device, equipment and a storage medium for dial-up networking, which solve the problems that in the related art, when internal and external dial-up is used, IP addresses are frequently requested to network equipment, network cards are frequently configured and other operations are frequently configured, so that the dial-up execution efficiency is reduced. In a first aspect, an embodiment of the present application provides a method for dial-up networking, where the method includes: Receiving an activation instruction of a first dialing; configuring an Internet Protocol (IP) address of a target network card to activate the first dialing according to an activation instruction of the first dialing, wherein the first dialing is used for establishing communication connection with network equipment; Receiving an activation instruction of a second dialing, and acquiring the IP address according to the activation instruction of the second dialing, wherein the first dialing and the second dialing are in different dialing modes; Activating the second dial-up to establish a communication connection with the network device according to the IP address. In the application, the same IP address is used for activating the external dialing or the internal dialing, so that compared with the prior art that the network equipment needs to reassign the IP address to switch the dialing types, the application saves the time for acquiring the IP address, omits the operation of reconfiguring the network card, and improves the response speed of the internal and external dialing switching. In an alternative of the first aspect, when the first dialing is external dialing, the second dialing is internal dialing, or When the first dialing is internal dialing, the second dialing is external dialing. It can be seen that the embodiment of the application provides a method for executing the internal dialing and the external dialing simultaneously or realizing the switching of the internal dialing and the external dialing. In still another optional aspect of the first aspect, when the first dialing is external dialing, the second dialing is internal dialing, the target network card includes an internal network card and an external network card, and the configuring the IP address of the target network card according to the activation instruction of the first dialing to activate the first dialing includes: Establishing a network bridge for communicating with an upper computer according to the external dialing activation instruction; Configuring the built-in network card according to the IP address to establish communication connection with the network equipment, wherein the built-in network card is used for transmitting data service with the network equipment; the external network card is configured according to the IP address to establish communication connection with the upper computer, wherein the external network card is used for transmitting data service with the upper computer; and bridging the internal network card and the external network card through the network bridge to activate the external dialing. In the method, the wireless communication module comprises the internal network card and the external network card of the entity, and can simultaneously meet the internal dialing service and the external dialing service. The network bridge is constructed and the forwarding function of the network bridge is utilized, so that a local area network between the upper computer and the wireless communication module and a wide area network between the wirel