CN103200228B - Virtual network realization method and system based on Linux Bridge - Google Patents
Virtual network realization method and system based on Linux Bridge Download PDFInfo
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
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
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.
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103731514B (en) * | 2013-12-29 | 2017-01-18 | 国云科技股份有限公司 | Virtual network management method |
Citations (2)
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 |
-
2013
- 2013-02-27 CN CN201310062063.5A patent/CN103200228B/en not_active Expired - Fee Related
Patent Citations (2)
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) | ||
WO2012162167A3 (en) | Cross-cloud computing for capacity management and disaster recovery | |
IN2014CN04205A (en) | ||
JP2013048548A5 (en) | ||
CN105187256B (en) | A kind of disaster recovery method, equipment and system | |
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 | |
CN103634225A (en) | Service bandwidth expansion method in cloud computing network virtualization | |
WO2015054336A3 (en) | System and method of delivering data that provides service differentiation and monetization in mobile data networks | |
CN105260485A (en) | Method and device for loading data | |
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 | |
CN103200228B (en) | Virtual network realization method and system based on Linux Bridge | |
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 | |
CN107579850B (en) | Wired and wireless hybrid networking method based on SDN control for cloud data center | |
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 | |
CN113645081B (en) | Method, equipment and medium for realizing multi-outlet of tenant network in cloud network environment | |
CN103095562B (en) | cloud computing intelligent gateway | |
CN105187423B (en) | The partition method of Internet resources, the shielding system of Internet resources and mobile terminal |
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 |