CN114124619A - Subnet communication method and device, computer equipment and storage medium - Google Patents

Subnet communication method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114124619A
CN114124619A CN202111515900.6A CN202111515900A CN114124619A CN 114124619 A CN114124619 A CN 114124619A CN 202111515900 A CN202111515900 A CN 202111515900A CN 114124619 A CN114124619 A CN 114124619A
Authority
CN
China
Prior art keywords
subnet
equipment
bridging
terminal device
channel
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
CN202111515900.6A
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.)
Shenzhen Tongkang Chuangzhi Technology Co ltd
Original Assignee
Shenzhen Tongkang Chuangzhi Technology 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 Shenzhen Tongkang Chuangzhi Technology Co ltd filed Critical Shenzhen Tongkang Chuangzhi Technology Co ltd
Priority to CN202111515900.6A priority Critical patent/CN114124619A/en
Publication of CN114124619A publication Critical patent/CN114124619A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/467Arrangements for supporting untagged frames, e.g. port-based VLANs

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a subnet communication method, a subnet communication device, computer equipment and a storage medium. The method comprises the following steps: constructing a connection channel with the subnet equipment by using a vxlan tunnel mode to obtain a tunnel interface; and constructing bridging between the subnet equipment and the subnet equipment through the tunnel interface and the LAN port to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other. The method of the embodiment of the invention can realize the intercommunication among the subnets without additionally arranging a route, and has convenient operation.

Description

Subnet communication method and device, computer equipment and storage medium
Technical Field
The present invention relates to computers, and more particularly, to a subnet connectivity method, apparatus, computer device, and storage medium.
Background
In the field of computer networks, two subnets are usually connected by using a vertical vxlan tunnel, and mutual access between the subnets is realized by adopting a route setting mode, but the mode needs to set a complex route to realize, and the operation is inconvenient.
Therefore, it is necessary to design a new method to achieve the mutual communication between subnets without additional routing, and the operation is convenient.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a subnet connection method, a subnet connection device, a subnet connection computer device and a subnet connection storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: the subnet communication method comprises the following steps:
constructing a connection channel with the subnet equipment by using a vxlan tunnel mode to obtain a tunnel interface;
and constructing bridging between the subnet equipment and the subnet equipment through the tunnel interface and the LAN port to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
The further technical scheme is as follows: the constructing the bridge between the subnet equipment and the subnet equipment through the tunnel interface and the LAN port to obtain a bridge channel, so that the terminal equipment and the terminal equipment can access each other, including:
and adding the tunnel interface and the LAN interface into the same bridging group to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
The further technical scheme is as follows: the adding the tunnel interface and the LAN interface in the same bridging group to obtain a bridging channel, so that the terminal device and the terminal device access each other, including:
and adding the tunnel interface and the LAN port of the main network device in the same bridging group to obtain a bridging channel, so that the terminal device connected with one subnet or the terminal device connected with the server accesses the device connected with the other terminal device through the bridging channel.
The further technical scheme is as follows: after the connection channel with the subnet device is constructed in the vxlan tunnel manner to obtain the tunnel interface, the method further includes:
a connection is established with the terminal device.
The further technical scheme is as follows: the establishing of the connection with the terminal device comprises:
and connecting the LAN port with a terminal device.
The invention also provides a subnet connectivity device, comprising:
the tunnel connection unit is used for constructing a connection channel with the subnet equipment by using a vxlan tunnel mode to obtain a tunnel interface;
and the bridging unit is used for constructing bridging between the subnet equipment and the subnet equipment through the tunnel interface and the LAN port to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
The further technical scheme is as follows: the bridging unit is configured to add the tunnel interface and the LAN port to the same bridging group to obtain a bridging channel, so that the terminal device and the terminal device access each other.
The further technical scheme is as follows: further comprising:
a connection construction unit for constructing a connection with the terminal device.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: the invention constructs the connecting channel with the subnet equipment by using the vxlan tunnel mode, and sets the LAN port and the tunnel interface in the same bridging group, thereby leading the subnet equipment and the subnet equipment to be communicated with each other, leading the terminal equipment to be capable of accessing with other terminal equipment by the bridging group and the LAN port and the tunnel interface, realizing the intercommunication between subnets without additionally setting a route and having convenient operation.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a subnet connectivity method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a subnet connectivity method according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a subnet connectivity device provided by an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a subnet connectivity method according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a subnet connectivity method according to an embodiment of the present invention. The subnet communication method is applied to the server. The server is in data connection with the terminal equipment and the subnet equipment, wherein the connection with the terminal equipment and the subnet equipment is established through the server, and the subnet equipment are bridged by virtue of a tunnel interface corresponding to the subnet equipment and a LAN (local area network) port of the server, so that the mutual access between the terminal equipment and the terminal equipment can be realized.
Fig. 2 is a schematic flowchart of a subnet connectivity method according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S130.
S110, a connection channel with the subnet equipment is constructed in a vxlan tunnel mode to obtain a tunnel interface.
In this embodiment, the tunnel interface refers to an interface formed after the server and the subnet device are connected by a vxlan tunnel.
As shown in fig. 1, a vxlan tunnel is established between the central network device a, i.e. the server, and the sub-network device B, and the tunnel interface is vxlan ab, for example, ip link add vxlan ab type vxlan id 1remote 192.168.0.1 dstort 1701 deveth 0.
And S120, establishing connection with the terminal equipment.
In this embodiment, the LAN port is connected to a terminal device. Specifically, as shown in fig. 1, the terminal device PC-a is connected to the central network device a through the LAN port of the central network device a, and the terminal device PC-a may represent not only a PC terminal but also a subnet formed by the enterprise a.
S130, bridging between the subnet equipment and the subnet equipment is built through the tunnel interface and the LAN port to obtain a bridging channel, so that the terminal equipment and the terminal equipment can access each other.
In this embodiment, the bridge channel refers to a connected channel between the subnet device and the subnet device.
In this embodiment, the tunnel interface and the LAN port are added to the same bridging group to obtain a bridging channel, so that the terminal device and the terminal device access each other.
In this embodiment, the bridging group refers to a set of devices that can communicate with each other.
Specifically, the tunnel interface and the LAN port of the main network device are added to the same bridging group to obtain a bridging channel, so that the terminal device connected to one of the subnets or the terminal device connected to the server accesses the device connected to the other terminal device through the bridging channel.
Referring to fig. 1, the LAN port of the central network device a and the vxlan tunnel interface vxlan AB are added in the same bridging group, so that the terminal device PC-a can directly access the central network device a, and further can access the subnet device B through the vxlan tunnel AB, the terminal device PC-B can be connected to the subnet device B through the LAN port of the subnet device B, and the LAN port of the subnet device B and the vxlan tunnel interface vxlan AB are added in the same bridging group, so that the terminal device PC-a can access the terminal device PC-B. For example: brctl addlif br0 vxlanAB; similarly, the terminal equipment PC-A and the terminal equipment PC-C, and the terminal equipment PC-A and the terminal equipment PC-D can access each other by using the same method. And the terminal equipment PC-A and the terminal equipment PC-E are not bridged, so that mutual access cannot be carried out.
The terminal equipment PC-A can be connected with the central network equipment A through the LAN port of the central network equipment A, the LAN port of the central network equipment A and the vxlan tunnel interface vxlan AC are added into the same bridge group, the terminal equipment PC-C can be connected with the subnet equipment C through the LAN port of the subnet equipment C, and the LAN port of the subnet equipment C and the vxlan tunnel interface vxlan AC are added into the same bridge group. Similarly, the terminal equipment PC-A, the terminal equipment PC-B, the terminal equipment PC-C and the terminal equipment PC-D can access each other, and the terminal equipment PC-E cannot access each other.
For example: a, B, C, D, E form respective networks and cannot access each other, but when it is desired to share resources among organizations, the following situations may occur:
B. c as a branch office of enterprise a, it is desirable to share resources of a, and interconnection between a and B and a and C is realized by establishing a vxlan tunnel and bridging interfaces at both ends A, B and A, C to a bridge, respectively. At this time, the terminal PC1 and the terminal PC2, and the terminal PC1 and the terminal PC3 can access each other; enterprise D is a cooperative enterprise of enterprise a, and if both parties want to share their own resources, they can join the network formed by A, B, C by using the same method to establish a tunnel; enterprise E, being not a partner of enterprise a, will not establish a connection with enterprise a and with B, C, D, i.e., enterprise E will not be networked with A, B, C, D. The above situation covers all networking modes of the industrial park basically, enterprises or organizations which want to realize resource sharing are connected with each other to form a network, other enterprises or organizations form a network independently, the networks and the networks do not have mutual access, networks formed by a plurality of enterprises or organizations can have mutual access, information is only transmitted in the formed network, and does not have mutual access with organizations such as enterprise E, and does not have mutual access with enterprises or organizations outside the industrial park, so that the safety of communication in the industrial park can be ensured A, B, C, D.
If enterprise E becomes a partner enterprise of enterprise a, enterprise E can join A, B, C, D in the network by simply establishing the connection with enterprise a as mentioned in case 1, and then they can access each other. If enterprise D is released from cooperation with enterprise a, enterprise D is no longer in the network as it was if enterprise a were disconnected from enterprise B, i.e., no longer has mutual access to an enterprise or organization such as A, B, C. Therefore, the connection of the subnets is very flexible, and the two parties can leave or join the network only by deleting the corresponding vxlan tunnel or adding one vxlan tunnel.
The method of the embodiment firstly establishes a tunnel between two network devices through a vxlan technology, then adds a tunnel interface and a LAN port of the network device in the same bridging group, so that the tunnel interface and the LAN port of the network device can be communicated in two layers, and then connects a subnet formed by the two devices through the vxlan tunnel, and can be applied to an industrial park and a local area network with the same characteristics; the gateway device can establish a vxlan tunnel through any gateway device in the network established by the method of the embodiment, so that the terminal connected with the gateway device can perform two-layer communication with any gateway device or terminal in the network. Two independent networks need to be communicated, only one gateway device supporting the technology needs to be selected from the two independent networks respectively, the two networks can be communicated by connecting the two gateway devices by using the technology, and the gateway devices and the terminals in the two networks can carry out two-layer communication after the two networks are communicated.
According to the subnet communication method, the connecting channel with the subnet equipment is constructed in a vxlan tunnel mode, and the LAN port and the tunnel interface are arranged in the same bridging group, so that the subnet equipment and the subnet equipment can be communicated with each other, the terminal equipment can access other terminal equipment with the help of the bridging group and the LAN port and the tunnel interface, the mutual communication between subnets can be achieved without additionally arranging a route, and the operation is convenient.
Fig. 3 is a schematic block diagram of a subnet connectivity device 300 according to an embodiment of the present invention. As shown in fig. 3, the present invention further provides a subnet connectivity device 300 corresponding to the above subnet connectivity method. The subnet connectivity device 300 includes a unit for performing the above-described subnet connectivity method, and the device may be configured in a server. Specifically, referring to fig. 3, the subnet connectivity device 300 includes a tunnel connection unit 301 and a bridge unit 303.
A tunnel connection unit 301, configured to construct a connection channel with a subnet device in a vxlan tunnel manner, so as to obtain a tunnel interface; a bridging unit 303, configured to construct a bridge between the subnet device and the subnet device through the tunnel interface and the LAN port, so as to obtain a bridge channel, so that the terminal device and the terminal device access each other.
In an embodiment, the bridging unit 303 is configured to add the tunnel interface and the LAN port to the same bridging group to obtain a bridging channel, so that the terminal device and the terminal device access each other. Specifically, the tunnel interface and the LAN port of the main network device are added to the same bridging group to obtain a bridging channel, so that the terminal device connected to one of the subnets or the terminal device connected to the server accesses the device connected to the other terminal device through the bridging channel.
In an embodiment, as shown in fig. 3, the subnet connectivity device 300 further comprises a connection construction unit 302.
A connection construction unit 302 for constructing a connection with a terminal device.
In an embodiment, the connection building unit 302 is configured to connect the LAN port with a terminal device.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the subnet connectivity device 300 and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The subnet connectivity means 300 can be implemented in the form of a computer program that can be run on a computer device as shown in fig. 4.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 4, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a subnet connectivity method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can execute a subnet connectivity method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
constructing a connection channel with the subnet equipment by using a vxlan tunnel mode to obtain a tunnel interface; and constructing bridging between the subnet equipment and the subnet equipment through the tunnel interface and the LAN port to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
In an embodiment, when implementing the bridging between the subnet device and the subnet device through the tunnel interface and the LAN port to obtain the bridge channel, so that the terminal device and the terminal device perform the mutual access step, the processor 502 specifically implements the following steps:
and adding the tunnel interface and the LAN interface into the same bridging group to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
In an embodiment, when implementing that the tunnel interface and the LAN interface are added in the same bridge group to obtain a bridge channel, so that the terminal device and the terminal device perform the mutual access step, the processor 502 specifically implements the following steps:
and adding the tunnel interface and the LAN port of the main network device in the same bridging group to obtain a bridging channel, so that the terminal device connected with one subnet or the terminal device connected with the server accesses the device connected with the other terminal device through the bridging channel.
In an embodiment, after implementing the step of constructing a connection channel with a subnet device by using a vxlan tunnel to obtain a tunnel interface, the processor 502 further implements the following steps:
a connection is established with the terminal device.
In an embodiment, when the processor 502 implements the step of establishing the connection with the terminal device, the following steps are specifically implemented:
and connecting the LAN port with a terminal device.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
constructing a connection channel with the subnet equipment by using a vxlan tunnel mode to obtain a tunnel interface; and constructing bridging between the subnet equipment and the subnet equipment through the tunnel interface and the LAN port to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
In an embodiment, when the processor executes the computer program to implement the bridge connection between the subnet device and the subnet device through the tunnel interface and the LAN port to obtain a bridge channel, so that the terminal device and the terminal device perform the mutual access step, the following steps are specifically implemented:
and adding the tunnel interface and the LAN interface into the same bridging group to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
In an embodiment, when the processor executes the computer program to implement that the tunnel interface and the LAN interface are added to the same bridge group to obtain a bridge channel, so that the terminal device and the terminal device perform a mutual access step, the following steps are specifically implemented:
and adding the tunnel interface and the LAN port of the main network device in the same bridging group to obtain a bridging channel, so that the terminal device connected with one subnet or the terminal device connected with the server accesses the device connected with the other terminal device through the bridging channel.
In an embodiment, after the step of constructing a connection channel with a subnet device by using a vxlan tunnel to obtain a tunnel interface is implemented by the processor by executing the computer program, the following steps are further implemented:
a connection is established with the terminal device.
In an embodiment, when the processor executes the computer program to implement the step of establishing a connection with a terminal device, the following steps are specifically implemented:
and connecting the LAN port with a terminal device.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The subnet communication method is characterized by comprising the following steps:
constructing a connection channel with the subnet equipment by using a vxlan tunnel mode to obtain a tunnel interface;
and constructing bridging between the subnet equipment and the subnet equipment through the tunnel interface and the LAN port to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
2. The subnet communication method according to claim 1, wherein the constructing the bridge between the subnet device and the subnet device through the tunnel interface and the LAN port to obtain a bridge channel for the terminal device and the terminal device to access each other comprises:
and adding the tunnel interface and the LAN interface into the same bridging group to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
3. The subnet connectivity method according to claim 2, wherein the adding the tunnel interface and the LAN port to the same bridging group to obtain a bridging channel, so that the terminal device and the terminal device access each other, comprises:
and adding the tunnel interface and the LAN port of the main network device in the same bridging group to obtain a bridging channel, so that the terminal device connected with one subnet or the terminal device connected with the server accesses the device connected with the other terminal device through the bridging channel.
4. The subnet connectivity method according to claim 1, wherein the constructing a connection channel with the subnet device by using a vxlan tunnel to obtain a tunnel interface further comprises:
a connection is established with the terminal device.
5. The subnet connectivity method of claim 4, wherein the establishing a connection with a terminal device comprises:
and connecting the LAN port with a terminal device.
6. Subnet connectivity device, characterized by, comprising:
the tunnel connection unit is used for constructing a connection channel with the subnet equipment by using a vxlan tunnel mode to obtain a tunnel interface;
and the bridging unit is used for constructing bridging between the subnet equipment and the subnet equipment through the tunnel interface and the LAN port to obtain a bridging channel so as to enable the terminal equipment and the terminal equipment to access each other.
7. The subnet connectivity apparatus according to claim 6, wherein the bridging unit is configured to add the tunnel interface and the LAN port to the same bridging group to obtain a bridging channel, so as to enable mutual access between the terminal device and the terminal device.
8. The subnet connectivity device of claim 6, further comprising:
a connection construction unit for constructing a connection with the terminal device.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-5 when executing the computer program.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 5.
CN202111515900.6A 2021-12-02 2021-12-02 Subnet communication method and device, computer equipment and storage medium Pending CN114124619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111515900.6A CN114124619A (en) 2021-12-02 2021-12-02 Subnet communication method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111515900.6A CN114124619A (en) 2021-12-02 2021-12-02 Subnet communication method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114124619A true CN114124619A (en) 2022-03-01

Family

ID=80364998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111515900.6A Pending CN114124619A (en) 2021-12-02 2021-12-02 Subnet communication method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114124619A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005179A (en) * 2018-08-10 2018-12-14 常州中价之星软件技术有限公司 Network security tunnel establishing method based on port controlling
CN109088883A (en) * 2018-09-21 2018-12-25 北京天融信网络安全技术有限公司 A kind of network-building method of plurality of subnets, device, storage medium and computer equipment
CN109845200A (en) * 2016-07-21 2019-06-04 思科技术公司 It detects and prevents network loop
CN109995636A (en) * 2017-12-31 2019-07-09 中国移动通信集团江西有限公司 Mixed networking method, apparatus, system, equipment and medium
WO2019157476A1 (en) * 2018-02-12 2019-08-15 Neji, Inc. Binding osi layer 3 ip connections to osi layer 2 for mesh networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109845200A (en) * 2016-07-21 2019-06-04 思科技术公司 It detects and prevents network loop
CN109995636A (en) * 2017-12-31 2019-07-09 中国移动通信集团江西有限公司 Mixed networking method, apparatus, system, equipment and medium
WO2019157476A1 (en) * 2018-02-12 2019-08-15 Neji, Inc. Binding osi layer 3 ip connections to osi layer 2 for mesh networks
CN109005179A (en) * 2018-08-10 2018-12-14 常州中价之星软件技术有限公司 Network security tunnel establishing method based on port controlling
CN109088883A (en) * 2018-09-21 2018-12-25 北京天融信网络安全技术有限公司 A kind of network-building method of plurality of subnets, device, storage medium and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李飞等: "《网络设备配置与管理》", 西安电子科技大学出版社, pages: 80 - 82 *

Similar Documents

Publication Publication Date Title
KR100680888B1 (en) Virtual multicast routing for a cluster having state synchronization
US9515890B2 (en) Method, system and controlling bridge for obtaining port extension topology information
US7711830B2 (en) Sharing a shared resource across logical partitions or systems
CN113572831B (en) Communication method, computer equipment and medium between Kubernetes clusters
CN108667638A (en) A kind of network service configuration method and network management device
CN113965505A (en) Method for cloud host intercommunication among different virtual private networks and implementation architecture
US10999243B2 (en) Sharing media among remote access clients in a universal plug and play environment
WO2022062568A1 (en) Switch configuration method and related device
CN114039798B (en) Data transmission method and device and electronic equipment
WO2020057445A1 (en) Communication system, method, and device
WO2021139304A1 (en) Method and device for multi-cloud interconnection
CN111464334A (en) System, method and server for realizing terminal equipment management under software defined wide area network system
US20220121682A1 (en) Secure cluster pairing for business continuity and disaster recovery
CN109462537B (en) Cross-network intercommunication method and device
CN114553707B (en) Method and device for generating topology information of network and delimiting network faults
CN114124619A (en) Subnet communication method and device, computer equipment and storage medium
CN109981437B (en) Multi-data center intercommunication method based on VPC and related equipment
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN113055444A (en) File sharing method and related device thereof
CN106034344B (en) Data transmission method and device
WO2024169469A1 (en) Connection establishment method and apparatus
CN115189995B (en) Multi-cluster network federal communication establishing method, equipment and storage medium in Kubernetes environment
CN114124780B (en) Route issuing method, device, electronic equipment and storage medium
CN113810425B (en) Parallel network transmission method, device, equipment and storage medium
CN115514798A (en) Multi-device multi-port connection method, system, electronic device and storage medium

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