CN103200228B - Virtual network realization method and system based on Linux Bridge - Google Patents

Virtual network realization method and system based on Linux Bridge Download PDF

Info

Publication number
CN103200228B
CN103200228B CN201310062063.5A CN201310062063A CN103200228B CN 103200228 B CN103200228 B CN 103200228B CN 201310062063 A CN201310062063 A CN 201310062063A CN 103200228 B CN103200228 B CN 103200228B
Authority
CN
China
Prior art keywords
network
main frame
physical
virtual machine
virtual
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.)
Expired - Fee Related
Application number
CN201310062063.5A
Other languages
Chinese (zh)
Other versions
CN103200228A (en
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.)
Opzoon Technology Co Ltd
Original Assignee
Opzoon 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 Opzoon Technology Co Ltd filed Critical Opzoon Technology Co Ltd
Priority to CN201310062063.5A priority Critical patent/CN103200228B/en
Publication of CN103200228A publication Critical patent/CN103200228A/en
Application granted granted Critical
Publication of CN103200228B publication Critical patent/CN103200228B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of virtual network implementation method based on Linux Bridge, and described method includes: S1:Linux Bridge connects physical network card, and the first physical network card on different main frames forms data network by physical switches;The second physical network card on described different main frame connects network control unit composition management net by physical switches;Described data network and management net collectively form virtual network;S2: when there being virtual machine to join described virtual network in main frame, described network control unit sends bind command to described main frame, and described main frame will be stated virtual machine and be connected on described Linux Bridge;S3: when the virtual machine having connection in main frame leaves described virtual network, described network control unit sends ON-and OFF-command to described main frame, and the virtual machine of described connection is disconnected by described main frame with described Linux Bridge.The present invention is by providing a kind of virtual network realization method and system based on Linux Bridge, it is achieved that dynamically control the connection between virtual machine and virtual network.

Description

Virtual network realization method and system based on Linux Bridge
Technical field
The present invention relates to Data Interchange Technology, particularly to a kind of based on Linux Bridge virtual Network implementation approach and system.
Background technology
Data center provides resource letting, and for different tenants, data center needs to carry Realize data exchange for a virtual network, make tenant non-interfering in single virtual network Use resource.Virtual network presents to user in cloud system in the way of in kind, and user also wishes Connection between virtual machine and virtual network and disconnection can be controlled by prestige.
Summary of the invention
(1) solve the technical problem that
Present invention solves the technical problem that it is that physical network is abstracted into virtual network, and can control Virtual machine processed adds virtual network and virtual machine is left virtual network.
(2) technical scheme
The present invention proposes a kind of virtual network implementation method based on Linux Bridge, described side Method includes:
S1:Linux Bridge connects physical network card, and the first physical network card on different main frames passes through Physical switches composition data network;The second physical network card on described different main frame is handed over by physics Connection network control unit composition of changing planes manages net;Described data network and management net collectively form void Intend network;
S2: when there being virtual machine to join described virtual network in main frame, described network controls single Unit sends bind command to described main frame, and described main frame will be stated virtual machine and be connected to described Linux On Bridge;
S3: when the virtual machine having connection in main frame leaves described virtual network, described network control Unit processed sends ON-and OFF-command to described main frame, and described main frame is by the virtual machine of described connection and institute State Linux Bridge to disconnect.
Preferably, each main frame at least includes a virtual machine.
Preferably, Linux Bridge described in each main frame at least with a void in described main frame Plan machine is connected, and described first physical network card in corresponding described data network.
Preferably, described management net in described second physical network card not with Linux Bridge phase Even.
The invention allows for a kind of virtual network based on Linux Bridge and realize system, described System includes data network and management net;
Described data network, by the first physical switches, is connected with described first physical switches The first physical network card on different main frames and the Linux being connected with described first physical network card Bridge forms;
Described management net, is connected with described second physical switches by the second physical switches The second physical network card and the network being connected with described second physical switches on different main frames control Unit forms;
Described network control unit is for when there being virtual machine add or leave virtual network in main frame Time, send to described main frame and connect or ON-and OFF-command.
Preferably, each main frame at least includes a virtual machine.
Preferably, Linux Bridge described in each main frame at least with a void in described main frame Plan machine is connected, and described first physical network card in corresponding described data network.
Preferably, described management net in described second physical network card not with Linux Bridge phase Even.
(3) beneficial effect
The present invention is by providing a kind of virtual network implementation method based on Linux Bridge and being System, it is achieved that dynamically control the connection between virtual machine and virtual network.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that the present invention proposes;
Fig. 2 is the system construction drawing that the present invention proposes.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention Case is clearly and completely described.
Embodiment 1:
The present invention proposes a kind of virtual network implementation method based on Linux Bridge, described side The flow chart of method is as it is shown in figure 1, described method includes:
S1:Linux Bridge connects physical network card, and the first physical network card on different main frames passes through Physical switches composition data network;The second physical network card on described different main frame is handed over by physics Connection network control unit composition of changing planes manages net;Described data network and management net collectively form void Intend network;
S2: when there being virtual machine to join described virtual network in main frame, described network controls single Unit sends bind command to described main frame, and described main frame will be stated virtual machine and be connected to described Linux On Bridge;
When establishing a virtual machine in main frame, user needs this virtual machine is joined described void Intend network, then network control unit sends bind command, described company by management net to this main frame Connecing order is to be connected with the Linux Bridge in main frame by this virtual machine, and this main frame receives this company After connecing order, be connected with Linux Bridge by this virtual machine, then this virtual machine has joined this void Intend in network.
S3: when the virtual machine having connection in main frame leaves described virtual network, described network control Unit processed sends ON-and OFF-command to described main frame, and described main frame is by the virtual machine of described connection and institute State Linux Bridge to disconnect.
When the virtual machine of connection a certain in main frame will leave this virtual network, then network controls single Unit sends ON-and OFF-command by management net to this main frame, described ON-and OFF-command be by this virtual machine and Linux Bridge in main frame disconnects, when main frame receives this ON-and OFF-command, by this virtual machine with Linux Bridge disconnects, thus this virtual machine leaves this virtual network.
Each main frame at least includes a virtual machine, and Linux Bridge described in each main frame At least it is connected with a virtual machine in described main frame, and described in corresponding described data network One physical network card, described second physical network card in described management net not with Linux Bridge phase Even.
Pass through said method, it is achieved that dynamically control the connection between virtual machine and virtual network.
Embodiment 2:
The invention allows for a kind of virtual network based on Linux Bridge and realize system, this is System structure chart is as in figure 2 it is shown, described system includes data network and management net;
Described data network, by the first physical switches, is connected with described first physical switches The first physical network card on different main frames and the Linux being connected with described first physical network card Bridge forms;
Described management net, is connected with described second physical switches by the second physical switches The second physical network card and the network being connected with described second physical switches on different main frames control Unit forms;
Described network control unit is for when there being virtual machine add or leave virtual network in main frame Time, send to described main frame and connect or ON-and OFF-command.
Each main frame at least includes a virtual machine.
Linux Bridge described in each main frame at least with a virtual machine phase in described main frame Connect, and described first physical network card in corresponding described data network.
Described second physical network card in described management net is not connected with Linux Bridge.
As in figure 2 it is shown, it is equal to will be added to the virtual machine in virtual network in host A and host B Being connected with the Linux Bridge in main frame, Linux Bridge and the first physical network card connect.As: If host A establishes a virtual machine a, and need this virtual machine a is joined host A The virtual network at place, then network control unit sends bind command, host A root to host A According to this bind command, virtual machine a and Linux Bridge is connected;If the virtual machine in host A 1 Will leave the virtual network at host A place, then network control unit sends to host A and disconnects Order, virtual machine 1 is disconnected with Linux Bridge by host A according to this ON-and OFF-command.
By said system, this virtual network, departing from physical network device, decreases network pipe The configuration amount of reason person.
Embodiment of above is merely to illustrate the present invention, and not limitation of the present invention, relevant The those of ordinary skill of technical field, without departing from the spirit and scope of the present invention, Can also make a variety of changes and modification, the technical scheme of the most all equivalents falls within the present invention Category, the scope of patent protection of the present invention should be defined by the claims.

Claims (4)

1. a virtual network implementation method based on Linux Bridge, it is characterised in that institute The method of stating includes:
S1:Linux Bridge connects physical network card, and the first physical network card on different main frames passes through Physical switches composition data network;The second physical network card on described different main frame is handed over by physics Connection network control unit composition of changing planes manages net;Described data network and management net collectively form void Intend network;
S2: when there being virtual machine to join described virtual network in main frame, described network controls single Unit sends bind command to described main frame, and described main frame will be stated virtual machine and be connected to described Linux On Bridge;
S3: when the virtual machine having connection in main frame leaves described virtual network, described network control Unit processed sends ON-and OFF-command to described main frame, and described main frame is by the virtual machine of described connection and institute State Linux Bridge to disconnect;
Linux Bridge described in each main frame at least with a virtual machine phase in described main frame Connect, and described first physical network card in corresponding described data network;
Described second physical network card in described management net is not connected with Linux Bridge.
Method the most according to claim 1, it is characterised in that at least wrap in each main frame Include a virtual machine.
3. a virtual network based on Linux Bridge realizes system, it is characterised in that institute The system of stating includes data network and management net;
Described data network, by the first physical switches, is connected with described first physical switches The first physical network card on different main frames and the Linux being connected with described first physical network card Bridge forms;
Described management net, is connected with described second physical switches by the second physical switches The second physical network card and the network being connected with described second physical switches on different main frames control Unit forms;
Described network control unit is for when there being virtual machine add or leave virtual network in main frame Time, send to described main frame and connect or ON-and OFF-command;
Linux Bridge described in each main frame at least with a virtual machine phase in described main frame Connect, and described first physical network card in corresponding described data network;
Described second physical network card in described management net is not connected with Linux Bridge.
System the most according to claim 3, it is characterised in that at least wrap in each main frame Include a virtual machine.
CN201310062063.5A 2013-02-27 2013-02-27 Virtual network realization method and system based on Linux Bridge Expired - Fee Related CN103200228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310062063.5A CN103200228B (en) 2013-02-27 2013-02-27 Virtual network realization method and system based on Linux Bridge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310062063.5A CN103200228B (en) 2013-02-27 2013-02-27 Virtual network realization method and system based on Linux Bridge

Publications (2)

Publication Number Publication Date
CN103200228A CN103200228A (en) 2013-07-10
CN103200228B true CN103200228B (en) 2016-08-24

Family

ID=48722583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310062063.5A Expired - Fee Related CN103200228B (en) 2013-02-27 2013-02-27 Virtual network realization method and system based on Linux Bridge

Country Status (1)

Country Link
CN (1) CN103200228B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731514B (en) * 2013-12-29 2017-01-18 国云科技股份有限公司 Virtual network management method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103518A (en) * 2011-02-23 2011-06-22 运软网络科技(上海)有限公司 System for managing resources in virtual environment and implementation method thereof
CN102281162A (en) * 2011-09-15 2011-12-14 百度在线网络技术(北京)有限公司 Fusion method and system of data network and management network and devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103518A (en) * 2011-02-23 2011-06-22 运软网络科技(上海)有限公司 System for managing resources in virtual environment and implementation method thereof
CN102281162A (en) * 2011-09-15 2011-12-14 百度在线网络技术(北京)有限公司 Fusion method and system of data network and management network and devices

Also Published As

Publication number Publication date
CN103200228A (en) 2013-07-10

Similar Documents

Publication Publication Date Title
CN104468397B (en) The method and apparatus that a kind of live migration of virtual machine forwards not packet loss
JP2014138553A5 (en)
IN2014CN04205A (en)
JP2013048548A5 (en)
WO2012151162A3 (en) Method and system for dynamically creating and servicing master-slave pairs within and across switch fabrics of a portable computing device
CN110034983A (en) Home equipment interlock method and system based on Publish-subscribe message processing facility
CN103152239A (en) Open VSwitch-based virtual network implementation method and system
CN107544841A (en) Live migration of virtual machine method and system
CN104113606B (en) The method of work of the distributed meta data node architecture of uniformity dynamic equalization
CN105260485A (en) Method and device for loading data
WO2015054336A3 (en) System and method of delivering data that provides service differentiation and monetization in mobile data networks
CN105187256A (en) Disaster recovery method, device and system
CN109245926A (en) Intelligent network adapter, intelligent network adapter system and control method
CN103795603B (en) A kind of edge based on many network interface cards virtual bridged implementation method and equipment
CN106059940A (en) Flow control method and device
CN103200228B (en) Virtual network realization method and system based on Linux Bridge
CN102811152A (en) Method for realizing real-time transaction and data exchange of multiple main bus network communication
CN104767677B (en) Access node system and the computing resource pool unit for the access node system
CN103746943B (en) Method for establishing VLAN subinterface and exchange chip using the same
WO2014074541A3 (en) System and method for a pass thru mode in a virtual chassis system
CN209103275U (en) Big data stores disaster recovery and backup systems
CN203327040U (en) Cloud calculation intelligent network gateway
CN103209255A (en) Mobile terminal online game system
CN102882970B (en) Based on the method that cloud computing platform keeps host resource stable
CN205992865U (en) A kind of composite cable and many level Cascade H-Bridge Inverters connection system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
PP01 Preservation of patent right

Effective date of registration: 20180823

Granted publication date: 20160824

PP01 Preservation of patent right
PD01 Discharge of preservation of patent

Date of cancellation: 20210823

Granted publication date: 20160824

PD01 Discharge of preservation of patent
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824

Termination date: 20190227

CF01 Termination of patent right due to non-payment of annual fee