Search

CN-116566830-B - Network configuration method, device, system, edge equipment and storage medium

CN116566830BCN 116566830 BCN116566830 BCN 116566830BCN-116566830-B

Abstract

The application discloses a network configuration method, a device, a system, edge equipment and a storage medium, which relate to the field of edge calculation, wherein the method is applied to the edge equipment and comprises the steps of creating a plurality of groups of corresponding virtual network configurations according to a plurality of dialing lines; the virtual network configuration comprises a virtual network card, a virtual network bridge and a policy routing table, wherein the virtual machine is connected with the virtual network bridge of the same group through the virtual network card in each group of virtual network configuration, so that the virtual machine is connected with each dial-up line through each group of virtual network configuration and simultaneously uses a plurality of dial-up lines to connect with a network, a plurality of groups of corresponding virtual network configurations which comprise the virtual network card, the virtual network bridge and the policy routing table can be created for the plurality of dial-up lines, and the virtual machine can be connected with the virtual network bridge of the same group through the virtual network card of each group, so that the virtual machine is connected with each dial-up line through each group of virtual network configuration and simultaneously uses the plurality of dial-up lines to connect with the network, thereby fully utilizing all dial-up lines on the edge equipment.

Inventors

  • XIONG DIBIN
  • ZUO YIQIANG
  • QU XIN

Assignees

  • 深圳云网雾联科技有限公司

Dates

Publication Date
20260508
Application Date
20230523

Claims (11)

  1. 1. A network configuration method, applied to an edge device, the method comprising: obtaining a plurality of dialing lines; The method comprises the steps of establishing a plurality of groups of corresponding virtual network configurations according to a plurality of dialing lines, wherein the virtual network configurations comprise a virtual network card, a virtual network bridge and a strategy routing table, and the strategy routing table records the mapping relation between the virtual network card corresponding to the dialing lines and the default gateway of the dialing lines; Connecting a virtual machine with a virtual network bridge of the same group through a virtual network card in each group of virtual network configuration, so that the virtual machine is connected with each dial-up line through each group of virtual network configuration, and simultaneously connecting networks through a plurality of dial-up lines; The obtaining a plurality of dialing lines includes: transmitting a plurality of sets of dialing configuration information in the configuration information issued by the control equipment to a dialing management program so that the dialing management program dials according to the plurality of sets of dialing configuration information; and determining the plurality of dialing lines according to the plurality of sets of dialing configuration information.
  2. 2. The network configuration method of claim 1, further comprising, prior to creating the corresponding plurality of sets of virtual network configurations from the plurality of dial-up lines: And when the configuration information issued by the control equipment contains the edge virtual machine mark, acquiring the dialing lines.
  3. 3. The network configuration method according to claim 2, wherein the acquiring the plurality of dial-up lines includes: And determining the dialing lines according to dialing line information returned by the dialing management program, wherein the dialing lines are successfully dialed.
  4. 4. The network configuration method according to claim 2, wherein the acquiring the plurality of dial-up lines includes: And receiving dialing line information returned by the dialing management program after completing dialing according to the plurality of sets of dialing configuration information input by the user, and determining a plurality of dialing lines according to the dialing line information.
  5. 5. The network configuration method according to any one of claims 1 to 4, wherein creating corresponding sets of virtual network configurations from a plurality of dial-up lines comprises: Creating a virtual network card and a virtual network bridge corresponding to each dial-up line; Configuring a virtual network for a virtual network card and a virtual network bridge corresponding to the same dial-up line, and setting the virtual network bridge as a default gateway of the virtual network; Creating a strategy routing table between the virtual network and a default gateway of a corresponding dial-up line, so as to map the virtual network card and the virtual network bridge corresponding to the dial-up line with the default gateway of the dial-up line one by one through the strategy routing table; And forming the virtual network configuration by using a virtual network card, a virtual network bridge and a strategy routing table corresponding to the same dial-up line.
  6. 6. The network configuration method according to claim 5, wherein creating the virtual network card and the virtual bridge corresponding to each dial-up line comprises: Creating a virtual network card corresponding to each dial-up line in the virtual machine, and creating a virtual network bridge corresponding to each dial-up line outside the virtual machine; Correspondingly, the connecting the virtual machine with the virtual network bridge of the same group through the virtual network cards in the virtual network configuration of each group comprises the following steps: and connecting each virtual network card in the virtual machine with the virtual network bridge of the same group.
  7. 7. The network configuration method according to claim 5, wherein creating the virtual network card and the virtual bridge corresponding to each dial-up line comprises: Creating a virtual network card and a virtual network bridge corresponding to each dialing line outside the virtual machine, and connecting the virtual network card and the virtual network bridge corresponding to the same dialing line; Correspondingly, the connecting the virtual machine with the virtual network bridge of the same group through the virtual network cards in the virtual network configuration of each group comprises the following steps: and configuring the virtual network cards in each group of the virtual network configuration to the virtual machine.
  8. 8. A network configuration apparatus for use with an edge device, the apparatus comprising: the dialing line acquisition module is used for acquiring a plurality of dialing lines; The system comprises a creation module, a configuration module and a configuration module, wherein the creation module is used for creating a plurality of groups of corresponding virtual network configurations according to a plurality of dialing lines, the virtual network configurations comprise a virtual network card, a virtual network bridge and a strategy routing table, and the strategy routing table records the mapping relation between the virtual network card corresponding to the dialing lines and the default gateway of the dialing lines; The connection module is used for connecting the virtual machine with the virtual network bridge of the same group through the virtual network card in each group of the virtual network configuration so that the virtual machine is connected with each dial-up line through each group of the virtual network configuration, and simultaneously uses the dial-up lines to connect networks; A dial-up line acquisition module comprising: the dialing configuration information transmitting sub-module is used for transmitting a plurality of groups of dialing configuration information in the configuration information to the dialing management program so that the dialing management program dials according to the plurality of groups of dialing configuration information; and the dialing line confirmation sub-module is used for determining a plurality of dialing lines according to the plurality of sets of dialing configuration information.
  9. 9. A network configuration system is characterized by comprising a control device and an edge device; the control device is used for issuing configuration information containing an edge virtual machine mark to the edge device; the edge device being configured to perform the network configuration method according to any one of claims 1 to 7.
  10. 10. An edge device, comprising: A memory for storing a computer program; A processor for implementing the network configuration method according to any of claims 1 to 7 when executing the computer program.
  11. 11. A computer readable storage medium having stored therein computer executable instructions which when loaded and executed by a processor implement the network configuration method of any of claims 1 to 7.

Description

Network configuration method, device, system, edge equipment and storage medium Technical Field The present application relates to the field of edge computing, and in particular, to a network configuration method, device, system, edge device, and computer readable storage medium. Background The working nodes in a conventional cluster environment typically have the same hardware resources and network resources. However, in an edge computing scenario, there are differences in network resources that can be used by edge devices, e.g., different numbers of dial-up lines are provided. At this time, the problem of waste of network resources is likely to occur on the edge device. Disclosure of Invention The application aims to provide a network configuration method, a device, a system, edge equipment and a computer readable storage medium, wherein virtual network configuration can be created in the edge equipment, so that a virtual machine can connect a network through the virtual network configuration by using a plurality of dial-up lines at the same time, and the waste of network resources can be avoided. In order to solve the above technical problems, the present application provides a network configuration method, applied to an edge device, the method includes: Creating a plurality of groups of corresponding virtual network configurations according to a plurality of dialing lines, wherein the virtual network configurations comprise a virtual network card, a virtual network bridge and a strategy routing table; And connecting the virtual machine with the virtual network bridge of the same group through the virtual network card in each group of the virtual network configuration, so that the virtual machine is connected with each dial-up line through each group of the virtual network configuration, and simultaneously connecting networks through the dial-up lines. Optionally, before creating the corresponding multiple sets of virtual network configurations according to the multiple dial-up lines, the method further includes: And when the configuration information issued by the control equipment contains the edge virtual machine mark, acquiring the dialing lines. Optionally, the acquiring the plurality of dial-up lines includes: transmitting a plurality of sets of dialing configuration information in the configuration information to a dialing management program so that the dialing management program dials according to the plurality of sets of dialing configuration information; And determining the dialing lines according to the dialing configuration information of the plurality of groups, or determining the dialing lines according to dialing line information which is returned by the dialing management program and is successfully dialed. Optionally, the acquiring the plurality of dial-up lines includes: And receiving dialing line information returned by the dialing management program after completing dialing according to the plurality of sets of dialing configuration information input by the user, and determining a plurality of dialing lines according to the dialing line information. Optionally, the creating a corresponding plurality of sets of virtual network configurations according to the plurality of dial-up lines includes: Creating a virtual network card and a virtual network bridge corresponding to each dial-up line; Configuring a virtual network for a virtual network card and a virtual network bridge corresponding to the same dial-up line, and setting the virtual network bridge as a default gateway of the virtual network; Creating a strategy routing table between the virtual network and a default gateway of a corresponding dial-up line, so as to map the virtual network card and the virtual network bridge corresponding to the dial-up line with the default gateway of the dial-up line one by one through the strategy routing table; And forming the virtual network configuration by using a virtual network card, a virtual network bridge and a strategy routing table corresponding to the same dial-up line. Optionally, the creating a virtual network card and a virtual bridge corresponding to each dial-up line includes: Creating a virtual network card corresponding to each dial-up line in the virtual machine, and creating a virtual network bridge corresponding to each dial-up line outside the virtual machine; Correspondingly, the connecting the virtual machine with the virtual network bridge of the same group through the virtual network cards in the virtual network configuration of each group comprises the following steps: and connecting each virtual network card in the virtual machine with the virtual network bridge of the same group. Optionally, the creating a virtual network card and a virtual bridge corresponding to each dial-up line includes: Creating a virtual network card and a virtual network bridge corresponding to each dialing line outside the virtual machine, and connecting the virtual network card and the virtu