Supercharge Your Innovation With Domain-Expert AI Agents!

Method for virtual machines to share IP (Internet Protocol) of host machine to provide outer net services

A virtual machine and host machine technology, applied in the field of cloud computing, can solve the problems of insufficient IPv4 public network addresses and the inability to have virtual machines at the same time, achieving the effect of reliable principle, simple implementation, and improved utilization

Inactive Publication Date: 2016-06-29
G CLOUD TECH +2
View PDF4 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem solved by the present invention is to provide a method for virtual machines to share the IP of the host machine to provide external network services. Network and provide services to the outside world

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for virtual machines to share IP (Internet Protocol) of host machine to provide outer net services
  • Method for virtual machines to share IP (Internet Protocol) of host machine to provide outer net services
  • Method for virtual machines to share IP (Internet Protocol) of host machine to provide outer net services

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Such as figure 1 As shown, the present invention first creates a network bridge on the host computer, here we take the linuxbridge bridge as an example for illustration, and other implementations such as openvswitch bridges are similar to this. Execute the following command to create and activate the bridge:

[0038] brctladdbrbr-nat

[0039] ifconfigbr-natup

[0040] Then connect the network card connected to the external network on the host to the bridge br-nat created above. Assuming that the network card name of the host connected to the external network is eth0, then:

[0041] brctladdifbr-nateth0

[0042] ifconfigeth0up

[0043] Set the external network IP and the internal network IP of the internal network where the virtual machine is located for the created bridge br-nat:

[0044] ipaddradd20.251.32.25 / 24devbr-nat

[0045] ipaddradd192.168.0.1 / 24devbr-nat

[0046] As above, we set the external network IP to 20.251.32.25 and the internal network IP to 192...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of cloud computation, and particularly relates to a method for virtual machines to share an IP (Internet Protocol) of a host machine to provide outer net services. The method disclosed by the invention comprises the steps of: creating a network bridge in the host machine; connecting a network card of the host machine, which is connected with an outer net, to the created network bridge; setting an IP for the created network bridge; creating the virtual machines in the host machine and connecting the virtual machines to the created network bridge; setting intranet IPs for virtual network cards of the virtual machines and adding routes; and finally, setting NAT (Network Address Translation) mapping in the host machine. The invention provides a method capable of enabling a plurality of virtual machines and the host machine thereof to share one outer net IP to provide services outwards; particularly, when the outer net is an Internet public network, the method can improve the utilization rate of an IP of the public network, and relieve the pressure of the insufficient IPs of the public network to a certain degree; and the method can be used in the outer net services of the virtual machines.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a method for a virtual machine to share a host machine IP to provide external network services. Background technique [0002] IPv4 and Cloud Computing [0003] According to the British BBC report, IPv4 public network addresses will be exhausted. There was a detailed figure, so far there are only 300 million IPv4 free addresses left, according to the current speed, by September 9, 2011, they will all be used up. With the rise of cloud computing, in order to make full use of resources, it is generally necessary to virtualize a physical node into multiple virtual machines for use. In this way, it is obviously unwise to assign a public network IP to each virtual machine . [0004] NAT mapping [0005] NAT (NetworkAddressTranslation, Network Address Translation) was proposed in 1994. When some hosts in the private network have been assigned local IP addresses (that is, pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/12G06F9/455
CPCH04L61/2514G06F9/45504
Inventor 熊梦杨松季统凯
Owner G CLOUD TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More